floatcsep 0.3.0__tar.gz → 0.4.1__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 (247) hide show
  1. floatcsep-0.4.1/.github/workflows/build-test.yml +46 -0
  2. {floatcsep-0.3.0 → floatcsep-0.4.1}/MANIFEST.in +0 -1
  3. {floatcsep-0.3.0/floatcsep.egg-info → floatcsep-0.4.1}/PKG-INFO +8 -35
  4. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/conf.py +0 -1
  5. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/guide/experiment_config.rst +11 -0
  6. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/guide/model_config.rst +0 -3
  7. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/guide/postprocess_config.rst +4 -4
  8. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/index.rst +4 -0
  9. floatcsep-0.4.1/docs/intro/installation.rst +142 -0
  10. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/reference/api_reference.rst +40 -27
  11. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/reference/infrastructure.rst +2 -2
  12. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/reference/utilities.rst +4 -4
  13. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/tutorials/case_a.rst +1 -1
  14. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/tutorials/case_e.rst +10 -2
  15. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/tutorials/case_f.rst +14 -7
  16. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/tutorials/case_g.rst +22 -20
  17. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/tutorials/case_h.rst +15 -10
  18. floatcsep-0.4.1/docs/tutorials/case_i.rst +213 -0
  19. floatcsep-0.4.1/docs/tutorials/case_j.rst +142 -0
  20. {floatcsep-0.3.0 → floatcsep-0.4.1}/environment.yml +1 -1
  21. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep/__init__.py +0 -2
  22. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep/commands/main.py +1 -1
  23. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep/experiment.py +65 -71
  24. floatcsep-0.4.1/floatcsep/infrastructure/engine.py +355 -0
  25. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep/infrastructure/environments.py +303 -165
  26. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep/infrastructure/logger.py +4 -4
  27. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep/infrastructure/registries.py +141 -92
  28. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep/infrastructure/repositories.py +138 -110
  29. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep/model.py +206 -166
  30. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep/postprocess/plot_handler.py +84 -24
  31. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep/postprocess/reporting.py +164 -79
  32. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep/utils/accessors.py +11 -14
  33. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep/utils/file_io.py +44 -26
  34. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep/utils/helpers.py +201 -38
  35. {floatcsep-0.3.0 → floatcsep-0.4.1/floatcsep.egg-info}/PKG-INFO +8 -35
  36. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep.egg-info/SOURCES.txt +30 -4
  37. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep.egg-info/requires.txt +2 -25
  38. floatcsep-0.4.1/pyproject.toml +88 -0
  39. {floatcsep-0.3.0 → floatcsep-0.4.1}/requirements.txt +2 -1
  40. {floatcsep-0.3.0 → floatcsep-0.4.1}/requirements_dev.txt +1 -8
  41. floatcsep-0.4.1/setup.cfg +4 -0
  42. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/model_cfg.yml +0 -1
  43. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/e2e/test_data.py +36 -3
  44. floatcsep-0.4.1/tests/integration/test_experiment_engine.py +69 -0
  45. floatcsep-0.4.1/tests/integration/test_model_accessors.py +224 -0
  46. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/integration/test_model_docker.py +5 -4
  47. floatcsep-0.4.1/tests/integration/test_model_engine.py +71 -0
  48. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/integration/test_model_infrastructure.py +30 -4
  49. floatcsep-0.4.1/tests/unit/test_accessors.py +224 -0
  50. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/unit/test_commands.py +46 -31
  51. floatcsep-0.4.1/tests/unit/test_engine.py +285 -0
  52. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/unit/test_environments.py +266 -147
  53. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/unit/test_experiment.py +8 -6
  54. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/unit/test_model.py +189 -71
  55. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/unit/test_plot_handler.py +21 -15
  56. floatcsep-0.4.1/tests/unit/test_registry.py +412 -0
  57. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/unit/test_reporting.py +8 -7
  58. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/unit/test_repositories.py +6 -9
  59. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/unit/test_utils.py +8 -8
  60. {floatcsep-0.3.0 → floatcsep-0.4.1}/tox.ini +1 -2
  61. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_a/best_model.dat +2 -2
  62. floatcsep-0.4.1/tutorials/case_a/catalog.csep +3 -0
  63. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_a/config.yml +1 -3
  64. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_d/config.yml +3 -0
  65. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_e/config.yml +3 -1
  66. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_f/config.yml +4 -1
  67. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_g/custom_plot_script.py +1 -1
  68. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_g/models.yml +1 -0
  69. floatcsep-0.4.1/tutorials/case_g/pymock/Dockerfile +41 -0
  70. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_g/pymock/input/args.txt +3 -10
  71. floatcsep-0.4.1/tutorials/case_g/pymock/pymock/libs.py +90 -0
  72. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_g/pymock/pymock/main.py +25 -27
  73. floatcsep-0.4.1/tutorials/case_g/pymock/pyproject.toml +8 -0
  74. floatcsep-0.4.1/tutorials/case_g/pymock/requirements.txt +3 -0
  75. floatcsep-0.4.1/tutorials/case_g/pymock/setup.cfg +27 -0
  76. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_h/config.yml +3 -2
  77. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_h/custom_report.py +22 -9
  78. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_h/models.yml +10 -9
  79. floatcsep-0.4.1/tutorials/case_i/catalog.csv +35021 -0
  80. floatcsep-0.4.1/tutorials/case_i/config.yml +25 -0
  81. floatcsep-0.4.1/tutorials/case_i/models.yml +15 -0
  82. floatcsep-0.4.1/tutorials/case_i/pymock/Dockerfile +41 -0
  83. floatcsep-0.4.1/tutorials/case_i/pymock/README.md +105 -0
  84. floatcsep-0.4.1/tutorials/case_i/pymock/input/args.txt +7 -0
  85. floatcsep-0.4.1/tutorials/case_i/pymock/pymock/__init__.py +0 -0
  86. floatcsep-0.4.1/tutorials/case_i/pymock/pymock/libs.py +90 -0
  87. floatcsep-0.4.1/tutorials/case_i/pymock/pymock/main.py +141 -0
  88. floatcsep-0.4.1/tutorials/case_i/pymock/setup.py +4 -0
  89. floatcsep-0.4.1/tutorials/case_i/pymock_slow/Dockerfile +41 -0
  90. floatcsep-0.4.1/tutorials/case_i/pymock_slow/README.md +105 -0
  91. floatcsep-0.4.1/tutorials/case_i/pymock_slow/input/args.txt +7 -0
  92. floatcsep-0.4.1/tutorials/case_i/pymock_slow/pymock/__init__.py +0 -0
  93. floatcsep-0.4.1/tutorials/case_i/pymock_slow/pymock/libs.py +90 -0
  94. floatcsep-0.4.1/tutorials/case_i/pymock_slow/pymock/main.py +143 -0
  95. floatcsep-0.4.1/tutorials/case_i/pymock_slow/pyproject.toml +8 -0
  96. floatcsep-0.4.1/tutorials/case_i/pymock_slow/requirements.txt +3 -0
  97. floatcsep-0.4.1/tutorials/case_i/pymock_slow/setup.cfg +27 -0
  98. floatcsep-0.4.1/tutorials/case_i/pymock_slow/setup.py +4 -0
  99. floatcsep-0.4.1/tutorials/case_i/tests.yml +13 -0
  100. {floatcsep-0.3.0/tutorials/case_i → floatcsep-0.4.1/tutorials/case_j}/config.yml +2 -5
  101. {floatcsep-0.3.0/tutorials/case_i → floatcsep-0.4.1/tutorials/case_j}/models.yml +8 -2
  102. floatcsep-0.4.1/tutorials/case_j/tests.yml +6 -0
  103. floatcsep-0.3.0/.github/workflows/build-test.yml +0 -46
  104. floatcsep-0.3.0/docs/intro/installation.rst +0 -104
  105. floatcsep-0.3.0/floatcsep/infrastructure/engine.py +0 -195
  106. floatcsep-0.3.0/pyproject.toml +0 -24
  107. floatcsep-0.3.0/setup.cfg +0 -96
  108. floatcsep-0.3.0/tests/integration/test_model_accessors.py +0 -215
  109. floatcsep-0.3.0/tests/unit/test_accessors.py +0 -44
  110. floatcsep-0.3.0/tests/unit/test_engine.py +0 -84
  111. floatcsep-0.3.0/tests/unit/test_registry.py +0 -179
  112. floatcsep-0.3.0/tutorials/case_a/catalog.csep +0 -2
  113. floatcsep-0.3.0/tutorials/case_e/catalog.json +0 -197
  114. floatcsep-0.3.0/tutorials/case_g/pymock/Dockerfile +0 -33
  115. floatcsep-0.3.0/tutorials/case_g/pymock/pymock/libs.py +0 -84
  116. floatcsep-0.3.0/tutorials/case_i/tests.yml +0 -6
  117. {floatcsep-0.3.0 → floatcsep-0.4.1}/.github/workflows/build-sphinx.yml +0 -0
  118. {floatcsep-0.3.0 → floatcsep-0.4.1}/.github/workflows/publish-pypi.yml +0 -0
  119. {floatcsep-0.3.0 → floatcsep-0.4.1}/.github/workflows/release-tutorials.yml +0 -0
  120. {floatcsep-0.3.0 → floatcsep-0.4.1}/.readthedocs.yaml +0 -0
  121. {floatcsep-0.3.0 → floatcsep-0.4.1}/CODE_OF_CONDUCT.md +0 -0
  122. {floatcsep-0.3.0 → floatcsep-0.4.1}/CONTRIBUTING.md +0 -0
  123. {floatcsep-0.3.0 → floatcsep-0.4.1}/CREDITS.md +0 -0
  124. {floatcsep-0.3.0 → floatcsep-0.4.1}/LICENSE +0 -0
  125. {floatcsep-0.3.0 → floatcsep-0.4.1}/README.md +0 -0
  126. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/Makefile +0 -0
  127. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/_static/CSEP2_Logo_CMYK.png +0 -0
  128. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/_static/custom.js +0 -0
  129. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/_static/experiment_classes.png +0 -0
  130. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/_static/floatCSEP_Logo_CMYK.png +0 -0
  131. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/_static/float_scheme.png +0 -0
  132. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/_static/floatcsep_logo.svg +0 -0
  133. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/guide/evaluation_config.rst +0 -0
  134. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/guide/executing_experiment.rst +0 -0
  135. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/intro/concepts.rst +0 -0
  136. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/reference/commands.rst +0 -0
  137. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/reference/evaluation.rst +0 -0
  138. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/reference/experiment.rst +0 -0
  139. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/reference/model.rst +0 -0
  140. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/reference/postprocess.rst +0 -0
  141. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/tutorials/case_b.rst +0 -0
  142. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/tutorials/case_c.rst +0 -0
  143. {floatcsep-0.3.0 → floatcsep-0.4.1}/docs/tutorials/case_d.rst +0 -0
  144. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep/commands/__init__.py +0 -0
  145. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep/evaluation.py +0 -0
  146. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep/infrastructure/__init__.py +0 -0
  147. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep/postprocess/__init__.py +0 -0
  148. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep/utils/__init__.py +0 -0
  149. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep.egg-info/dependency_links.txt +0 -0
  150. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep.egg-info/entry_points.txt +0 -0
  151. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep.egg-info/not-zip-safe +0 -0
  152. {floatcsep-0.3.0 → floatcsep-0.4.1}/floatcsep.egg-info/top_level.txt +0 -0
  153. {floatcsep-0.3.0 → floatcsep-0.4.1}/setup.py +0 -0
  154. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/catalog.json +0 -0
  155. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/evaluations/tests_cfg.yml +0 -0
  156. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/gcmt/vcr_search.yaml +0 -0
  157. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/gcmt/vcr_summary.yaml +0 -0
  158. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/docker_test/invalid_entrypoint/Dockerfile +0 -0
  159. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/docker_test/invalid_image/Dockerfile +0 -0
  160. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/docker_test/invalid_no_entrypoint/Dockerfile +0 -0
  161. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/docker_test/invalid_permission/Dockerfile +0 -0
  162. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/docker_test/valid/Dockerfile +0 -0
  163. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/docker_test/valid_custom_uid-gid/Dockerfile +0 -0
  164. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/model.csv +0 -0
  165. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/model_h5.hdf5 +0 -0
  166. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/qtree/TEAM=N10L11.csv +0 -0
  167. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/qtree/TEAM=N25L11.csv +0 -0
  168. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/td_model/forecasts/mock_2020-01-01_2020-01-02.csv +0 -0
  169. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/td_model/forecasts/mock_2020-01-02_2020-01-03.csv +0 -0
  170. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/td_model/input/args.txt +0 -0
  171. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/td_model/setup.cfg +0 -0
  172. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/template/Dockerfile +0 -0
  173. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/template/README.md +0 -0
  174. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/template/docs/userguide +0 -0
  175. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/template/examples/case_3/case3_run +0 -0
  176. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/template/examples/case_3/data/case3_catalog +0 -0
  177. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/template/forecasts/template_2023-01-01 +0 -0
  178. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/template/input/catalog +0 -0
  179. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/template/parameters +0 -0
  180. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/template/requirements +0 -0
  181. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/template/run +0 -0
  182. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/template/run_tests +0 -0
  183. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/template/setup +0 -0
  184. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/template/source/lib_a +0 -0
  185. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/template/source/lib_b +0 -0
  186. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/template/source/main +0 -0
  187. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/template/tests/test_liba +0 -0
  188. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/template/tests/test_libb +0 -0
  189. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/models/template/tests/test_main +0 -0
  190. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/regions/italy_midpoints +0 -0
  191. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/artifacts/regions/mock_region +0 -0
  192. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/integration/experiment typologies +0 -0
  193. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/unit/test_evaluation.py +0 -0
  194. {floatcsep-0.3.0 → floatcsep-0.4.1}/tests/unit/test_io.py +0 -0
  195. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_a/case_a.py +0 -0
  196. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_a/region.txt +0 -0
  197. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_b/case_b.py +0 -0
  198. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_b/catalog.json +0 -0
  199. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_b/config.yml +0 -0
  200. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_b/models/model_a.csv +0 -0
  201. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_b/models/model_b.csv +0 -0
  202. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_b/models/model_c.csv +0 -0
  203. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_b/models/model_d.csv +0 -0
  204. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_b/models.yml +0 -0
  205. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_b/region.txt +0 -0
  206. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_b/tests.yml +0 -0
  207. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_c/case_c.py +0 -0
  208. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_c/catalog.json +0 -0
  209. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_c/config.yml +0 -0
  210. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_c/models/model_a.csv +0 -0
  211. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_c/models/model_b.csv +0 -0
  212. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_c/models/model_c.csv +0 -0
  213. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_c/models/model_d.csv +0 -0
  214. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_c/models.yml +0 -0
  215. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_c/region.txt +0 -0
  216. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_c/tests.yml +0 -0
  217. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_d/models.yml +0 -0
  218. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_d/tests.yml +0 -0
  219. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_e/case_e.py +0 -0
  220. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_e/models/gulia-wiemer.ALM.italy.10yr.2010-01-01.xml +0 -0
  221. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_e/models/meletti.MPS04.italy.10yr.2010-01-01.xml +0 -0
  222. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_e/models/zechar.TripleS-CPTI.italy.10yr.2010-01-01.xml +0 -0
  223. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_e/models.yml +0 -0
  224. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_e/tests.yml +0 -0
  225. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_f/catalog.json +0 -0
  226. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_f/etas/forecasts/etas_2016-11-14_2016-11-15.csv +0 -0
  227. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_f/etas/forecasts/etas_2016-11-15_2016-11-16.csv +0 -0
  228. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_f/etas/forecasts/etas_2016-11-16_2016-11-17.csv +0 -0
  229. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_f/etas/forecasts/etas_2016-11-17_2016-11-18.csv +0 -0
  230. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_f/etas/forecasts/etas_2016-11-18_2016-11-19.csv +0 -0
  231. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_f/etas/forecasts/etas_2016-11-19_2016-11-20.csv +0 -0
  232. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_f/etas/forecasts/etas_2016-11-20_2016-11-21.csv +0 -0
  233. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_f/models.yml +0 -0
  234. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_f/tests.yml +0 -0
  235. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_g/catalog.csv +0 -0
  236. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_g/config.yml +0 -0
  237. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_g/pymock/README.md +0 -0
  238. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_g/pymock/pymock/__init__.py +0 -0
  239. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_g/pymock/run.py +0 -0
  240. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_g/pymock/setup.py +0 -0
  241. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_g/tests.yml +0 -0
  242. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_h/catalog.csv +0 -0
  243. {floatcsep-0.3.0 → floatcsep-0.4.1}/tutorials/case_h/tests.yml +0 -0
  244. {floatcsep-0.3.0/tutorials/case_g → floatcsep-0.4.1/tutorials/case_i}/pymock/pyproject.toml +0 -0
  245. {floatcsep-0.3.0/tutorials/case_g → floatcsep-0.4.1/tutorials/case_i}/pymock/requirements.txt +0 -0
  246. {floatcsep-0.3.0/tutorials/case_g → floatcsep-0.4.1/tutorials/case_i}/pymock/setup.cfg +0 -0
  247. {floatcsep-0.3.0/tutorials/case_i → floatcsep-0.4.1/tutorials/case_j}/catalog.csep +0 -0
