Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyopia/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.16.2"
__version__ = "2.16.3"
15 changes: 15 additions & 0 deletions pyopia/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,21 @@ def process_realtime(config_filename: str, watch_folder: str = None):
# Load config and setup logging
pipeline_config = pyopia.io.load_toml(config_filename)
setup_logging(pipeline_config)

# Create output folders
if "output" not in pipeline_config["steps"]:
raise RuntimeError(
'The given config file is missing an "output" step.\n'
+ "This is needed to setup how to save data to disc."
)
if "output_datafile" not in pipeline_config["steps"]["output"]:
raise RuntimeError(
'The given config file is missing "output_datafile" option in the "output" step.\n'
+ "This is needed to setup how to save data to disc."
)
output_datafile = pipeline_config["steps"]["output"]["output_datafile"]
os.makedirs(os.path.split(output_datafile)[:-1][0], exist_ok=True)

pyopia.realtime.run_realtime(pipeline_config, watch_folder=watch_folder)


Expand Down
Loading