Array Types¶
Array classes exist allow arrays to be shared across different objects.
ScalarArray¶
-
class
omf.data.ScalarArray(array=None, **kwargs)[source]¶ Class with unique ID and data array
Required Properties:
- array (
Array): Shared Scalar Array, a list or numpy array of <type ‘float’>, <type ‘int’> with shape (*)
Other Properties:
- date_created (
GettableProperty): Date project was created - date_modified (
GettableProperty): Date project was modified - uid (
Uuid): Unique identifier, a unique ID auto-generated with uuid.uuid4()
- array (
Vector3Array¶
-
class
omf.data.Vector3Array(array=None, **kwargs)[source]¶ Shared array of 3D vectors
Required Properties:
- array (
Vector3Array): Shared Vector3 Array, a list of Vector3 of <type ‘float’> with shape (*, 3)
Other Properties:
- date_created (
GettableProperty): Date project was created - date_modified (
GettableProperty): Date project was modified - uid (
Uuid): Unique identifier, a unique ID auto-generated with uuid.uuid4()
- array (
Vector2Array¶
-
class
omf.data.Vector2Array(array=None, **kwargs)[source]¶ Shared array of 2D vectors
Required Properties:
- array (
Vector2Array): Shared Vector2 Array, a list of Vector2 of <type ‘float’> with shape (*, 2)
Other Properties:
- date_created (
GettableProperty): Date project was created - date_modified (
GettableProperty): Date project was modified - uid (
Uuid): Unique identifier, a unique ID auto-generated with uuid.uuid4()
- array (
Int3Array¶
-
class
omf.data.Int3Array(array=None, **kwargs)[source]¶ Shared n x 3 array of integers
Required Properties:
- array (
Array): Shared n x 3 Int Array, a list or numpy array of <type ‘int’> with shape (*, 3)
Other Properties:
- date_created (
GettableProperty): Date project was created - date_modified (
GettableProperty): Date project was modified - uid (
Uuid): Unique identifier, a unique ID auto-generated with uuid.uuid4()
- array (
Int2Array¶
-
class
omf.data.Int2Array(array=None, **kwargs)[source]¶ Shared n x 2 array of integers
Required Properties:
- array (
Array): Shared n x 2 Int Array, a list or numpy array of <type ‘int’> with shape (*, 2)
Other Properties:
- date_created (
GettableProperty): Date project was created - date_modified (
GettableProperty): Date project was modified - uid (
Uuid): Unique identifier, a unique ID auto-generated with uuid.uuid4()
- array (
ColorArray¶
-
class
omf.data.ColorArray(array=None, **kwargs)[source]¶ Shared array of Colors
Required Properties:
- array (a list of
Color): Shared array of Colors, a list (each item is a color)
Other Properties:
- date_created (
GettableProperty): Date project was created - date_modified (
GettableProperty): Date project was modified - uid (
Uuid): Unique identifier, a unique ID auto-generated with uuid.uuid4()
- array (a list of
StringArray¶
-
class
omf.data.StringArray(array=None, **kwargs)[source]¶ Shared array of text strings
Required Properties:
- array (a list of
String): Shared array of text strings, a list (each item is a unicode string)
Other Properties:
- date_created (
GettableProperty): Date project was created - date_modified (
GettableProperty): Date project was modified - uid (
Uuid): Unique identifier, a unique ID auto-generated with uuid.uuid4()
- array (a list of
DateTimeArray¶
-
class
omf.data.DateTimeArray(array=None, **kwargs)[source]¶ Shared array of DateTimes
Required Properties:
- array (a list of
DateTime): Shared array of DateTimes, a list (each item is a datetime object)
Other Properties:
- date_created (
GettableProperty): Date project was created - date_modified (
GettableProperty): Date project was modified - uid (
Uuid): Unique identifier, a unique ID auto-generated with uuid.uuid4()
- array (a list of