sgpykit.util.struct
Functions
|
Recursively compares two nested lists or arrays to check if they are equal. |
Classes
|
A simple struct-like class that allows attribute access and dictionary-like item access. |
- class sgpykit.util.struct.Struct(**kwargs)[source]
Bases:
objectA simple struct-like class that allows attribute access and dictionary-like item access.
This class is designed to mimic MATLAB struct behavior, allowing flexible field access and comparison operations.
- Attributes:
- **kwargsdict
Arbitrary keyword arguments that become attributes of the struct.
Methods
Return a list of the struct's field names.
isequal_to(obj2)Check if this struct is equal to another struct-like object.