Versions Compared

Key

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

...

PUTGET


Code Block
languagepy
dbEntry = imas.db_entry(imasdef.MDSPLUS_BACKEND, db_name, 3333, 3333)
dbEntry.create()  
    
ids = pf_active()
ids.ids_properties.homogeneous_time = 2

ids.put(db_entry = dbEntry)
dbEntry.close()



Code Block
languagepy
dbEntry = imas.db_entry(imasdef.MDSPLUS_BACKEND, db_name, 3333, 3333)
dbEntry.create()  

ids = pf_active()


ids.get(db_entry = dbEntry)
dbEntry.close()




TO DO / Open points

IDS superclass

"Ids" will be a natural name for superclass but "ids" defined in ids.py already exists (the class that contains all IDSes as its attributes).

Will using "Ids" and "ids" be confusing? "Ids" superclass will be defined for internal purposes only....

Enum for IDS names

class IdsNames(enum):  #any better name?

     EQUILIBRIUM = 'equilibrium'

     WALL = 'wall' 

etc etc