Versions Compared

Key

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

...

Code Block
languagepy
titledb_entry constructor
def __init__(self, backend_id, db_name, shot, run, user_name = None, data_version = 3None)
	if user_name is None:
		user_name = $USER

	if data_version is None:
		data_version = $IMAS_VERSION


Additional "URI-based" constructor will be added in future...

...

All parameters that defines db_entryDBEntry  are set in constructor, so create, open, close will have no mandatory arguments

Code Block
languagepy
titledb_entry create/open/close
def create(self, options = None)
def open(self, options = None)
def close(self, options = None)

options - additional options (backend specific)

...

Code Block
languagepy
titleIDS GET
def get(self, idsNameids_name, occurrence = 0) # idsNameids_name (e.g. 'equilibrium') ENUM ?
	wallObj = initialize_ids_obj('wall') 
	wallObj.put(self(db_entry))
	return wallObj, IDSName.EQUILIBRIUM, wall.__name__ (see below)) 

Put IDS

Code Block
languagepy
titleIDS PUT
def put(self, ids, occurrence = 0)

...