...
Code Block |
---|
language | py |
---|
title | db_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_entry
DBEntry
are set in constructor, so create, open, close
will have no mandatory arguments
Code Block |
---|
language | py |
---|
title | db_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 |
---|
|
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 |
---|
|
def put(self, ids, occurrence = 0) |
...