@@ -0,0 +1,46 @@
1
+ name: tests
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches: [ main ]
9
+
10
+ jobs:
11
+ build:
12
+ if: github.repository == 'cseptesting/floatcsep'
13
+ runs-on: ${{ matrix.os }}
14
+ strategy:
15
+ fail-fast: false
16
+ matrix:
17
+ os: [ ubuntu-latest, macos-latest ]
18
+ python-version: [ '3.9', '3.10', '3.11', '3.12' ]
19
+ defaults:
20
+ run:
21
+ shell: bash -l {0}
22
+
23
+ steps:
24
+ - uses: actions/checkout@v4.2.2
25
+ - uses: mamba-org/setup-micromamba@v1
26
+ with:
27
+ generate-run-shell: true
28
+ environment-file: environment.yml
29
+ create-args: >-
30
+ python=${{ matrix.python-version }}
31
+
32
+ - name: Install floatCSEP
33
+ run: |
34
+ pip install -e .[dev]
35
+ python -c "import floatcsep; print('Version: ', floatcsep.__version__)"
36
+
37
+ - name: Test with pytest
38
+ run: |
39
+ pytest --durations=0
40
+
41
+ - name: Upload coverage
42
+ if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
43
+ uses: codecov/codecov-action@v3
44
+ with:
45
+ token: ${{ secrets.CODECOV_TOKEN }}
46
+ fail_ci_if_error: false
@@ -4,7 +4,6 @@ include requirements.txt
4
4
  include requirements_dev.txt
