reconstruction

Reconstruct implicit axes. See the Julia documentation for details.

dafpy.reconstruction. connect_axes ( dset : DafWriter , * , base_axis : str , from_axis : str , from_property : str | None = None , to_axis : str , to_property : str | None = None , connect_property : str | None = None , overwrite : bool | None = None ) None [source]

Given a base_axis with two vector properties, one holding a reference to from_axis and one to to_axis , create a property of from_axis that references to_axis . This is only possible if every entry of from_axis is always associated with a single entry of to_axis . See the Julia documentation for details.

dafpy.reconstruction. reconstruct_axis ( dset : DafWriter , * , existing_axis : str , implicit_axis : str , rename_axis : str | None = None , implicit_properties : AbstractSet [ str ] | None = None , skipped_properties : AbstractSet [ str ] | None = None ) Mapping [ str , bool | int | float | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | float32 | float64 | str | None ] [source]

Given an existing_axis in a Daf data set, which has a property implicit_axis , create a new axis with the same name (or, if specified, call it rename_axis ). An empty string means there is no value; data spelling that some other way should be passed through unify_empty_vector_values first. See the Julia documentation for details.

dafpy.reconstruction. unify_empty_vector_values ( dset : DafWriter , * , axis : str , property : str , empty_values : bool | int | float | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | float32 | float64 | str | Collection [ bool | int | float | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | float32 | float64 | str ] , dtype : Type | None = None , empty_value : bool | int | float | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | float32 | float64 | str | None = None ) None [source]

Replace every one of the empty_values of a property of an axis with a single empty_value , so that “there is no value here” is spelled one way, converting the property to a dtype on the way if one is given. See the Julia documentation for details.