MagnetiCalc_Data class.
Method | __delitem__ |
Undocumented |
Method | __getitem__ |
Undocumented |
Method | __init__ |
Initializes MagnetiCalc_Data class. |
Method | __iter__ |
Undocumented |
Method | __len__ |
Undocumented |
Method | __setitem__ |
Undocumented |
Method | get |
Gets the A-field components as three separate 1D arrays (raveled). Please refer to get_field() for possible arguments. |
Method | get |
Gets the A-field components as a single list of 3D points (raveled). Please refer to get_field() for possible arguments. |
Method | get |
Gets the sampling volume axes as three separate 1D arrays (raveled). |
Method | get |
Gets the sampling volume axes as a single list of 3D points (raveled). |
Method | get |
Gets the B-field components. Please refer to get_field() for possible arguments. |
Method | get |
Gets the B-field components as a single list of 3D points (raveled). Please refer to get_field() for possible arguments. |
Method | get |
Gets the wire current. |
Method | get |
Gets the sampling volume dimension. |
Method | get |
Gets the field as three separate 1D arrays (raveled). |
Method | get |
Gets the wire points as three separate 1D arrays (raveled). |
Method | get |
Gets the wire points as a single list of 3D points (raveled). |
Instance Variable | dictionary |
Undocumented |
Method | _get |
Gets the raw "fields" dictionary from the data. |
Method | _keytransform |
Undocumented |
Initializes MagnetiCalc_Data class.
This object can be accessed like a dictionary to get the data from an HDF5 export.
Moreover, it provides convenience functions for accessing reshaped or transformed copies of this data.
Parameters | |
data:dict | Dictionary |
Gets the A-field components as three separate 1D arrays (raveled). Please refer to get_field()
for possible arguments.
Returns | |
tuple[ | A_x, A_y, A_z |
Gets the A-field components as a single list of 3D points (raveled). Please refer to get_field()
for possible arguments.
Returns | |
list | List |
Gets the sampling volume axes as three separate 1D arrays (raveled).
Parameters | |
reduce:bool | Enable to reduce each raveled array to its minimal representation (axis ticks) |
Returns | |
tuple[ | x, y, z |
Gets the B-field components. Please refer to get_field()
for possible arguments.
Returns | |
tuple[ | B_x, B_y, B_z |
Gets the B-field components as a single list of 3D points (raveled). Please refer to get_field()
for possible arguments.
Returns | |
list | List |
str
, as_3d: bool
= False) -> tuple[ np.ndarray, np.ndarray, np.ndarray]
:
¶
Gets the field as three separate 1D arrays (raveled).
Parameters | |
fieldstr | Field type ("A" or "B") |
asbool | Enable to transform each raveled 1D array into an unraveled 3D mesh (indexed by the minimal axes) |
Returns | |
tuple[ | Undocumented |
Gets the wire points as three separate 1D arrays (raveled).
Returns | |
tuple[ | x, y, z |