5
5
  include environment.yml
6
6
  include setup.py
7
- include setup.cfg
8
7
  include pyproject.toml
9
8
  include LICENSE
10
9
  include CREDITS.md
@@ -1,20 +1,16 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: floatcsep
3
- Version: 0.3.0
3
+ Version: 0.4.1
4
4
  Summary: CSEP Floating Experiment application
5
- Home-page: https://github.com/cseptesting/floatcsep.git
6
- Author: Pablo Iturrieta
7
- Author-email: pciturri@gfz-potsdam.de
8
- License: BSD 3-Clause License
9
- Platform: unix
10
- Platform: linux
11
- Platform: osx
12
- Platform: win32
5
+ Author-email: Pablo Iturrieta <pciturri@gfz-potsdam.de>
6
+ License-Expression: BSD-3-Clause
7
+ Project-URL: Homepage, https://github.com/cseptesting/floatcsep.git
13
8
  Classifier: Programming Language :: Python :: 3
14
9
  Classifier: Programming Language :: Python :: 3.9
15
10
  Classifier: Programming Language :: Python :: 3.10
16
11
  Classifier: Programming Language :: Python :: 3.11
17
- Requires-Python: <3.12,>=3.9
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Requires-Python: <3.13,>=3.9
18
14
  Description-Content-Type: text/markdown
