Skip to content
Snippets Groups Projects
Commit a2429a05 authored by Martin Lange's avatar Martin Lange
Browse files

fix doctests

parent 9aae63a3
No related branches found
No related tags found
1 merge request!215Fix for new units default
Pipeline #132383 passed with stages
in 3 minutes and 57 seconds
......@@ -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),
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment