PyOPIA 2.16.2__tar.gz → 2.16.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. {pyopia-2.16.2 → pyopia-2.16.3}/PKG-INFO +1 -1
  2. pyopia-2.16.3/pyopia/__init__.py +1 -0
  3. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/cli.py +15 -0
  4. pyopia-2.16.2/pyopia/__init__.py +0 -1
  5. {pyopia-2.16.2 → pyopia-2.16.3}/.gitignore +0 -0
  6. {pyopia-2.16.2 → pyopia-2.16.3}/LICENSE +0 -0
  7. {pyopia-2.16.2 → pyopia-2.16.3}/README.md +0 -0
  8. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/auxillarydata.py +0 -0
  9. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/background.py +0 -0
  10. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/cf_metadata.json +0 -0
  11. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/classify.py +0 -0
  12. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/classify_torch.py +0 -0
  13. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/dataexport/__init__.py +0 -0
  14. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/dataexport/ecotaxa.py +0 -0
  15. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/exampledata.py +0 -0
  16. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/instrument/__init__.py +0 -0
  17. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/instrument/common.py +0 -0
  18. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/instrument/holo.py +0 -0
  19. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/instrument/silcam.py +0 -0
  20. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/instrument/uvp.py +0 -0
  21. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/io.py +0 -0
  22. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/metadata.py +0 -0
  23. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/pipeline.py +0 -0
  24. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/plotting.py +0 -0
  25. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/process.py +0 -0
  26. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/realtime.py +0 -0
  27. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/simulator/__init__.py +0 -0
  28. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/simulator/silcam.py +0 -0
  29. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/statistics.py +0 -0
  30. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/tests/__init__.py +0 -0
  31. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/tests/test_auxillarydata.py +0 -0
  32. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/tests/test_classify.py +0 -0
  33. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/tests/test_io.py +0 -0
  34. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/tests/test_notebooks.py +0 -0
  35. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/tests/test_pipeline.py +0 -0
  36. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/tests/test_process.py +0 -0
  37. {pyopia-2.16.2 → pyopia-2.16.3}/pyopia/tests/test_realtime.py +0 -0
  38. {pyopia-2.16.2 → pyopia-2.16.3}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyOPIA
3
- Version: 2.16.2
3
+ Version: 2.16.3
4
4
  Summary: A Python Ocean Particle Image Analysis toolbox.
5
5
  Project-URL: Repository, https://github.com/sintef/pyopia
6
6
  Project-URL: Documentation, https://pyopia.readthedocs.io
@@ -0,0 +1 @@
1
+ __version__ = "2.16.3"
@@ -371,6 +371,21 @@ def process_realtime(config_filename: str, watch_folder: str = None):
371
371
  # Load config and setup logging
372
372
  pipeline_config = pyopia.io.load_toml(config_filename)
373
373
  setup_logging(pipeline_config)
374
+
375
+ # Create output folders
376
+ if "output" not in pipeline_config["steps"]:
377
+ raise RuntimeError(
378
+ 'The given config file is missing an "output" step.\n'
379
+ + "This is needed to setup how to save data to disc."
380
+ )
381
+ if "output_datafile" not in pipeline_config["steps"]["output"]:
382
+ raise RuntimeError(
383
+ 'The given config file is missing "output_datafile" option in the "output" step.\n'
384
+ + "This is needed to setup how to save data to disc."
385
+ )
386
+ output_datafile = pipeline_config["steps"]["output"]["output_datafile"]
387
+ os.makedirs(os.path.split(output_datafile)[:-1][0], exist_ok=True)
388
+
374
389
  pyopia.realtime.run_realtime(pipeline_config, watch_folder=watch_folder)
375
390
 
376
391
 
@@ -1 +0,0 @@
1
- __version__ = "2.16.2"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes