gnome.utilities.serializable_demo_objects ========================================= .. py:module:: gnome.utilities.serializable_demo_objects .. autoapi-nested-parse:: 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 ------- .. autoapisummary:: gnome.utilities.serializable_demo_objects.DemoObj Functions --------- .. autoapisummary:: gnome.utilities.serializable_demo_objects.dates gnome.utilities.serializable_demo_objects.series_data gnome.utilities.serializable_demo_objects.series_data2 Module Contents --------------- .. py:function:: dates() .. py:function:: series_data() .. py:function:: series_data2() .. py:class:: DemoObj(filename=None, foo_float=None, foo_float_array=None, variable=None, variables=None, **kwargs) Bases: :py:obj:`gnome.gnomeobject.GnomeId` A class for assigning a unique ID for an object .. py:attribute:: filename :value: None .. py:attribute:: foo_float :value: 42.0 .. py:attribute:: foo_float_array :value: [42.0, 84.0] .. py:attribute:: variable :value: None .. py:attribute:: variables :value: None .. py:property:: timeseries .. py:method:: demo() :classmethod: