imas.backends.imas_core.al_context.LazyALArrayStructChildContext¶
-
class imas.backends.imas_core.al_context.LazyALArrayStructChildContext(parent_ctx: LazyALContext | None =
None, method: Callable | None =None, args: tuple =(), *, dbentry: ALDBEntryImpl | None =None, nbc_map: NBCPathMap | None =None, time_mode: int | None =None)¶ Bases:
LazyALContextSubclass that allows an array of structures child structure to read data.
-
__init__(parent_ctx: LazyALContext | None =
None, method: Callable | None =None, args: tuple =(), *, dbentry: ALDBEntryImpl | None =None, nbc_map: NBCPathMap | None =None, time_mode: int | None =None)¶
Methods
__init__([parent_ctx, method, args, ...])arraystruct_action(path, timebase, size)Lazily start an arraystruct action.
get_child(child)Retrieve a child entry from the field.
Create and yield the actual ALContext.
global_action(path, rwmode)Lazily start a lowlevel global action, see
ALContext.global_action()slice_action(path, rwmode, time_requested, ...)Lazily start a lowlevel slice action, see
ALContext.slice_action()timerange_action(path, rwmode, tmin, tmax, ...)Lazily start a lowlevel timerange action, see
ALContext.timerange_action().Attributes
Additional arguments we need to supply to self.method
Potential weak reference to opened context.
ALDBEntryImpl object that created us, or our parent.
The ALContext of the ALDBEntryImpl at the time of get/get_slice.
Method we need to call with our parent ALContext to get our ALContext.
NBC map for _get_children() when lazy loading IDSStructArray items.
Optional parent context that provides our parent ALContext.
Time mode used by the IDS being lazy loaded.
- args¶
Additional arguments we need to supply to self.method
- arraystruct_action(path: str, timebase: str, size: int) LazyALArrayStructContext¶
Lazily start an arraystruct action.
- context¶
Potential weak reference to opened context.
- dbentry¶
ALDBEntryImpl object that created us, or our parent.
- dbentry_ctx¶
The ALContext of the ALDBEntryImpl at the time of get/get_slice.
- global_action(path: str, rwmode: int) Iterator[LazyALContext]¶
Lazily start a lowlevel global action, see
ALContext.global_action()
- method¶
Method we need to call with our parent ALContext to get our ALContext.
- nbc_map¶
NBC map for _get_children() when lazy loading IDSStructArray items.
- parent_ctx : LazyALArrayStructContext¶
Optional parent context that provides our parent ALContext.
- slice_action(path: str, rwmode: int, time_requested: float, interpolation_method: int) Iterator[LazyALContext]¶
Lazily start a lowlevel slice action, see
ALContext.slice_action()
- time_mode¶
Time mode used by the IDS being lazy loaded.
-
__init__(parent_ctx: LazyALContext | None =