- class foxes.core.Data(foxes.utils.Dict)[source]
Container for numpy array data and the associated meta data.
Attributes¶
- dims: dict
The dimensions tuples, same or subset of data keys
- loop_dims: array_like of str
List of the loop dimensions during xarray’s apply_ufunc calculations
- sizes: dict
The dimension sizes
- chunki_states: int, optional
The index of the states chunk
- chunki_points: int, optional
The index of the points chunk
Public members¶
- property n_states
The number of states
- property n_turbines
The number of turbines
- property chunki_states
The index of the states chunk
- property chunki_points
The index of the points chunk
- property n_chunks_states
The number of states chunks
- property n_chunks_points
The number of points chunks
-
classmethod from_dataset(ds, *args, callback=
None, ...)[source] Create Data object from a dataset
- property name
The dictionary name
- __setitem__(key, value)[source]
Set self[key] to value.
- __getitem__(key)[source]
x.__getitem__(y) <==> x[y]
- update(*args, **kwargs)[source]
Update the dictionary with the key/value pairs from other, overwriting existing keys.