19
15
  License-File: LICENSE
20
16
  Requires-Dist: numpy
@@ -22,10 +18,11 @@ Requires-Dist: dateparser
22
18
  Requires-Dist: docker
23
19
  Requires-Dist: gitpython
24
20
  Requires-Dist: h5py
21
+ Requires-Dist: markdown-pdf
25
22
  Requires-Dist: matplotlib
26
23
  Requires-Dist: pandas
24
+ Requires-Dist: packaging
27
25
  Requires-Dist: pycsep
28
- Requires-Dist: pyshp
29
26
  Requires-Dist: pyyaml
30
27
  Requires-Dist: requests
31
28
  Requires-Dist: scipy
@@ -33,31 +30,10 @@ Requires-Dist: seaborn
33
30
  Requires-Dist: tables
34
31
  Requires-Dist: xmltodict
35
32
  Provides-Extra: dev
36
- Requires-Dist: numpy; extra == "dev"
37
- Requires-Dist: cartopy; extra == "dev"
38
33
  Requires-Dist: black; extra == "dev"
39
- Requires-Dist: dateparser; extra == "dev"
40
- Requires-Dist: docker; extra == "dev"
41
34
  Requires-Dist: flake8; extra == "dev"
42
- Requires-Dist: geos; extra == "dev"
43
- Requires-Dist: gitpython; extra == "dev"
44
- Requires-Dist: h5py; extra == "dev"
45
- Requires-Dist: matplotlib; extra == "dev"
46
- Requires-Dist: mercantile; extra == "dev"
47
- Requires-Dist: obspy; extra == "dev"
48
- Requires-Dist: packaging; extra == "dev"
49
- Requires-Dist: pandas; extra == "dev"
50
- Requires-Dist: pycsep; extra == "dev"
51
- Requires-Dist: pyproj; extra == "dev"
52
- Requires-Dist: pyshp; extra == "dev"
53
35
  Requires-Dist: pytest; extra == "dev"
54
36
  Requires-Dist: pytest-cov; extra == "dev"
55
- Requires-Dist: pyyaml; extra == "dev"
56
- Requires-Dist: requests; extra == "dev"
57
- Requires-Dist: scipy; extra == "dev"
58
- Requires-Dist: seaborn; extra == "dev"
59
- Requires-Dist: setuptools-scm; extra == "dev"
60
- Requires-Dist: shapely; extra == "dev"
61
37
  Requires-Dist: sphinx; extra == "dev"
62
38
  Requires-Dist: sphinx-autoapi; extra == "dev"
63
39
  Requires-Dist: sphinx_design; extra == "dev"
@@ -65,10 +41,7 @@ Requires-Dist: sphinx-toolbox; extra == "dev"
65
41
  Requires-Dist: sphinx-gallery; extra == "dev"
66
42
  Requires-Dist: sphinx-rtd-theme; extra == "dev"
67
43
  Requires-Dist: sphinx_copybutton; extra == "dev"
68
- Requires-Dist: tables; extra == "dev"
69
- Requires-Dist: tox; extra == "dev"
70
44
  Requires-Dist: vcrpy; extra == "dev"
71
- Requires-Dist: xmltodict; extra == "dev"
72
45
  Dynamic: license-file
73
46
 
74
47
  # CSEP Floating Experiments
@@ -70,7 +70,6 @@ copybutton_only_copy_prompt_lines = False
70
70
  html_theme = "sphinx_rtd_theme"
71
71
  html_static_path = ["_static"]
