views
Create a different view of a
Daf
data set using queries. See the Julia
documentation
for details.
- dafpy.views. viewer ( dset : DafReader , * , name : str | None = None , axes : Mapping [ str , str | Axis | LookupScalar | Names | QuerySequence | None ] | None = None , data : Mapping [ str | Tuple [ str , str ] | Tuple [ str , str , str ] | Tuple [ str , str , str , str ] , str | Axis | LookupScalar | Names | QuerySequence | None ] | None = None ) DafReadOnly [source]
-
Wrap
Dafdata set with a read-onlyDafView. See the Julia documentation for details.The order of the axes and data matters. Luckily, the default dictionary type is ordered in modern Python, write
axes = {ALL_AXES: None, "cell": "obs"}you can trust that thecellaxis will be exposed asobs(and similarly fordata).
- dafpy.views. ViewAxes
-
Specify axes to expose from a view. See the Julia documentation for details.
Note that in Python this is a dictionary and not a vector. This allows using the
key: valuenotation, and preserves the order of the entries since in Python dictionaries are ordered by default.alias of
Mapping[str,str|Axis|LookupScalar|Names|QuerySequence|None]
- dafpy.views. ViewData
-
Specify data to expose from view. See the Julia documentation for details.
Note that in Python this is a dictionary and not a vector. This allows using the
key: valuenotation, and preserves the order of the entries since in Python dictionaries are ordered by default.alias of
Mapping[str|Tuple[str,str] |Tuple[str,str,str] |Tuple[str,str,str,str],str|Axis|LookupScalar|Names|QuerySequence|None]
- dafpy.views. ALL_SCALARS = '*'
-
A key to use in the
dataparameter ofviewerto specify all the base data scalars. See the Julia documentation for details.
- dafpy.views. ALL_AXES = '*'
-
A pair to use in the
axesparameter ofviewerto specify all the base data axes. See the Julia documentation for details.
- dafpy.views. ALL_VECTORS = ('*', '*')
-
A key to use in the
dataparameter ofviewerto specify all the vectors of the exposed axes. See the Julia documentation for details.
- dafpy.views. ALL_MATRICES = ('*', '*', '*')
-
A key to use in the
dataparameter ofviewerto specify all the matrices of the exposed axes. See the Julia documentation for details.