Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • IDSes are defined in modules (files) corresponding to their names (e.g.  class wall defined in wall.py)
  • A correct usage is
    • from imas import wall;   ids_wall = wall.wall()
    • from imas.wall import wal; ids_wall = wall()
  • lt could be make easier for user adding import in imas __init__.py  (from wall import wall)
    • __init__.py has to be generated based on IDSDef.xml to add from <ids> import <ids>
    • user can use simpler form: "ids_wall = wall()" without doing any explicit imports


Suggestion from Olivier:

could all specific IDS type modules be imported to a front end 'ids' module? so users would do:
wall = ids.wall()
instead of proposed
wall = wall.wall()


also this would allow for 'exploring' the available IDS types, while is users need to import module per IDS type user need to know the exact list of types available for a given version