imas.backends.imas_core.db_entry_al.ALDBEntryImpl¶
- class imas.backends.imas_core.db_entry_al.ALDBEntryImpl(uri: str, mode: int, factory: IDSFactory)¶
Bases:
DBEntryImplDBEntry implementation using imas_core as a backend.
- __init__(uri: str, mode: int, factory: IDSFactory)¶
Methods
__init__(uri, mode, factory)Get the access layer version used to store data.
close(*[, erase])Close the data source.
delete_data(ids_name, occurrence)Implement DBEntry.delete_data()
from_pulse_run(backend_id, db_name, pulse, ...)Open a datasource with pulse, run and other legacy arguments.
from_uri(uri, mode, factory)Open a datasource by URI.
get(ids_name, occurrence, parameters, ...)Implement DBEntry.get/get_slice/get_sample.
list_all_occurrences(ids_name)Implement DBEntry.list_all_occurrences()
put(ids, occurrence, is_slice)Implement DBEntry.put()/put_slice(): store data.
read_dd_version(ids_name, occurrence)Read data dictionary version that the requested IDS was stored with.
- classmethod from_pulse_run(backend_id: int, db_name: str, pulse: int, run: int, user_name: str | None, data_version: str | None, mode: int, options: Any, factory: IDSFactory) ALDBEntryImpl¶
Open a datasource with pulse, run and other legacy arguments.
- classmethod from_uri(uri: str, mode: str, factory: IDSFactory) ALDBEntryImpl¶
Open a datasource by URI.
- get(ids_name: str, occurrence: int, parameters: None | GetSliceParameters | GetSampleParameters, destination: IDSToplevel, lazy: bool, nbc_map: NBCPathMap | None) None¶
Implement DBEntry.get/get_slice/get_sample. Load data from the data source.
- Parameters:
- ids_name: str¶
Name of the IDS to load.
- occurrence: int¶
Which occurence of the IDS to load.
- parameters: None | GetSliceParameters | GetSampleParameters¶
Additional parameters for a get_slice/get_sample call.
- destination: IDSToplevel¶
IDS object to store data in.
- lazy: bool¶
Use lazy loading.
- nbc_map: NBCPathMap | None¶
NBCPathMap to use for implicit conversion. When None, no implicit conversion needs to be done.
- put(ids: IDSToplevel, occurrence: int, is_slice: bool) None¶
Implement DBEntry.put()/put_slice(): store data.