Skip to content
Snippets Groups Projects

Fix for new units default

Merged Martin Lange requested to merge fix-units-tests into main
18 files
+ 153
109
Compare changes
  • Side-by-side
  • Inline
Files
18
@@ -175,8 +175,8 @@ In the most simple case, all metadata is known in :meth:`.Component._initialize`
generator = fm.modules.CallbackGenerator(
{
"Output1": (lambda t: t.day, fm.Info(time=None, grid=fm.NoGrid())),
"Output2": (lambda t: t.day, fm.Info(time=None, grid=fm.NoGrid())),
"Output1": (lambda t: t.day, fm.Info(time=None, grid=fm.NoGrid(), units=None)),
"Output2": (lambda t: t.day, fm.Info(time=None, grid=fm.NoGrid(), units=None)),
},
start=datetime(2000, 1, 1),
step=timedelta(days=30),
@@ -185,7 +185,7 @@ In the most simple case, all metadata is known in :meth:`.Component._initialize`
simple_conn = SimpleConnect(datetime(2000, 1, 1), timedelta(days=1))
consumer = fm.modules.DebugConsumer(
{"Input": fm.Info(None, grid=fm.NoGrid())},
{"Input": fm.Info(None, grid=fm.NoGrid(), units=None)},
start=datetime(2000, 1, 1),
step=timedelta(days=1),
)
@@ -262,8 +262,8 @@ and the initial data should be generated from it.
generator = fm.modules.CallbackGenerator(
{
"Output1": (lambda t: t.day, fm.Info(time=None, grid=fm.NoGrid())),
"Output2": (lambda t: t.day, fm.Info(time=None, grid=fm.NoGrid())),
"Output1": (lambda t: t.day, fm.Info(time=None, grid=fm.NoGrid(), units=None)),
"Output2": (lambda t: t.day, fm.Info(time=None, grid=fm.NoGrid(), units=None)),
},
start=datetime(2000, 1, 1),
step=timedelta(days=30),
@@ -272,7 +272,7 @@ and the initial data should be generated from it.
complex_conn = ComplexConnect(datetime(2000, 1, 1), timedelta(days=1))
consumer = fm.modules.DebugConsumer(
{"Input": fm.Info(None, grid=fm.NoGrid())},
{"Input": fm.Info(None, grid=fm.NoGrid(), units=None)},
start=datetime(2000, 1, 1),
step=timedelta(days=1),
)
Loading