Skip to content
Snippets Groups Projects
Commit ef097ebf authored by Jeremy M Fee's avatar Jeremy M Fee
Browse files

Make derived factory optional for controller

parent e2b2eb85
No related branches found
No related tags found
2 merge requests!146Release CMO metadata to production,!137Make derived factory optional for controller
......@@ -548,7 +548,7 @@ def get_input_factory(args):
input_factory = StreamTimeseriesFactory(
factory=input_factory, stream=input_stream
)
return DerivedTimeseriesFactory(input_factory)
return input_factory
def get_output_factory(args):
......@@ -725,6 +725,8 @@ def _main(args):
"""
# create controller
input_factory = get_input_factory(args)
if args.input_derived:
input_factory = DerivedTimeseriesFactory(input_factory)
output_factory = get_output_factory(args)
algorithm = algorithms[args.algorithm]()
algorithm.configure(args)
......@@ -766,6 +768,12 @@ def parse_args(args):
help='Input format (Default "edge")',
)
input_group.add_argument(
"--input-derived",
action="store_true",
default=False,
help="Wrap the input factory in a DerivedTimeseriesFactory",
)
input_group.add_argument(
"--input-file", help="Read from specified file", metavar="FILE"
)
......
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