formats

Concrete formats of Daf data sets.

dafpy.formats. memory_daf ( jl_obj: Julia: MemoryDaf | None = None , * , name: str = 'memory' ) DafWriter [source]

Simple in-memory storage. See the Julia documentation for details.

dafpy.formats. files_daf ( path : str , mode : str = 'r' , * , name : str | None = None ) DafReadOnly | DafWriter [source]

A Daf storage format in disk files. 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 Daf storage format in an HDF5 disk file. See the Julia documentation for details.

Note that if you want to open the HDF5 file yourself (e.g., to access a specific group in it as a Daf data set), you will need to use the Julia API to do so, in order to pass the result here. That is, the current Python Daf API does not support using the Python HDF5 API. This is because the Daf Python API is just a thin wrapper for the Julia Daf implementation, which doesn’t “speak Python”.

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 single DafReader . 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 DafReader data, presenting them as a single DafWriter . 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 Daf repositories by ttracing back through the base_daf_repository . See the Julia documentation for details.