Introduced changes should work in parallel with existing API (unless it proves impossible)
'Old' methods and classes will be marked as deprecated
1. AL_ENTRY
Class keeps information about one, particular database entry (eg. pulse-file)
1.1. Class structure:
, DB_ENTRY - any better names?
1.2. Definition (constructor)
DB Entry is defined by:
- backend
- user name (eg.
g2bpalak
) - db name (eg.
test
) data version- do we need it (see Open Points)?- shot
- run
al_entry constructor
def __init__(self, backendID, db_name, shot, run, userName=None) if userName is None: user = $USER
Additional "URI-based" constructor will be added in future...
1.3. Create/open/close
All parameters that defines db_entry
are set in constructor, so create, open, close
will have no arguments
al_entry create/open/close
def create(self) def open(self) def close(self)
1.4. Get IDS
IDS GET
def get(self, idsName, occurrence = 0) # idsName (e.g. 'equilibrium') return ids
IDS PUT
def put(self, ids, occurrence = 0)
1.5. Any other method is needed to ba added to db_entry class?
getTime vector?