72
72
  html_theme_options = {
73
- "display_version": True,
74
73
  "prev_next_buttons_location": "both",
75
74
  "sticky_navigation": True,
76
75
  "collapse_navigation": True,
@@ -49,6 +49,8 @@ Configuration files are written in ``YAML`` format and are divided into differen
49
49
  - Poisson S-test:
50
50
  func: poisson_evaluations.spatial_test
51
51
  plot_func: plot_poisson_consistency_test
52
+ run_mode: parallel
53
+ force_rerun: true
52
54
  postprocess:
53
55
  plot_forecasts:
54
56
  cmap: magma
@@ -278,3 +280,12 @@ The seismicity catalog can be defined with the ``catalog`` parameter. It represe
278
280
 
279
281
  .. important::
280
282
  The main catalog will be stored, and consecutively filtered to the extent of each testing time-window, as well as to the experiment's spatial domain, and magnitude- and depth- ranges.
283
+
284
+
285
+ Run Configuration
286
+ -----------------
287
+
288
+ The ``run_mode`` parameter allows to perform the experiment tasks in either ``sequential`` (default) or ``parallel``.
289
+ The former is appropriate for staging and testing the experiment is working, whereas ``parallel`` is optimal for heavy computations when the experiment is set to production (e.g., real conditions)
290
+
291
+ The ``force_rerun`` makes the experiment recompute every forecast. Default is ``false``, which allows when instantiating the experiment to make a self-discovery of existing forecasts.
@@ -159,9 +159,6 @@ Here you can find a comprehensive list of parameters used to configure models
159
159
  * - **forecast_unit** (required)
160
160
  - All
161
161
  - Specifies the time unit for the forecast. Use **years** for time-independent models and **days** for time-dependent models.
162
- * - **store_db** (optional)
163
- - All
164
- - If the model consists on only files, this is a boolean (true/false) specifying whether to store the forecast in a database (HDF5).
165
162
  * - **flavours** (optional)
166
163
  - All
167
164
  - A set of parameter variations to generate multiple model variants (e.g., different settings for the same model).
@@ -422,9 +422,9 @@ Here are some basic functionalities from **floatCSEP** to access catalogs, forec
422
422
  timewindow_str = timewindow2str(timewindow)
423
423
  model.get_forecast(timewindow_str)
424
424
 
425
- * - :attr:`Model.registry.path <floatcsep.infrastructure.registries.ForecastRegistry>`
425
+ * - :attr:`Model.registry.path <floatcsep.infrastructure.registries.ModelFileRegistry>`
426
426
  - Directory of the model file or source code.
427
- * - :attr:`Model.registry.database <floatcsep.infrastructure.registries.ForecastRegistry>`
427
+ * - :attr:`Model.registry.database <floatcsep.infrastructure.registries.ModelFileRegistry>`
428
428
  - Database path where forecasts are stored.
429
429
  * - :attr:`TimeIndependentModel.forecast_unit <floatcsep.model.TimeIndependentModel>`
430
430
  - The forecast unit for a time independent model.
@@ -432,9 +432,9 @@ Here are some basic functionalities from **floatCSEP** to access catalogs, forec
432
432
  - The function command to execute a time dependent source code.
433
433
  * - :meth:`TimeDependentModel.func_kwargs`
434
434
  - The keyword arguments of the model, passed to the arguments file.
435
- * - :meth:`TimeDependentModel.registry.args_file <floatcsep.infrastructure.registries.ForecastRegistry>`
435
+ * - :meth:`TimeDependentModel.registry.args_file <floatcsep.infrastructure.registries.ModelFileRegistry>`
436
436
  - The path of the arguments file. Default is ``args.txt``.
437
- * - :meth:`TimeDependentModel.registry.input_cat <floatcsep.infrastructure.registries.ForecastRegistry>`
437
+ * - :meth:`TimeDependentModel.registry.input_cat <floatcsep.infrastructure.registries.ModelFileRegistry>`
438
438
  - The path of the input catalog for the model execution.
439
439
 
440
440
 
@@ -64,6 +64,8 @@ Quickstart
64
64
  | | - :ref:`case_f` |
65
65
  | |api| **API Reference** | - :ref:`case_g` |
66
66
  | | - :ref:`case_h` |
67
+ | | - :ref:`case_i` |
68
+ | | - :ref:`case_j` |
67
69
  +--------------------------------------------------+-------------------------------------+
68
70
 
69
71
  What is floatCSEP
@@ -158,6 +160,8 @@ Collaborators
158
160
  tutorials/case_f.rst
159
161
  tutorials/case_g.rst
160
162
  tutorials/case_h.rst
163
+ tutorials/case_i.rst
164
+ tutorials/case_j.rst
161
165
 
162
166
 
163
167
  .. toctree::
@@ -0,0 +1,142 @@
1
+ Installation
2
+ ============
3
+
4
+ .. important::
5
+
6
+ This application uses ``3.9 <= python <= 3.12``
7
+
8
+
9
+ Latest Version
10
+ --------------
11
+
12
+ This option is recommended to learn the software, run the tutorials, and drafting **Testing Experiments**.
13
+
14
+ 1. Using ``conda``
15
+ ~~~~~~~~~~~~~~~~~~
16
+
17
+ First, clone the **floatCSEP** source code into a new directory by typing into a terminal:
18
+
19
+ .. code-block:: console
20
+
21
+ $ git clone https://github.com/cseptesting/floatcsep
22
+ $ cd floatcsep
23
+
24
+ Then, let ``conda`` automatically install all required dependencies of **floatCSEP** (from its ``environment.yml`` file) into a new environment, and activate it:
25
+
26
+ .. code-block:: console
27
+
28
+ $ conda env create -f environment.yml
29
+ $ conda activate floatcsep
30
+
31
+ .. note::
32
+
33
+ For this to work, you need to have ``conda`` installed (see `conda.io <https://conda.io>`_), either by installing the `Anaconda Distribution <https://docs.anaconda.com/anaconda/install/>`_,
34
+ or its more minimal variants `Miniconda <https://docs.anaconda.com/miniconda/>`_ or `Miniforge <https://conda-forge.org/download>`_ (recommended).
35
+ If you install `Miniforge`, we further recommend to use the ``mamba`` command instead of ``conda`` (a faster drop-in replacement).
36
+
37
+
38
+ Lastly, install **floatCSEP** into the new environment using ``pip``:
39
+
40
+ .. code-block:: console
41
+
42
+ $ pip install .
43
+
44
+ .. note::
45
+
46
+ To *update* **floatCSEP** and its dependencies at a later date, simply execute:
47
+
48
+ .. code-block:: console
49
+
50
+ $ git pull
51
+ $ conda env update --file environment.yml
52
+ $ pip install . -U
53
+
54
+
55
+ 2. Using only ``pip``
56
+ ~~~~~~~~~~~~~~~~~~~~~
57
+
58
+ To install using the ``pip`` manager only, we require to install the binary dependencies of **pyCSEP** (see `Installing pyCSEP <https://docs.cseptesting.org/getting_started/installing.html>`_). The **floatCSEP** latest version can then be installed as:
59
+
60
+ .. code-block:: console
61
+
62
+ $ git clone https://github.com/cseptesting/floatcsep
63
+ $ cd floatcsep
64
+ $ python -m venv venv
65
+ $ pip install .
66
+
67
+
68
+ Latest Stable Release
69
+ ---------------------
70
+
71
+ This option is recommended for deploying *Floating Testing Experiments* live.
72
+
73
+ 1. From the ``conda-forge`` channel
74
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
75
+
76
+ Having a ``conda`` manager installed (see **Note** box above), type in a console:
77
+
78
+ .. code-block:: console
79
+
80
+ $ conda create -n experiment python={PYTHON_VERSION}
81
+ $ conda activate experiment
82
+ $ conda install -c conda-forge floatcsep
83
+
84
+ where ``3.9 < {PYTHON_VERSION} <= 3.12`` is at your convenience.
85
+
86
+ 2. From the ``PyPI`` repository
87
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
88
+
89
+ Having installed the binary dependencies of **pyCSEP** (see `Installing pyCSEP <https://docs.cseptesting.org/getting_started/installing.html>`_}, install **floatCSEP** by:
90
+
91
+ .. code-block:: console
92
+
93
+ $ python -m venv venv
94
+ $ pip install floatcsep
95
+
96
+ .. important::
97
+ If you want to run the tutorials from a **floatCSEP** installation obtained through ``conda-forge`` or ``PyPI``, the tutorials can be downloaded to your current directory as:
98
+
99
+ .. code-block:: console
100
+
101
+ $ latest_version=$(curl --silent "https://api.github.com/repos/cseptesting/floatcsep/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') && \
102
+ wget "https://github.com/cseptesting/floatcsep/releases/download/$latest_version/tutorials.zip"
103
+ $ unzip tutorials.zip -d ./ && rm tutorials.zip
104
+
105
+ Or downloaded manually from the `latest release <https://github.com/cseptesting/floatcsep/releases>`_.
106
+
107
+
108
+ .. _docker-install:
109
+
110
+ Docker (Model Containerization & Parallel Run)
111
+ ----------------------------------------------
112
+
113
+ Some tutorials and experiments **containerize models with Docker**, and the engine can use Docker
114
+ for **parallel** execution. To use these features, please install Docker and (on Linux) perform the
115
+ post-installation steps:
116
+
117
+ - Docker install guide: https://docs.docker.com/engine/install/
118
+ - Linux post-installation (non-root usage and add your user to the `docker` group):
119
+ https://docs.docker.com/engine/install/linux-postinstall/
120
+
121
+ .. tip::
122
+ After installing, verify Docker works:
123
+
124
+ .. code-block:: console
125
+
126
+ $ docker run --rm hello-world
127
+
128
+
129
+ For Developers
130
+ --------------
131
+
132
+ It is recommended (not obligatory) to use a ``conda`` environment to make sure your contributions do not depend on your system local libraries. For contributing to the **floatCSEP** codebase, please consider `forking the repository <https://docs.github.com/articles/fork-a-repo>`_ and `create pull-requests <https://docs.github.com/articles/creating-a-pull-request>`_ from there.
133
+
134
+ .. code-block:: console
135
+
136
+ $ conda create -n floatcsep_dev
137
+ $ conda activate floatcsep_dev
138
+ $ git clone https://github.com/${your_fork}/floatcsep
139
+ $ cd floatcsep
140
+ $ pip install -e .[dev]
141
+
142
+ This will install and configure all the unit-testing, linting, and documentation packages.
@@ -52,8 +52,6 @@ instances onto an experimental workflow. The class and its main methods are:
52
52
  Experiment.set_models
53
53
  Experiment.set_tests
54
54
  Experiment.stage_models
55
- Experiment.set_input_cat
56
- Experiment.set_test_cat
57
55
  Experiment.set_tasks
58
56
  Experiment.run
59
57
  Experiment.read_results
@@ -74,7 +72,6 @@ reading. The abstract and concrete classes, and their main methods are:
74
72
  Model.factory
75
73
 
76
74
  TimeIndependentModel
77
- TimeIndependentModel.init_db
78
75
  TimeIndependentModel.get_forecast
79
76
 
80
77
  TimeDependentModel.stage
@@ -128,8 +125,8 @@ These are the helper functions of ``floatCSEP``
128
125
  parse_timedelta_string
129
126
  read_time_cfg
130
127
  read_region_cfg
131
- timewindows_ti
132
- timewindows_td
128
+ time_windows_ti
129
+ time_windows_td
133
130
 
134
131
 
135
132
  Some additional plotting functions to pyCSEP are:
@@ -148,16 +145,26 @@ Some additional plotting functions to pyCSEP are:
148
145
 
149
146
  A small wrapper for ``pyCSEP`` readers
150
147
 
151
- .. currentmodule:: floatcsep.utils.readers
148
+ .. currentmodule:: floatcsep.utils.file_io
152
149
 
153
150
  .. autosummary::
154
151
  :nosignatures:
155
152
 
156
- ForecastParsers.dat
157
- ForecastParsers.xml
158
- ForecastParsers.quadtree
159
- ForecastParsers.csv
160
- ForecastParsers.hdf5
153
+ CatalogParser.ascii
154
+ CatalogParser.json
155
+
156
+ CatalogSerializer.ascii
157
+ CatalogSerializer.json
158
+
159
+ GriddedForecastParsers.dat
160
+ GriddedForecastParsers.xml
161
+ GriddedForecastParsers.quadtree
162
+ GriddedForecastParsers.csv
163
+ GriddedForecastParsers.hdf5
164
+
165
+ CatalogForecastParsers.csv
166
+ CatalogForecastParsers.load_hermes_catalog
167
+
161
168
  HDF5Serializer.grid2hdf5
162
169
  serialize
163
170
 
@@ -194,20 +201,25 @@ components (e.g., forecasts, catalogs, results, etc.), and allows to be aware of
194
201
  .. autosummary::
195
202
  :nosignatures:
196
203
 
197
- ForecastRegistry
198
- ForecastRegistry.get_forecast
199
- ForecastRegistry.fmt
200
- ForecastRegistry.forecast_exists
201
- ForecastRegistry.build_tree
202
-
203
- ExperimentRegistry
204
- ExperimentRegistry.add_forecast_registry
205
- ExperimentRegistry.get_forecast_registry
206
- ExperimentRegistry.get_result
207
- ExperimentRegistry.get_test_catalog
208
- ExperimentRegistry.get_figure
209
- ExperimentRegistry.result_exist
210
- ExperimentRegistry.build_tree
204
+ ModelFileRegistry
205
+ ModelFileRegistry.fmt
206
+ ModelFileRegistry.get_input_catalog_key
207
+ ModelFileRegistry.get_forecast_key
208
+ ModelFileRegistry.get_args_key
209
+ ModelFileRegistry.get_input_dir
210
+ ModelFileRegistry.get_forecast_dir
211
+ ModelFileRegistry.get_args_template_path
212
+ ModelFileRegistry.forecast_exists
213
+ ModelFileRegistry.build_tree
214
+
215
+ ExperimentFileRegistry
216
+ ExperimentFileRegistry.add_model_registry
217
+ ExperimentFileRegistry.get_model_registry
218
+ ExperimentFileRegistry.get_result_key
219
+ ExperimentFileRegistry.get_test_catalog_key
220
+ ExperimentFileRegistry.get_figure_key
221
+ ExperimentFileRegistry.result_exist
222
+ ExperimentFileRegistry.build_tree
211
223
 
212
224
 
213
225
  **Repositories**
@@ -225,8 +237,9 @@ catalogs, forecasts), abstracting the experiment logic from the pyCSEP io functi
225
237
  CatalogRepository.set_main_catalog
226
238
  CatalogRepository.catalog
227
239
  CatalogRepository.get_test_cat
228
- CatalogRepository.set_test_cat
229
- CatalogRepository.set_input_cat
240
+ CatalogRepository.set_test_cats
241
+ CatalogRepository.set_input_cats
242
+ CatalogRepository.filter_catalog
230
243
 
231
244
  GriddedForecastRepository
232
245
  GriddedForecastRepository.load_forecast
@@ -7,12 +7,12 @@ and the required workflow to run an Experiment.
7
7
  Registries
8
8
  ----------
9
9
 
10
- .. autoclass:: floatcsep.infrastructure.registries.ForecastRegistry
10
+ .. autoclass:: floatcsep.infrastructure.registries.ModelFileRegistry
11
11
  :members:
12
12
  :undoc-members:
13
13
  :show-inheritance:
14
14
 
15
- .. autoclass:: floatcsep.infrastructure.registries.ExperimentRegistry
15
+ .. autoclass:: floatcsep.infrastructure.registries.ExperimentFileRegistry
16
16
  :members:
17
17
  :undoc-members:
18
18
  :show-inheritance:
@@ -27,11 +27,11 @@ This section documents the `accessors` module.
27
27
  :inherited-members:
28
28
 
29
29
 
30
- Readers
31
- -------
32
- This section documents the `readers` module.
30
+ Readers and Parsers
31
+ -------------------
32
+ This section documents the `file_io` module.
33
33
 
34
- .. automodule:: floatcsep.utils.readers
34
+ .. automodule:: floatcsep.utils.file_io
35
35
  :members:
36
36
  :undoc-members:
37
37
  :show-inheritance:
@@ -46,7 +46,7 @@ The source code can be found in the ``tutorials/case_a`` folder or in `GitHub <
46
46
  .. literalinclude:: ../../tutorials/case_a/catalog.csep
47
47
  :caption: tutorials/case_a/catalog.csep
48
48
 
49
- * The forecast ``best_model.dat`` to be evaluated is written in the ``.dat`` format (see :doc:`pycsep:concepts/forecasts`). Forecast formats are detected automatically (see :mod:`floatcsep.utils.readers.ForecastParsers`)
49
+ * The forecast ``best_model.dat`` to be evaluated is written in the ``.dat`` format (see :doc:`pycsep:concepts/forecasts`). Forecast formats are detected automatically (see :mod:`floatcsep.utils.file_io.GriddedForecastParsers`)
50
50
 
51
51
  .. literalinclude:: ../../tutorials/case_a/best_model.dat
52
52
  :caption: tutorials/case_a/best_model.dat
@@ -3,7 +3,7 @@
3
3
  E - A Time-Independent Experiment
4
4
  =================================
5
5
 
6
- This example shows how to run a realistic testing experiment (based on https://doi.org/10.4401/ag-4844) while summarizing the concepts from the previous tutorials.
6
+ This example shows how to run a realistic testing experiment (based on :ref:`Schorlemmer et al. 2010<case_e_references>`) while summarizing the concepts from the previous tutorials.
7
7
 
8
8
  .. currentmodule:: floatcsep
9
9
 
@@ -25,7 +25,7 @@ This example shows how to run a realistic testing experiment (based on https://d
25
25
  Experiment Components
26
26
  ---------------------
27
27
 
28
- The source code can be found in the ``tutorials/case_e`` folder or in `GitHub <https://github.com/cseptesting/floatcsep/blob/main/tutorials/case_e>`_. The input structure of the experiment is:
28
+ The source code can be found in the ``tutorials/case_e`` folder or in `the GitHub repository <https://github.com/cseptesting/floatcsep/blob/main/tutorials/case_e>`_. The input structure of the experiment is:
29
29
 
30
30
  ::
31
31
 
@@ -137,3 +137,11 @@ Plot command
137
137
  colormap: magma
138
138
 
139
139
  and re-run with the ``plot`` command. A forecast figure will re-appear in ``results/{window}/forecasts`` with a different colormap. Additional forecast and catalog plotting options can be found in the :func:`csep.utils.plots.plot_spatial_dataset` and :func:`csep.utils.plots.plot_catalog` ``pycsep`` functions.
140
+
141
+
142
+ .. _case_e_references:
143
+
144
+ References
145
+ ----------
146
+
147
+ * Schorlemmer, D., Christophersen, A., Rovida, A., Mele, F., Stucchi, M. and Marzocchi, W. (2010). Setting up an earthquake forecast experiment in Italy. Annals of Geophysics, 53(3), 1–9. doi: `10.4401/ag-4844 <https://doi.org/10.4401/ag-4844>`_
@@ -25,7 +25,7 @@ Experiment Components
25
25
  ---------------------
26
26
 
27
27
 
28
- The source files can be found in the ``tutorials/case_e`` folder or in `GitHub <https://github.com/cseptesting/floatcsep/blob/main/tutorials/case_e>`_. The experiment structure is as follows:
28
+ The source files can be found in the ``tutorials/case_e`` folder or in `the GitHub repository <https://github.com/cseptesting/floatcsep/blob/main/tutorials/case_e>`_. The experiment structure is as follows:
29
29
 
30
30
  ::
31
31
 
@@ -49,7 +49,7 @@ The source files can be found in the ``tutorials/case_e`` folder or in `GitHub
49
49
  Model
50
50
  -----
51
51
 
52
- The time-dependency of a model is manifested here by the provision of different forecasts, i.e., statistical descriptions of seismicity, for different time-windows. In this example, the forecasts were created from an external model https://github.com/lmizrahi/etas (`doi:10.1785/0220200231 <https://doi.org/10.1785/0220200231>`_), with which the experiment has no interface. This means that we use **only the forecast files** and no source code. We leave the handling of a model source code for subsequent tutorials.
52
+ The time-dependency of a model is manifested here by the provision of different forecasts, i.e., statistical descriptions of seismicity, for different time-windows. In this example, the forecasts were created from an external `ETAS model <https://github.com/lmizrahi/etas>`_ (:ref:`Mizrahi et al. 2021 <case_f_references>`), with which the experiment has no interface. This means that we use **only the forecast files** and no source code. We leave the handling of a model source code for subsequent tutorials.
53
53
 
54
54
 
55
55
 
@@ -73,7 +73,7 @@ Time
73
73
  Catalog
74
74
  ~~~~~~~
75
75
 
76
- The catalog ``catalog.json`` was obtained *previously* by using ``query_geonet`` and it was filtered to the testing period. However, it can be re-queried by changing its definition to:
76
+ The catalog ``catalog.json`` was obtained *prior* to the experiment by using ``query_geonet`` and it was filtered to the testing period. However, it can be re-queried by changing its definition to:
77
77
 
78
78
  .. code-block:: yaml
79
79
 
@@ -93,25 +93,25 @@ Models
93
93
  For consistency with time-dependent models that will create forecasts from a source code, the ``path`` should point to the folder of the model, which itself should contain a sub-folder named ``{path}/forecasts`` where the files are located.
94
94
 
95
95
  .. important::
96
- Note that for catalog-based forecasts, the model should explicit the number of simulations. This is meant for forecast files that contain synthetic catalogs with zero-event simulations, and therefore do not contain the total number of synthetic catalogs used.
96
+ Note that for catalog-based forecast models, the number of catalog simulations (``n_sims``) must be specified – because a forecast may contain synthetic catalogs with zero-event simulations and therefore does not imply the total number of simulated synthetic catalogs.
97
97
 
98
98
  Tests
99
99
  ~~~~~
100
100
 
101
- With time-dependent models, now catalog evaluations found in :obj:`csep.core.catalog_evaluations` can be used.
101
+ Having a time-dependent and catalog-based forecast model, catalog-based evaluations found in :obj:`csep.core.catalog_evaluations` can now be used.
102
102
 
103
103
 
104
104
  .. literalinclude:: ../../tutorials/case_f/tests.yml
105
105
  :language: yaml
106
106
 
107
107
  .. note::
108
- It is possible to assign two plotting functions to a test, whose ``plot_args`` and ``plot_kwargs`` can be placed indented beneath
108
+ It is possible to assign two plotting functions to a test, whose ``plot_args`` and ``plot_kwargs`` can be placed indented beneath.
109
109
 
110
110
 
111
111
  Running the experiment
112
112
  ----------------------
113
113
 
114
- The experiment can be run by simply navigating to the ``tutorials/case_h`` folder in the terminal and typing.
114
+ The experiment can be run by simply navigating to the ``tutorials/case_h`` folder in the terminal and typing:
115
115
 
116
116
  .. code-block:: console
117
117
 
@@ -119,3 +119,10 @@ Running the experiment
119
119
 
120
120
  This will automatically set all the calculation paths (testing catalogs, evaluation results, figures) and will create a summarized report in ``results/report.md``.
121
121
 
122
+
123
+ .. _case_f_references:
124
+
125
+ References
126
+ ----------
127
+
128
+ * Mizrahi, L., Nandan, S., & Wiemer, S. (2021). The effect of declustering on the size distribution of mainshocks. _Seismological Research Letters, 92_(4), 2333–2342. doi: `10.1785/0220200231 <https://doi.org/10.1785/0220200231>`_