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 | Lookup | Names | QuerySequence | None ] | None = None , data : Mapping [ str | Tuple [ str , str ] | Tuple [ str , str , str ] | Tuple [ str , str , str , str ] , str | Axis | Lookup | Names | QuerySequence | None ] | None = None ) DafReadOnly [source]

Wrap Daf data set with a read-only DafView . 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 the cell axis will be exposed as obs (and similarly for data ).

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: value notation, and preserves the order of the entries since in Python dictionaries are ordered by default.

alias of Mapping [ str , Optional [ Union [ str , Axis , Lookup , Names , QuerySequence ]]]

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: value notation, and preserves the order of the entries since in Python dictionaries are ordered by default.

alias of Mapping [ Union [ str , Tuple [ str , str ], Tuple [ str , str , str ], Tuple [ str , str , str , str ]], Optional [ Union [ str , Axis , Lookup , Names , QuerySequence ]]]

dafpy.views. ALL_SCALARS = '*'

A key to use in the data parameter of viewer to specify all the base data scalars. See the Julia documentation for details.

dafpy.views. ALL_AXES = '*'

A pair to use in the axes parameter of viewer to specify all the base data axes. See the Julia documentation for details.

dafpy.views. ALL_VECTORS = ('*', '*')

A key to use in the data parameter of viewer to specify all the vectors of the exposed axes. See the Julia documentation for details.

dafpy.views. ALL_MATRICES = ('*', '*', '*')

A key to use in the data parameter of viewer to specify all the matrices of the exposed axes. See the Julia documentation for details.