From 1c6d17aa69c557cc215eb83e5861ee12bb68ca27 Mon Sep 17 00:00:00 2001 From: Raymond Nepstad Date: Thu, 7 May 2026 11:25:49 +0200 Subject: [PATCH 1/2] 380 Realtime processing creates output folders --- pyopia/cli.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pyopia/cli.py b/pyopia/cli.py index 02b4f53..02ae4ae 100644 --- a/pyopia/cli.py +++ b/pyopia/cli.py @@ -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) From 399ecb3843a6278ce8a8e900aa03bbe7a79565a5 Mon Sep 17 00:00:00 2001 From: Raymond Nepstad Date: Thu, 7 May 2026 11:34:52 +0200 Subject: [PATCH 2/2] 380 Increase patch version --- pyopia/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyopia/__init__.py b/pyopia/__init__.py index a1c47bc..f6d2b7c 100644 --- a/pyopia/__init__.py +++ b/pyopia/__init__.py @@ -1 +1 @@ -__version__ = "2.16.2" +__version__ = "2.16.3"