| attribute | description |
|---|---|
| data_type | Describes the quantity being measured. |
| data_category | Describes the type of data. |
| data_units | The units of the data measurements |
| acquisition_key | Inventory identity of the data source, spelled network.fiber_array.location.acquisition. |
| tag | A custom string field. |
| history | A list of processing performed on the patch. |
| patch_id | Identifies which data this is. It survives every operation which does not change what the data is of, and changes only when data from more than one source is combined. |
| processing_id | Identifies what was done to the data. It advances on every operation, so two patches which took the same route from the same source carry the same value and two which did not, do not. |
PatchAttrs
PatchAttrs(
data_type: Literal[’‘, ’velocity’, ‘strain_rate’, ‘phase’, ‘phase_difference’, ‘phase_rate’, ‘strain’, ‘temperature’, ‘temperature_gradient’, ‘brillouin_spectrum’, ‘fourier_transform’, ‘amplitude_spectrum’, ‘power_spectrum’, ‘power_spectral_density’, ‘frequency_band_energy’, ‘stalta’, ‘kurtosis’, ‘envelope’, ‘correlation’, ‘tau_p’, ‘dispersion’, ‘phase_weighted_stack’, ‘otdr’] = ““,
data_category: Literal[’‘, ’DAS’, ‘DTS’, ‘DSS’] =”“,
data_units: Quantity | str | None = None,
acquisition_key: str =”“,
tag: str =”“,
history: str | tuple[str, tuple[str, …]] =
patch_id: str =”“,
processing_id: str =”“,
**extra_data ,
)-> None
The expected attributes for a Patch.
PatchAttrs stores non-structural metadata. Nested coordinate payloads in coords are rejected, while flat coord-like keys are treated like any other extra attrs. dims is ignored during normalization.
The default attributes are:
Methods
| Name | Description |
|---|---|
| drop | Drop specific keys if they exist. |
| drop_private | Drop all private attributes. |
| flat_dump | Dump attrs to a flat dict. |
| from_dict | Get a new instance of the PatchAttrs. |
| get | dict-like get method. |
| items | Yield (attribute, values) just like dict.items(). |
| new | Create new instance with some attributed updated. |
| reject_coordinate_attributes | Reject nested coord payloads and ignore structural dims input. |
| update | Update an attribute in the model, return new model. |