marEx 4.0.3__tar.gz → 4.0.4__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 (59) hide show
  1. {marex-4.0.3 → marex-4.0.4}/PKG-INFO +1 -1
  2. {marex-4.0.3 → marex-4.0.4}/marEx/detect.py +4 -1
  3. {marex-4.0.3 → marex-4.0.4}/marEx.egg-info/PKG-INFO +1 -1
  4. {marex-4.0.3 → marex-4.0.4}/.codecov.yml +0 -0
  5. {marex-4.0.3 → marex-4.0.4}/.github/workflows/README.md +0 -0
  6. {marex-4.0.3 → marex-4.0.4}/.github/workflows/ci.yml +0 -0
  7. {marex-4.0.3 → marex-4.0.4}/.github/workflows/release.yml +0 -0
  8. {marex-4.0.3 → marex-4.0.4}/.github/workflows/validate.py +0 -0
  9. {marex-4.0.3 → marex-4.0.4}/.readthedocs.yaml +0 -0
  10. {marex-4.0.3 → marex-4.0.4}/CITATION.cff +0 -0
  11. {marex-4.0.3 → marex-4.0.4}/CONTRIBUTING.md +0 -0
  12. {marex-4.0.3 → marex-4.0.4}/MANIFEST.in +0 -0
  13. {marex-4.0.3 → marex-4.0.4}/README.md +0 -0
  14. {marex-4.0.3 → marex-4.0.4}/examples/batch jobs/run_detect.py +0 -0
  15. {marex-4.0.3 → marex-4.0.4}/examples/batch jobs/run_track.py +0 -0
  16. {marex-4.0.3 → marex-4.0.4}/examples/batch jobs/submit_track.sh +0 -0
  17. {marex-4.0.3 → marex-4.0.4}/examples/gridded data/01_preprocess_extremes.ipynb +0 -0
  18. {marex-4.0.3 → marex-4.0.4}/examples/gridded data/02_id_track_events.ipynb +0 -0
  19. {marex-4.0.3 → marex-4.0.4}/examples/gridded data/03_visualise_events.ipynb +0 -0
  20. {marex-4.0.3 → marex-4.0.4}/examples/regional data/01_preprocess_extremes.ipynb +0 -0
  21. {marex-4.0.3 → marex-4.0.4}/examples/regional data/02_id_track_events.ipynb +0 -0
  22. {marex-4.0.3 → marex-4.0.4}/examples/regional data/03_visualise_events.ipynb +0 -0
  23. {marex-4.0.3 → marex-4.0.4}/examples/unstructured data/01_preprocess_extremes.ipynb +0 -0
  24. {marex-4.0.3 → marex-4.0.4}/examples/unstructured data/02_id_track_events.ipynb +0 -0
  25. {marex-4.0.3 → marex-4.0.4}/examples/unstructured data/03_visualise_events.ipynb +0 -0
  26. {marex-4.0.3 → marex-4.0.4}/marEx/__init__.py +0 -0
  27. {marex-4.0.3 → marex-4.0.4}/marEx/_coverage_init.py +0 -0
  28. {marex-4.0.3 → marex-4.0.4}/marEx/_dependencies.py +0 -0
  29. {marex-4.0.3 → marex-4.0.4}/marEx/exceptions.py +0 -0
  30. {marex-4.0.3 → marex-4.0.4}/marEx/helper.py +0 -0
  31. {marex-4.0.3 → marex-4.0.4}/marEx/logging_config.py +0 -0
  32. {marex-4.0.3 → marex-4.0.4}/marEx/plotX/__init__.py +0 -0
  33. {marex-4.0.3 → marex-4.0.4}/marEx/plotX/base.py +0 -0
  34. {marex-4.0.3 → marex-4.0.4}/marEx/plotX/gridded.py +0 -0
  35. {marex-4.0.3 → marex-4.0.4}/marEx/plotX/unstructured.py +0 -0
  36. {marex-4.0.3 → marex-4.0.4}/marEx/track.py +0 -0
  37. {marex-4.0.3 → marex-4.0.4}/marEx.egg-info/SOURCES.txt +0 -0
  38. {marex-4.0.3 → marex-4.0.4}/marEx.egg-info/dependency_links.txt +0 -0
  39. {marex-4.0.3 → marex-4.0.4}/marEx.egg-info/requires.txt +0 -0
  40. {marex-4.0.3 → marex-4.0.4}/marEx.egg-info/top_level.txt +0 -0
  41. {marex-4.0.3 → marex-4.0.4}/pyproject.toml +0 -0
  42. {marex-4.0.3 → marex-4.0.4}/setup.cfg +0 -0
  43. {marex-4.0.3 → marex-4.0.4}/tests/__init__.py +0 -0
  44. {marex-4.0.3 → marex-4.0.4}/tests/conftest.py +0 -0
  45. {marex-4.0.3 → marex-4.0.4}/tests/coverage_config.py +0 -0
  46. {marex-4.0.3 → marex-4.0.4}/tests/make_test_data.ipynb +0 -0
  47. {marex-4.0.3 → marex-4.0.4}/tests/test_detect_detrending.py +0 -0
  48. {marex-4.0.3 → marex-4.0.4}/tests/test_detect_helpers.py +0 -0
  49. {marex-4.0.3 → marex-4.0.4}/tests/test_error_handling.py +0 -0
  50. {marex-4.0.3 → marex-4.0.4}/tests/test_exceptions.py +0 -0
  51. {marex-4.0.3 → marex-4.0.4}/tests/test_gridded_preprocessing.py +0 -0
  52. {marex-4.0.3 → marex-4.0.4}/tests/test_gridded_tracking.py +0 -0
  53. {marex-4.0.3 → marex-4.0.4}/tests/test_integration.py +0 -0
  54. {marex-4.0.3 → marex-4.0.4}/tests/test_logging_system.py +0 -0
  55. {marex-4.0.3 → marex-4.0.4}/tests/test_plotx.py +0 -0
  56. {marex-4.0.3 → marex-4.0.4}/tests/test_track_edge_cases.py +0 -0
  57. {marex-4.0.3 → marex-4.0.4}/tests/test_track_helpers.py +0 -0
  58. {marex-4.0.3 → marex-4.0.4}/tests/test_unstructured_preprocessing.py +0 -0
  59. {marex-4.0.3 → marex-4.0.4}/tests/test_unstructured_tracking.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: marEx
3
- Version: 4.0.3
3
+ Version: 4.0.4
4
4
  Summary: Marine Extremes Detection and Tracking
5
5
  Author-email: Aaron Wienkers <aaron@wienkers.com>
6
6
  Project-URL: Homepage, https://github.com/wienkers/marEx
@@ -622,7 +622,9 @@ def preprocess_data(
622
622
  ds = ds.isel({dimensions["time"]: time_sel})
623
623
 
624
624
  # Break graph after expensive anomaly computation
625
- if use_temp_checkpoints:
625
+ # Only needed for shifting baseline, because this is the most expensive method
626
+ # Other methods result in an odd chunking structure that cannot be checkpointed easily
627
+ if use_temp_checkpoints and method_anomaly == "shifting_baseline":
626
628
  logger.debug("Checkpointing anomaly dataset to break graph dependencies")
627
629
  ds = checkpoint_to_zarr(ds, name="anomalies", timedim=dimensions["time"])
628
630
 
@@ -789,6 +791,7 @@ def preprocess_data(
789
791
  show_progress=True,
790
792
  ):
791
793
  ds = ds.persist(optimize_graph=True)
794
+ ds["thresholds"] = ds.thresholds.compute() # Patch for a dask-Zarr bug that has problems saving this data array...
792
795
  ds["mask"] = ds.mask.compute()
793
796
  ds["dat_anomaly"] = fix_dask_tuple_array(ds.dat_anomaly)
794
797
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: marEx
3
- Version: 4.0.3
3
+ Version: 4.0.4
4
4
  Summary: Marine Extremes Detection and Tracking
5
5
  Author-email: Aaron Wienkers <aaron@wienkers.com>
6
6
  Project-URL: Homepage, https://github.com/wienkers/marEx
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
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