classmethod foxes.core.TData.from_tpoints(tpoints, tweights, data=None, dims=None, variables=None, name='tdata', **kwargs)[source]

Create from points at targets

Parameters

tpoints: np.ndarray

The points at targets, shape: (n_states, n_targets, n_tpoints, 3)

tweights: np.ndarray, optional

The target point weights, shape: (n_tpoints,)

data: dict, optional

The initial data to be stored

dims: dict, optional

The dimensions tuples, same or subset of data keys

variables: list of str

Add default empty variables with NaN values and shape (n_states, n_targets, n_tpoints)

name: str

The data container name

kwargs: dict, optional

Additional parameters for the constructor

Returns

pdata: Data

The data object