Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

sdynpy.SdynpyArray

Signature

class sdynpy.SdynpyArray(shape, dtype=<class 'float'>, buffer=None, offset=0, strides=None, order=None)

Superclass of the core SDynPy objects

The core SDynPy object arrays inherit from this class. The class is a subclass of numpy’s ndarray. The underlying data structure is stored as a structured array, but the class’s implementation allows accessing the array fields as if they were attributes.

Attributes

NameSummary
fieldsReturns the fields of the structured array.

fields

Returns the fields of the structured array.

These fields can be accessed through attribute syntax.

Methods

NameSummary
assemble_mat_dictAssembles a dictionary of fields
loadLoad in the specified file into a SDynPy array object
ndenumerateEnumerates over all entries in the array
saveSave the array to a numpy file
savematSave array to a Matlab *.mat file.

assemble_mat_dict

def sdynpy.SdynpyArray.assemble_mat_dict(self)

Assembles a dictionary of fields

Returns

load

def sdynpy.SdynpyArray.load(cls, filename)

Load in the specified file into a SDynPy array object

Parameters

Returns

Raises

ndenumerate

def sdynpy.SdynpyArray.ndenumerate(self)

Enumerates over all entries in the array

Yields

save

def sdynpy.SdynpyArray.save(self, filename: str)

Save the array to a numpy file

Parameters

savemat

def sdynpy.SdynpyArray.savemat(self, filename)

Save array to a Matlab *.mat file.

Parameters

Returns