Versions Compared

Key

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

...

     WALL = 'wall' 

etc etc


Importing IDS classes

  • 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