opendrift.models.openoil.adios.models.oil.version_update

version_update.py

code for dealing with different versions of the data model

NOTE: this may need some refactoring when it gets more complicated

Module Contents

Classes

Updater

update_0_10_0_to_0_10_0

Functions

update_json(py_json)

updates JSON for an oil object from an older version to a newer one

Attributes

UPDATERS

class opendrift.models.openoil.adios.models.oil.version_update.Updater[source]
ver_from
ver_to
__call__(py_json)[source]
class opendrift.models.openoil.adios.models.oil.version_update.update_0_10_0_to_0_10_0[source]

Bases: Updater

ver_from
ver_to
update(py_json)[source]
opendrift.models.openoil.adios.models.oil.version_update.UPDATERS
opendrift.models.openoil.adios.models.oil.version_update.update_json(py_json)[source]

updates JSON for an oil object from an older version to a newer one