gnome.utilities.serializable_demo_objects
This file is documentation and a demonstration of how to use Schema objects to allow Gnome objects to do the following tasks:
Save the object to a zip file
Load the object from a zip file
Get a serialization of the object (JSON)
Deserialize a JSON structure into an instance
Apply a JSON structure as an update
Classes
A class for assigning a unique ID for an object |
Functions
|
|
Module Contents
- gnome.utilities.serializable_demo_objects.dates()
- gnome.utilities.serializable_demo_objects.series_data()
- gnome.utilities.serializable_demo_objects.series_data2()
- class gnome.utilities.serializable_demo_objects.DemoObj(filename=None, foo_float=None, foo_float_array=None, variable=None, variables=None, **kwargs)
Bases:
gnome.gnomeobject.GnomeId
A class for assigning a unique ID for an object
- filename = None
- foo_float = 42.0
- foo_float_array = [42.0, 84.0]
- variable = None
- variables = None
- property timeseries
- classmethod demo()