hydro.migration

Functions that hopefully can migrate from a past version of data to a future version.

Classes

MigrationABC

Helper class that provides a standard way to create an ABC using

Module Contents

class hydro.migration.MigrationABC[source]

Bases: abc.ABC

Helper class that provides a standard way to create an ABC using inheritance.

version_from = '1.0.0.0'[source]
can_migrate(ds)[source]
Parameters:

ds (xarray.Dataset)

Return type:

bool

abstractmethod migrate(ds)[source]
Parameters:

ds (xarray.Dataset)

Return type:

xarray.Dataset