floatcsep 0.4.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 (241) hide show
  1. floatcsep-0.4.1/.github/workflows/build-test.yml +46 -0
  2. {floatcsep-0.4.0 → floatcsep-0.4.1}/MANIFEST.in +0 -1
  3. {floatcsep-0.4.0/floatcsep.egg-info → floatcsep-0.4.1}/PKG-INFO +8 -35
  4. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/conf.py +0 -1
  5. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/guide/model_config.rst +0 -3
  6. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/index.rst +4 -0
  7. floatcsep-0.4.1/docs/intro/installation.rst +142 -0
  8. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/tutorials/case_e.rst +10 -2
  9. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/tutorials/case_f.rst +14 -7
  10. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/tutorials/case_g.rst +22 -20
  11. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/tutorials/case_h.rst +15 -10
  12. floatcsep-0.4.1/docs/tutorials/case_i.rst +213 -0
  13. floatcsep-0.4.1/docs/tutorials/case_j.rst +142 -0
  14. {floatcsep-0.4.0 → floatcsep-0.4.1}/environment.yml +1 -1
  15. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep/__init__.py +0 -2
  16. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep/experiment.py +0 -2
  17. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep/infrastructure/environments.py +217 -136
  18. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep/infrastructure/registries.py +1 -1
  19. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep/infrastructure/repositories.py +27 -27
  20. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep/model.py +1 -1
  21. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep/postprocess/plot_handler.py +72 -19
  22. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep/postprocess/reporting.py +163 -80
  23. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep/utils/helpers.py +178 -11
  24. {floatcsep-0.4.0 → floatcsep-0.4.1/floatcsep.egg-info}/PKG-INFO +8 -35
  25. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep.egg-info/SOURCES.txt +25 -27
  26. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep.egg-info/requires.txt +2 -25
  27. floatcsep-0.4.1/pyproject.toml +88 -0
  28. {floatcsep-0.4.0 → floatcsep-0.4.1}/requirements.txt +2 -1
  29. {floatcsep-0.4.0 → floatcsep-0.4.1}/requirements_dev.txt +1 -8
  30. floatcsep-0.4.1/setup.cfg +4 -0
  31. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/e2e/test_data.py +8 -5
  32. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/unit/test_environments.py +232 -92
  33. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/unit/test_model.py +4 -2
  34. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/unit/test_plot_handler.py +9 -5
  35. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/unit/test_reporting.py +8 -6
  36. {floatcsep-0.4.0 → floatcsep-0.4.1}/tox.ini +1 -2
  37. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_a/best_model.dat +2 -2
  38. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_a/config.yml +0 -1
  39. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_d/config.yml +3 -0
  40. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_e/config.yml +3 -1
  41. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_f/config.yml +4 -1
  42. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_g/models.yml +1 -0
  43. {floatcsep-0.4.0/tutorials/case_j/pymock_slow → floatcsep-0.4.1/tutorials/case_g/pymock}/pyproject.toml +1 -1
  44. floatcsep-0.4.1/tutorials/case_g/pymock/requirements.txt +3 -0
  45. {floatcsep-0.4.0/tutorials/case_j/pymock_slow → floatcsep-0.4.1/tutorials/case_g/pymock}/setup.cfg +1 -1
  46. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_h/config.yml +2 -1
  47. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_h/custom_report.py +22 -9
  48. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_h/models.yml +10 -9
  49. {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.1/tutorials/case_i}/config.yml +2 -2
  50. {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.1/tutorials/case_i}/models.yml +0 -2
  51. {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.1/tutorials/case_i}/pymock/pymock/main.py +1 -3
  52. {floatcsep-0.4.0/tutorials/case_i → floatcsep-0.4.1/tutorials/case_j}/config.yml +1 -1
  53. {floatcsep-0.4.0/tutorials/case_i → floatcsep-0.4.1/tutorials/case_j}/models.yml +2 -4
  54. floatcsep-0.4.0/.github/workflows/build-test.yml +0 -46
  55. floatcsep-0.4.0/docs/intro/installation.rst +0 -104
  56. floatcsep-0.4.0/pyproject.toml +0 -23
  57. floatcsep-0.4.0/setup.cfg +0 -96
  58. floatcsep-0.4.0/tutorials/case_e/catalog.json +0 -197
  59. floatcsep-0.4.0/tutorials/case_j/pymock/run.py +0 -40
  60. floatcsep-0.4.0/tutorials/case_j/pymock_slow/requirements.txt +0 -3
  61. floatcsep-0.4.0/tutorials/case_j/pymock_slow/run.py +0 -40
  62. {floatcsep-0.4.0 → floatcsep-0.4.1}/.github/workflows/build-sphinx.yml +0 -0
  63. {floatcsep-0.4.0 → floatcsep-0.4.1}/.github/workflows/publish-pypi.yml +0 -0
  64. {floatcsep-0.4.0 → floatcsep-0.4.1}/.github/workflows/release-tutorials.yml +0 -0
  65. {floatcsep-0.4.0 → floatcsep-0.4.1}/.readthedocs.yaml +0 -0
  66. {floatcsep-0.4.0 → floatcsep-0.4.1}/CODE_OF_CONDUCT.md +0 -0
  67. {floatcsep-0.4.0 → floatcsep-0.4.1}/CONTRIBUTING.md +0 -0
  68. {floatcsep-0.4.0 → floatcsep-0.4.1}/CREDITS.md +0 -0
  69. {floatcsep-0.4.0 → floatcsep-0.4.1}/LICENSE +0 -0
  70. {floatcsep-0.4.0 → floatcsep-0.4.1}/README.md +0 -0
  71. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/Makefile +0 -0
  72. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/_static/CSEP2_Logo_CMYK.png +0 -0
  73. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/_static/custom.js +0 -0
  74. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/_static/experiment_classes.png +0 -0
  75. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/_static/floatCSEP_Logo_CMYK.png +0 -0
  76. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/_static/float_scheme.png +0 -0
  77. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/_static/floatcsep_logo.svg +0 -0
  78. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/guide/evaluation_config.rst +0 -0
  79. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/guide/executing_experiment.rst +0 -0
  80. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/guide/experiment_config.rst +0 -0
  81. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/guide/postprocess_config.rst +0 -0
  82. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/intro/concepts.rst +0 -0
  83. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/reference/api_reference.rst +0 -0
  84. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/reference/commands.rst +0 -0
  85. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/reference/evaluation.rst +0 -0
  86. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/reference/experiment.rst +0 -0
  87. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/reference/infrastructure.rst +0 -0
  88. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/reference/model.rst +0 -0
  89. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/reference/postprocess.rst +0 -0
  90. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/reference/utilities.rst +0 -0
  91. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/tutorials/case_a.rst +0 -0
  92. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/tutorials/case_b.rst +0 -0
  93. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/tutorials/case_c.rst +0 -0
  94. {floatcsep-0.4.0 → floatcsep-0.4.1}/docs/tutorials/case_d.rst +0 -0
  95. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep/commands/__init__.py +0 -0
  96. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep/commands/main.py +0 -0
  97. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep/evaluation.py +0 -0
  98. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep/infrastructure/__init__.py +0 -0
  99. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep/infrastructure/engine.py +0 -0
  100. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep/infrastructure/logger.py +0 -0
  101. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep/postprocess/__init__.py +0 -0
  102. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep/utils/__init__.py +0 -0
  103. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep/utils/accessors.py +0 -0
  104. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep/utils/file_io.py +0 -0
  105. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep.egg-info/dependency_links.txt +0 -0
  106. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep.egg-info/entry_points.txt +0 -0
  107. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep.egg-info/not-zip-safe +0 -0
  108. {floatcsep-0.4.0 → floatcsep-0.4.1}/floatcsep.egg-info/top_level.txt +0 -0
  109. {floatcsep-0.4.0 → floatcsep-0.4.1}/setup.py +0 -0
  110. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/catalog.json +0 -0
  111. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/evaluations/tests_cfg.yml +0 -0
  112. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/gcmt/vcr_search.yaml +0 -0
  113. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/gcmt/vcr_summary.yaml +0 -0
  114. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/docker_test/invalid_entrypoint/Dockerfile +0 -0
  115. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/docker_test/invalid_image/Dockerfile +0 -0
  116. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/docker_test/invalid_no_entrypoint/Dockerfile +0 -0
  117. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/docker_test/invalid_permission/Dockerfile +0 -0
  118. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/docker_test/valid/Dockerfile +0 -0
  119. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/docker_test/valid_custom_uid-gid/Dockerfile +0 -0
  120. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/model.csv +0 -0
  121. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/model_cfg.yml +0 -0
  122. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/model_h5.hdf5 +0 -0
  123. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/qtree/TEAM=N10L11.csv +0 -0
  124. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/qtree/TEAM=N25L11.csv +0 -0
  125. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/td_model/forecasts/mock_2020-01-01_2020-01-02.csv +0 -0
  126. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/td_model/forecasts/mock_2020-01-02_2020-01-03.csv +0 -0
  127. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/td_model/input/args.txt +0 -0
  128. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/td_model/setup.cfg +0 -0
  129. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/template/Dockerfile +0 -0
  130. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/template/README.md +0 -0
  131. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/template/docs/userguide +0 -0
  132. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/template/examples/case_3/case3_run +0 -0
  133. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/template/examples/case_3/data/case3_catalog +0 -0
  134. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/template/forecasts/template_2023-01-01 +0 -0
  135. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/template/input/catalog +0 -0
  136. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/template/parameters +0 -0
  137. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/template/requirements +0 -0
  138. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/template/run +0 -0
  139. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/template/run_tests +0 -0
  140. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/template/setup +0 -0
  141. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/template/source/lib_a +0 -0
  142. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/template/source/lib_b +0 -0
  143. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/template/source/main +0 -0
  144. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/template/tests/test_liba +0 -0
  145. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/template/tests/test_libb +0 -0
  146. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/models/template/tests/test_main +0 -0
  147. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/regions/italy_midpoints +0 -0
  148. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/artifacts/regions/mock_region +0 -0
  149. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/integration/experiment typologies +0 -0
  150. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/integration/test_experiment_engine.py +0 -0
  151. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/integration/test_model_accessors.py +0 -0
  152. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/integration/test_model_docker.py +0 -0
  153. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/integration/test_model_engine.py +0 -0
  154. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/integration/test_model_infrastructure.py +0 -0
  155. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/unit/test_accessors.py +0 -0
  156. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/unit/test_commands.py +0 -0
  157. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/unit/test_engine.py +0 -0
  158. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/unit/test_evaluation.py +0 -0
  159. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/unit/test_experiment.py +0 -0
  160. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/unit/test_io.py +0 -0
  161. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/unit/test_registry.py +0 -0
  162. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/unit/test_repositories.py +0 -0
  163. {floatcsep-0.4.0 → floatcsep-0.4.1}/tests/unit/test_utils.py +0 -0
  164. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_a/case_a.py +0 -0
  165. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_a/catalog.csep +0 -0
  166. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_a/region.txt +0 -0
  167. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_b/case_b.py +0 -0
  168. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_b/catalog.json +0 -0
  169. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_b/config.yml +0 -0
  170. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_b/models/model_a.csv +0 -0
  171. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_b/models/model_b.csv +0 -0
  172. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_b/models/model_c.csv +0 -0
  173. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_b/models/model_d.csv +0 -0
  174. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_b/models.yml +0 -0
  175. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_b/region.txt +0 -0
  176. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_b/tests.yml +0 -0
  177. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_c/case_c.py +0 -0
  178. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_c/catalog.json +0 -0
  179. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_c/config.yml +0 -0
  180. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_c/models/model_a.csv +0 -0
  181. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_c/models/model_b.csv +0 -0
  182. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_c/models/model_c.csv +0 -0
  183. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_c/models/model_d.csv +0 -0
  184. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_c/models.yml +0 -0
  185. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_c/region.txt +0 -0
  186. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_c/tests.yml +0 -0
  187. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_d/models.yml +0 -0
  188. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_d/tests.yml +0 -0
  189. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_e/case_e.py +0 -0
  190. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_e/models/gulia-wiemer.ALM.italy.10yr.2010-01-01.xml +0 -0
  191. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_e/models/meletti.MPS04.italy.10yr.2010-01-01.xml +0 -0
  192. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_e/models/zechar.TripleS-CPTI.italy.10yr.2010-01-01.xml +0 -0
  193. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_e/models.yml +0 -0
  194. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_e/tests.yml +0 -0
  195. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_f/catalog.json +0 -0
  196. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_f/etas/forecasts/etas_2016-11-14_2016-11-15.csv +0 -0
  197. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_f/etas/forecasts/etas_2016-11-15_2016-11-16.csv +0 -0
  198. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_f/etas/forecasts/etas_2016-11-16_2016-11-17.csv +0 -0
  199. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_f/etas/forecasts/etas_2016-11-17_2016-11-18.csv +0 -0
  200. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_f/etas/forecasts/etas_2016-11-18_2016-11-19.csv +0 -0
  201. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_f/etas/forecasts/etas_2016-11-19_2016-11-20.csv +0 -0
  202. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_f/etas/forecasts/etas_2016-11-20_2016-11-21.csv +0 -0
  203. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_f/models.yml +0 -0
  204. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_f/tests.yml +0 -0
  205. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_g/catalog.csv +0 -0
  206. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_g/config.yml +0 -0
  207. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_g/custom_plot_script.py +0 -0
  208. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_g/pymock/Dockerfile +0 -0
  209. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_g/pymock/README.md +0 -0
  210. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_g/pymock/input/args.txt +0 -0
  211. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_g/pymock/pymock/__init__.py +0 -0
  212. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_g/pymock/pymock/libs.py +0 -0
  213. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_g/pymock/pymock/main.py +0 -0
  214. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_g/pymock/run.py +0 -0
  215. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_g/pymock/setup.py +0 -0
  216. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_g/tests.yml +0 -0
  217. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_h/catalog.csv +0 -0
  218. {floatcsep-0.4.0 → floatcsep-0.4.1}/tutorials/case_h/tests.yml +0 -0
  219. {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.1/tutorials/case_i}/catalog.csv +0 -0
  220. {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.1/tutorials/case_i}/pymock/Dockerfile +0 -0
  221. {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.1/tutorials/case_i}/pymock/README.md +0 -0
  222. {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.1/tutorials/case_i}/pymock/input/args.txt +0 -0
  223. {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.1/tutorials/case_i}/pymock/pymock/__init__.py +0 -0
  224. {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.1/tutorials/case_i}/pymock/pymock/libs.py +0 -0
  225. {floatcsep-0.4.0/tutorials/case_g → floatcsep-0.4.1/tutorials/case_i}/pymock/pyproject.toml +0 -0
  226. {floatcsep-0.4.0/tutorials/case_g → floatcsep-0.4.1/tutorials/case_i}/pymock/requirements.txt +0 -0
  227. {floatcsep-0.4.0/tutorials/case_g → floatcsep-0.4.1/tutorials/case_i}/pymock/setup.cfg +0 -0
  228. {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.1/tutorials/case_i}/pymock/setup.py +0 -0
  229. {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.1/tutorials/case_i}/pymock_slow/Dockerfile +0 -0
  230. {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.1/tutorials/case_i}/pymock_slow/README.md +0 -0
  231. {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.1/tutorials/case_i}/pymock_slow/input/args.txt +0 -0
  232. {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.1/tutorials/case_i}/pymock_slow/pymock/__init__.py +0 -0
  233. {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.1/tutorials/case_i}/pymock_slow/pymock/libs.py +0 -0
  234. {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.1/tutorials/case_i}/pymock_slow/pymock/main.py +0 -0
  235. {floatcsep-0.4.0/tutorials/case_j/pymock → floatcsep-0.4.1/tutorials/case_i/pymock_slow}/pyproject.toml +0 -0
  236. {floatcsep-0.4.0/tutorials/case_j/pymock → floatcsep-0.4.1/tutorials/case_i/pymock_slow}/requirements.txt +0 -0
  237. {floatcsep-0.4.0/tutorials/case_j/pymock → floatcsep-0.4.1/tutorials/case_i/pymock_slow}/setup.cfg +0 -0
  238. {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.1/tutorials/case_i}/pymock_slow/setup.py +0 -0
  239. {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.1/tutorials/case_i}/tests.yml +0 -0
  240. {floatcsep-0.4.0/tutorials/case_i → floatcsep-0.4.1/tutorials/case_j}/catalog.csep +0 -0
  241. {floatcsep-0.4.0/tutorials/case_i → floatcsep-0.4.1/tutorials/case_j}/tests.yml +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.4.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,
