adapters

Adapt Daf data to a computation . See the Julia documentation for details.

The Julia package has support for creating self-documenting computations (see the Julia documentation for details) which explicitly declare a contract describing the inputs and outputs of the computation (see the Julia documentation for details). The Python package doesn’t provide these utilities, since we’d like to promote implementing such computations in Julia, so they would be efficient (in particular, effectively use parallelism), and be available to be called from Julia, Python (using this package) and R (using the equivalent R package). That said, nothing prevents the creation of Daf computational pipelines in Python or any other language, if one insists on doing so.

dafpy.adapters. adapter ( daf: ~dafpy.data.DafWriter, *, input_axes: ~typing.Mapping[str, str | ~dafpy.queries.Axis | ~dafpy.queries.Lookup | ~dafpy.queries.Names | ~dafpy.operations.QuerySequence | None] | None = None, input_data: ~typing.Mapping[str | ~typing.Tuple[str, str] | ~typing.Tuple[str, str, str] | ~typing.Tuple[str, str, str, str], str | ~dafpy.queries.Axis | ~dafpy.queries.Lookup | ~dafpy.queries.Names | ~dafpy.operations.QuerySequence | None] | None = None, capture: ~typing.Callable[[...], ~dafpy.data.DafWriter] = <function memory_daf>, output_axes: ~typing.Mapping[str, str | ~dafpy.queries.Axis | ~dafpy.queries.Lookup | ~dafpy.queries.Names | ~dafpy.operations.QuerySequence | None] | None = None, output_data: ~typing.Mapping[str | ~typing.Tuple[str, str] | ~typing.Tuple[str, str, str] | ~typing.Tuple[str, str, str, str], str | ~dafpy.queries.Axis | ~dafpy.queries.Lookup | ~dafpy.queries.Names | ~dafpy.operations.QuerySequence | None] | None = None, empty: ~typing.Mapping[str | ~typing.Tuple[str, str] | ~typing.Tuple[str, str, str] | ~typing.Tuple[str, str, str, str], bool | int | float | ~numpy.int8 | ~numpy.int16 | ~numpy.int32 | ~numpy.int64 | ~numpy.uint8 | ~numpy.uint16 | ~numpy.uint32 | ~numpy.uint64 | ~numpy.float32 | ~numpy.float64 | str] | None = None, relayout: bool = True, overwrite: bool = False ) Iterator [ DafWriter ] [source]

Invoke a computation on a view of some daf data set and return the result; copy a view of the results into the base daf data set. See the Julia documentation for details.