formats
Concrete formats of
Daf
data sets.
- class dafpy.formats. BaseDaf ( dset : DafReader , * , 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 ) [source]
-
One base repository of a
complete_chain, and the view parameters to apply to it. See the Julia documentation for details.
- dafpy.formats. chain_reader ( dsets : Sequence [ DafReader ] , * , name : str | None = None ) DafReadOnly [source]
-
Create a read-only chain wrapper of
DafReader, presenting them as a singleDafReader. See the Julia documentation for details.
- dafpy.formats. chain_writer ( dsets : Sequence [ DafReader ] , * , name : str | None = None ) DafWriter [source]
-
Create a chain wrapper for a chain of
DafReaderdata, presenting them as a singleDafWriter. See the Julia documentation for details.
- dafpy.formats. complete_chain ( * , base_daf : DafReader | BaseDaf | Sequence [ DafReader | BaseDaf ] , new_daf : DafWriter , name : str | None = None , absolute : bool = False ) DafWriter [source]
-
Chain a freshly created empty
new_dafon top of one or more base repositories, presenting them as a singleDafWriterwhichcomplete_dafcan reopen. See the Julia documentation for details.
- dafpy.formats. complete_daf ( path : str , mode : str = 'r' , * , name : str | None = None ) DafReadOnly | DafWriter [source]
-
Open a complete chain of
Dafrepositories by tracing back through thebase_daf_repository. See the Julia documentation for details.
- dafpy.formats. files_daf ( path : str , mode : str = 'r' , * , name : str | None = None ) DafReadOnly | DafWriter [source]
-
A
Dafstorage format in disk files. See the Julia documentation for details.
- dafpy.formats. files_to_zarr ( * , files_path : str , zarr_path : str ) None [source]
-
Hard-link convert a
files_daf()directory atfiles_pathinto an equivalentzarr_daf()directory atzarr_path. Thezarr_pathmust not already exist, its name must end with.daf.zarr, and the two paths must live on the same filesystem. See the Julia documentation for details.
- dafpy.formats. h5df ( root : str | Julia: HDF5.File | Julia: HDF5.Group , mode : str = 'r' , * , name : str | None = None ) DafReadOnly | DafWriter [source]
-
A
Dafstorage format in an HDF5 disk file. See the Julia documentation for details.Note that if you want to open the
HDF5file yourself (e.g., to access a specific group in it as aDafdata set), you will need to use the Julia API to do so, in order to pass the result here. That is, the current PythonDafAPI does not support using the PythonHDF5API. This is because theDafPython API is just a thin wrapper for the JuliaDafimplementation, which doesn’t “speak Python”.
- dafpy.formats. http_daf ( url : str , * , name : str | None = None ) DafReadOnly [source]
-
Read-only access to a
files_daf()served overhttp://orhttps://. See the Julia documentation for details.
- dafpy.formats. memory_daf ( jl_obj : Julia: DataAxesFormats.MemoryFormat.MemoryDaf | None = None , * , name : str = 'memory' ) DafWriter [source]
-
Simple in-memory storage. See the Julia documentation for details.
- dafpy.formats. open_daf ( path : str , mode : str = 'r' , * , name : str | None = None ) DafReadOnly | DafWriter [source]
-
Open a
Dafdata set, dispatching to the appropriate backend based onpath. Zarr suffixes (.daf.zarr,.daf.zarr.zip,.dafs.zarr.zip#/...) open azarr_daf();http://orhttps://URLs open ahttp_daf()(read-only);.h5dfand.h5dfs#paths open anh5df(); anything else opens afiles_daf(). See the Julia documentation for details.
- dafpy.formats. zarr_daf ( path : str , mode : str = 'r' , * , name : str | None = None ) DafReadOnly | DafWriter [source]
-
A
Dafstorage format in a Zarr directory tree, Zarr ZIP archive, or remote HTTP(S) Zarr group. Thepathfollows one of these conventions:something.daf.zarr(directory),something.daf.zarr.zip(single-daf ZIP),something.dafs.zarr.zip#/group(sub-daf inside a multi-daf ZIP), orhttp(s)://...(remote zarr served over HTTP; read-only). See the Julia documentation for details.
- dafpy.formats. zarr_to_files ( * , zarr_path : str , files_path : str ) None [source]
-
Hard-link convert a
zarr_daf()directory atzarr_pathinto an equivalentfiles_daf()directory atfiles_path. Thezarr_pathmust be a.daf.zarrdirectory (ZIP and HTTP Zarr backends are rejected); thefiles_pathmust not already exist, and the two paths must live on the same filesystem. See the Julia documentation for details.