@@ -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).
@@ -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.
@@ -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>`_
@@ -14,7 +14,11 @@ Here, we set up a time-dependent model from its **source code** for an experimen
14
14
  $ floatcsep run config.yml
15
15
 
16
16
  After the calculation is complete, the results will be summarized in ``results/report.md``.
17
+ For troubleshooting, run the experiment with:
17
18
 
19
+ .. code-block:: console
20
+
21
+ $ floatcsep run config.yml --debug
18
22
 
19
23
  .. currentmodule:: floatcsep
20
24
 
@@ -26,7 +30,7 @@ Here, we set up a time-dependent model from its **source code** for an experimen
26
30
  Experiment Components
27
31
  ---------------------
28
32
 
29
- The example folder contains also, along with the already known components (configurations, catalog), a sub-folder for the **source code** of the model ``pymock``. The components of the experiment (and model) are:
33
+ The example folder contains also, along with the already known components (configurations, catalog), a sub-folder for the **source code** of the model `pymock <https://git.gfz-potsdam.de/csep/it_experiment/models/pymock>`_. The components of the experiment (and model) are:
30
34
 
31
35
  ::
32
36
 
@@ -63,7 +67,7 @@ The example folder contains also, along with the already known components (confi
63
67
  Model
64
68
  -----
65
69
 
66
- The experiment's complexity increases from time-independent to dependent mostly because we now need a **Model** (source code) to generate forecasts that changes for every time-window. The model main components are:
70
+ Transitioning from time-independent to dependent models increases an experiment's complexity because we now need a **Model** (source code) to generate forecasts that change for every time-window. A **Model**'s main components are:
67
71
 
68
72
 
69
73
  * **Input**: The input consists in input **data** and **arguments**.
@@ -76,35 +80,33 @@ The experiment's complexity increases from time-independent to dependent mostly
76
80
 
77
81
  2. The **input arguments** controls how the model's source code works. The minimum arguments to run a model are the forecast ``start_date`` and ``end_date``, which will be modified dynamically during an experiment with multiple time-windows. The experiment system will access `{model}/input/args.txt` and change the values of ``start_date = {datetime}`` and ``end_date = {datetime}`` before the model is run. Additional arguments can be set by convenience, such as (not limited to) ``catalog`` (the input catalog name), ``n_sims`` (number of synthetic catalogs) and random ``seed`` for reproducibility.
78
82
 
79
- * **Output**: The model's output are the synthetic catalogs, which should be allocated in `{model}/forecasts/{filename}.csv` by the source code after each rone. The format is identically to ``csep_ascii``, but unlike in an input catalog, the ``catalog_id`` column should be modified for each synthetic catalog starting from 0. The file name follows the convention `{model_name}_{start}_{end}.csv`, where ``start`` and ``end`` folows the `%Y-%m-%dT%H:%M:%S.%f` - ISO861 FORMAT
83
+ * **Output**: The model's output are synthetic catalogs, which should be allocated in `{model}/forecasts/{filename}.csv` by the source code after each run. The format is identically to ``csep_ascii``, but unlike in an input catalog, the ``catalog_id`` column should be modified for each synthetic catalog starting from 0. The file name follows the convention `{model_name}_{start}_{end}.csv`, where ``start`` and ``end`` follows the `%Y-%m-%dT%H:%M:%S.%f` - ISO861 FORMAT.
80
84
 
81
- * **Model build**: Inside the model source code, there are multiple options to build it. A standard python ``setup.cfg`` is given, which can be built inside a python ``venv`` or ``conda`` managers. This is created and built automatically by ``floatCSEP``, as long as the the model build instructions are correctly set up.
85
+ * **Model build**: Inside the model source code, there are multiple options to build it. A standard Python ``setup.cfg`` is given, which can be built inside a Python ``venv`` or ``conda`` managers. This is created and built automatically by ``floatCSEP``, as long as the the model build instructions are correctly set up.
82
86
 
83
87
  * **Model run**: The model should be run with a simple command, e.g. **entrypoint**, to which only ``arguments`` could be passed if desired. The ``pymock`` model contains multiple example of entrypoints, but the modeler should use only one for clarity.
84
88
 
85
- 1. A `python` call with arguments
89
+ 1. A ``python`` call with arguments:
86
90
 
87
91
  .. code-block:: console
88
92
 
89
93
  $ python run.py input/args.txt
90
94
 
91
- 2. Using a binary entrypoint with arguments (for instance, defined in the python build instructions: ``pymock/setup.cfg:entry_point``)
95
+ 2. Using a binary entrypoint with arguments (for instance, defined in the Python build instructions: ``pymock/setup.cfg:entry_point``):
92
96
 
93
97
  .. code-block:: console
94
98
 
95
99
  $ pymock input/args.txt
96
100
 
97
- 3. A single binary entrypoint without arguments .
101
+ 3. A single binary entrypoint without arguments, which means that the source code should internally read the input data and arguments (``input/catalog.csv`` and ``input/args.txt`` files, respectively):
98
102
 
99
103
  .. code-block:: console
100
104
 
101
105
  $ pymock
102
106
 
103
- This means that the source code should internally read the input data and arguments, ``input/catalog.csv`` and ``input/args.txt`` files respectively.
104
-
105
107
  .. important::
106
108
 
107
- The model should be conceptualized as a **black-box**, whose only interface/interaction with the ``floatcsep`` system is to receive an input (i.e., input catalog and arguments) and generates an output (the forecasts).
109
+ A **Model** can be conceptualized as a **black-box**, whose only interface/interaction with the ``floatcsep`` system is to receive an input (i.e., input catalog and arguments) and subsequently generate an output (the forecasts).
108
110
 
109
111
 
110
112
  Configuration
@@ -124,7 +126,7 @@ Time
124
126
  Catalog
125
127
  ~~~~~~~
126
128
 
127
- The catalog was obtained `previous to the experiment` using ``query_bsi``, but it was filtered from 2006 onwards, so it has enough data for the model calibration.
129
+ The catalog was obtained *prior* to the experiment using ``query_bsi``, but it was filtered from 2006 onwards, so it has enough data for the model calibration.
128
130
 
129
131
  Models
130
132
  ~~~~~~
@@ -137,13 +139,13 @@ Models
137
139
  :lines: 1-7
138
140
 
139
141
  1. Now ``path`` points to the folder where the source is installed. Therefore, the input and the forecasts should be allocated ``{path}/input`` and ``{path}/forecasts``, respectively.
140
- 2. The ``func`` option is the shell command with which the model is run. As seen in the `Model`_ section, this could be either ``pymock``, ``pymock input/args.txt`` or ``python run.py input/args``. We use the simplest option ``pymock``, but you are welcome to try different entrypoints.
142
+ 2. The ``func`` option is the shell command with which the model is run. As seen in the `Model` section, this could be either ``pymock``, ``pymock input/args.txt`` or ``python run.py input/args``. We use the simplest option ``pymock``, but you are welcome to try different entrypoints.
141
143
 
142
144
  .. note::
143
145
  The ``func`` command will be run from the model's directory and a model containerization (e.g., ``Dockerfile``, ``conda``).
144
146
 
145
- 3. The ``func_kwargs`` are extra arguments that will annotated to the ``input/args.txt`` file every time the model is run, or will be passed as extra arguments to the ``func`` call (Note that the two options are identical). This is useful to define sub-classes of models (or flavours) that uses the same source code, but a different instantiation.
146
- 4. The ``build`` option defines the style of container within which the model will be placed. Currently in **floatCSEP**, only the python module ``venv``, the package manager ``conda`` and the containerization manager ``Docker`` are currently supported.
147
+ 3. The ``func_kwargs`` are extra arguments that will be added to the ``input/args.txt`` file every time the model is run, or will be passed as extra arguments to the ``func`` call (Note that the two options are identical). This is useful to define sub-classes of models (or flavours) that uses the same source code, but a different instantiation.
148
+ 4. The ``build`` option defines the style of container within which the model will be placed. Currently in **floatCSEP**, only the Python module ``venv``, the package manager ``conda`` and the containerization manager ``Docker`` are currently supported.
147
149
 
148
150
  .. important::
149
151
  For these tutorials, we use ``venv`` sub-environments, but we recommend ``Docker`` to set up real experiments.
@@ -152,7 +154,7 @@ Models
152
154
  Tests
153
155
  ~~~~~
154
156
 
155
- With time-dependent models, now catalog evaluations found in :obj:`csep.core.catalog_evaluations` can be used.
157
+ Catalog-based evaluations found in :obj:`csep.core.catalog_evaluations` can be used.
156
158
 
157
159
 
158
160
  .. literalinclude:: ../../tutorials/case_g/tests.yml
@@ -160,7 +162,7 @@ Tests
160
162
  :language: yaml
161
163
 
162
164
  .. note::
163
- It is possible to assign two plotting functions to a test, whose ``plot_args`` and ``plot_kwargs`` can be placed indented beneath
165
+ It is possible to assign two plotting functions to a test, whose ``plot_args`` and ``plot_kwargs`` can be placed indented beneath.
164
166
 
165
167
 
166
168
  Custom Post-Process
@@ -173,13 +175,13 @@ Custom Post-Process
173
175
  :language: yaml
174
176
  :lines: 22-23
175
177
 
176
- This option provides `hook` for a python script and a function within as:
178
+ This option provides a `hook` for a Python script and a function within as:
177
179
 
178
180
  .. code-block:: console
179
181
 
180
182
  {python_sript}:{function_name}
181
183
 
182
- The requirements are that the script to be located within the same directory as the configuration file, whereas the function must receive a :class:`floatcsep.experiment.Experiment` as argument
184
+ The script must be located within the same directory as the configuration file, whereas the function must receive a :class:`floatcsep.experiment.Experiment` as argument:
183
185
 
184
186
  .. literalinclude:: ../../tutorials/case_g/custom_plot_script.py
185
187
  :caption: tutorials/case_g/custom_plot_script.py
@@ -188,13 +190,13 @@ Custom Post-Process
188
190
 
189
191
 
190
192
 
191
- In this way, the plot function can use all the :class:`~floatcsep.experiment.Experiment` attributes/methods to access catalogs, forecasts and test results. The script ``tutorials/case_g/custom_plot_script.py`` can also be viewed directly on `GitHub <https://github.com/cseptesting/floatcsep/blob/main/tutorials/case_g/custom_plot_script.py>`_, where it is exemplified how to access the experiment data in runtime.
193
+ In this way, the plot function can use all the :class:`~floatcsep.experiment.Experiment` attributes/methods to access catalogs, forecasts and test results. The script ``tutorials/case_g/custom_plot_script.py`` can also be viewed directly in `the GitHub repository <https://github.com/cseptesting/floatcsep/blob/main/tutorials/case_g/custom_plot_script.py>`_, where it is exemplified how to access the experiment data at runtime.
192
194
 
193
195
 
194
196
  Running the experiment
195
197
  ----------------------
196
198
 
197
- The experiment can be run by simply navigating to the ``tutorials/case_g`` folder in the terminal and typing.
199
+ The experiment can be run by simply navigating to the ``tutorials/case_g`` folder in the terminal and typing:
198
200
 
199
201
  .. code-block:: console
200
202
 
@@ -3,7 +3,7 @@
3
3
  H - A Time-Dependent Experiment
4
4
  ===============================
5
5
 
6
- Here, we run an experiment that access, containerize and execute multiple **time-dependent models**, and then proceeds to evaluate the forecasts once they are created.
6
+ Here, we run an experiment that accesses, containerizes and executes multiple **time-dependent models**, and then proceeds to evaluate the forecasts once they are created.
7
7
 
8
8
  .. admonition:: **TL; DR**
9
9
 
@@ -14,6 +14,11 @@ Here, we run an experiment that access, containerize and execute multiple **time
14
14
  $ floatcsep run config.yml
15
15
 
16
16
  After the calculation is complete, the results will be summarized in ``results/report.md``.
17
+ For troubleshooting, run the experiment with:
18
+
19
+ .. code-block:: console
20
+
21
+ $ floatcsep run config.yml --debug
17
22
 
18
23
  .. currentmodule:: floatcsep
19
24
 
@@ -35,7 +40,7 @@ The experiment input files are:
35
40
  ├── tests.yml
36
41
  └── models.yml
37
42
 
38
- * The ``models.yml`` contains the instructions to clone and build the source codes from software repositories (e.g., gitlab, Github), and how to interface them with **floatCSEP**. Once downloaded and built, the experiment structure should look like:
43
+ * The ``models.yml`` contains the instructions to clone and build the source codes from software repositories (e.g., gitlab, Github), and how to interface them with **floatCSEP**. Once downloaded and built, the experiment structure should look like this:
39
44
 
40
45
  ::
41
46
 
@@ -139,7 +144,7 @@ As in :ref:`Tutorial G<case_g>`, each **Model** requires to build and execute a
139
144
 
140
145
  where ``start`` and ``end`` follow either the ``%Y-%m-%dT%H:%M:%S.%f`` - ISO861 FORMAT, or the short date version ``%Y-%m-%d`` if the windows are set by midnight.
141
146
 
142
- 6. Additional function arguments can be passed to the model with the entry ``func_kwargs``. We perhaps noted that both Poisson Mock and Negbinom Mock use the same source code. With ``func_kwargs`` a different subclass can be defined for the same source code (in this case, a Negative-Binomial number distribution instead of Poisson).
147
+ 6. Additional function arguments can be passed to the model with the entry ``func_kwargs``. Both `Poisson Mock` and `Negbinom Mock` use the same source code, but a different subclass can be defined with ``func_kwargs`` (in this case, a Negative-Binomial number distribution instead of Poisson).
143
148
 
144
149
  .. literalinclude:: ../../tutorials/case_h/models.yml
145
150
  :caption: tutorials/case_h/models.yml
@@ -160,13 +165,13 @@ Time
160
165
  Catalog
161
166
  ~~~~~~~
162
167
 
163
- The catalog was obtained `previous to the experiment` using ``query_bsi``, but it was filtered from 2006 onwards, so it has enough data for the model calibration.
168
+ The catalog was obtained *prior* to the experiment using ``query_bsi``, but it was filtered from 2006 onwards, so it has enough data for the model calibration.
164
169
 
165
170
 
166
171
  Tests
167
172
  ~~~~~
168
173
 
169
- With time-dependent models, now catalog evaluations found in :obj:`csep.core.catalog_evaluations` can be used.
174
+ Catalog-based evaluations found in :obj:`csep.core.catalog_evaluations` can be used.
170
175
 
171
176
 
172
177
  .. literalinclude:: ../../tutorials/case_h/tests.yml
@@ -174,7 +179,7 @@ Tests
174
179
  :language: yaml
175
180
 
176
181
  .. note::
177
- It is possible to assign two plotting functions to a test, whose ``plot_args`` and ``plot_kwargs`` can be placed indented beneath
182
+ It is possible to assign two plotting functions to a test, whose ``plot_args`` and ``plot_kwargs`` can be placed indented beneath.
178
183
 
179
184
 
180
185
  Custom Post-Process
@@ -187,25 +192,25 @@ Custom Post-Process
187
192
  :language: yaml
188
193
  :lines: 22-23
189
194
 
190
- This option provides `hook` for a python script and a function within as:
195
+ This option provides `hook` for a Python script and a function within as:
191
196
 
192
197
  .. code-block:: console
193
198
 
194
199
  {python_sript}:{function_name}
195
200
 
196
- The requirements are that the script to be located within the same directory as the configuration file, whereas the function must receive a :class:`floatcsep.experiment.Experiment` as argument
201
+ The script must be located within the same directory as the configuration file, whereas the function must receive a :class:`floatcsep.experiment.Experiment` as argument:
197
202
 
198
203
  .. literalinclude:: ../../tutorials/case_h/custom_report.py
199
204
  :language: yaml
200
205
  :lines: 5-11
201
206
 
202
- In this way, the report function use all the :class:`~floatcsep.experiment.Experiment` attributes/methods to access catalogs, forecasts and test results. The script ``tutorials/case_h/custom_report.py`` can also be viewed directly on `GitHub <https://github.com/cseptesting/floatcsep/blob/main/tutorials/case_h/custom_report.py>`_, where it is exemplified how to access the experiment artifacts.
207
+ In this way, the report function use all the :class:`~floatcsep.experiment.Experiment` attributes/methods to access catalogs, forecasts and test results. The script ``tutorials/case_h/custom_report.py`` can also be viewed directly in `the GitHub repository <https://github.com/cseptesting/floatcsep/blob/main/tutorials/case_h/custom_report.py>`_, where it is exemplified how to access the experiment artifacts.
203
208
 
204
209
 
205
210
  Running the experiment
206
211
  ----------------------
207
212
 
208
- The experiment can be run by simply navigating to the ``tutorials/case_h`` folder in the terminal and typing.
213
+ The experiment can be run by simply navigating to the ``tutorials/case_h`` folder in the terminal and typing:
209
214
 
210
215
  .. code-block:: console
211
216