floatcsep 0.4.0__tar.gz → 0.4.2__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.
- floatcsep-0.4.2/.github/workflows/build-test.yml +56 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/MANIFEST.in +1 -4
- {floatcsep-0.4.0/floatcsep.egg-info → floatcsep-0.4.2}/PKG-INFO +33 -53
- {floatcsep-0.4.0 → floatcsep-0.4.2}/README.md +23 -18
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/conf.py +0 -1
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/guide/model_config.rst +0 -3
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/index.rst +4 -0
- floatcsep-0.4.2/docs/intro/installation.rst +142 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/tutorials/case_e.rst +10 -2
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/tutorials/case_f.rst +14 -7
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/tutorials/case_g.rst +22 -20
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/tutorials/case_h.rst +15 -10
- floatcsep-0.4.2/docs/tutorials/case_i.rst +213 -0
- floatcsep-0.4.2/docs/tutorials/case_j.rst +142 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/environment.yml +3 -1
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep/__init__.py +0 -2
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep/experiment.py +0 -2
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep/infrastructure/environments.py +217 -136
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep/infrastructure/registries.py +7 -7
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep/infrastructure/repositories.py +29 -27
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep/model.py +1 -1
- floatcsep-0.4.2/floatcsep/postprocess/artifacts/NotoSans-Bold.ttf +0 -0
- floatcsep-0.4.2/floatcsep/postprocess/artifacts/NotoSans-Regular.ttf +0 -0
- floatcsep-0.4.2/floatcsep/postprocess/artifacts/logo.png +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep/postprocess/plot_handler.py +70 -19
- floatcsep-0.4.2/floatcsep/postprocess/reporting.py +689 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep/utils/helpers.py +146 -11
- {floatcsep-0.4.0 → floatcsep-0.4.2/floatcsep.egg-info}/PKG-INFO +33 -53
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep.egg-info/SOURCES.txt +28 -28
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep.egg-info/requires.txt +3 -25
- floatcsep-0.4.2/pyproject.toml +98 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/requirements.txt +5 -2
- {floatcsep-0.4.0 → floatcsep-0.4.2}/requirements_dev.txt +4 -9
- floatcsep-0.4.2/setup.cfg +4 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/e2e/test_data.py +8 -5
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/unit/test_environments.py +232 -92
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/unit/test_model.py +4 -2
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/unit/test_plot_handler.py +9 -5
- floatcsep-0.4.2/tests/unit/test_reporting.py +135 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tox.ini +1 -2
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_a/best_model.dat +2 -2
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_a/config.yml +1 -2
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_b/config.yml +1 -1
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_c/config.yml +2 -1
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_d/config.yml +4 -1
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_e/config.yml +4 -2
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_f/config.yml +5 -2
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_g/config.yml +1 -1
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_g/models.yml +1 -0
- {floatcsep-0.4.0/tutorials/case_j/pymock_slow → floatcsep-0.4.2/tutorials/case_g/pymock}/pyproject.toml +1 -1
- floatcsep-0.4.2/tutorials/case_g/pymock/requirements.txt +3 -0
- {floatcsep-0.4.0/tutorials/case_j/pymock_slow → floatcsep-0.4.2/tutorials/case_g/pymock}/setup.cfg +1 -1
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_h/config.yml +3 -2
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_h/custom_report.py +22 -9
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_h/models.yml +10 -9
- {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.2/tutorials/case_i}/config.yml +3 -3
- {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.2/tutorials/case_i}/models.yml +0 -2
- {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.2/tutorials/case_i}/pymock/pymock/main.py +1 -3
- {floatcsep-0.4.0/tutorials/case_i → floatcsep-0.4.2/tutorials/case_j}/config.yml +2 -2
- {floatcsep-0.4.0/tutorials/case_i → floatcsep-0.4.2/tutorials/case_j}/models.yml +2 -4
- floatcsep-0.4.0/.github/workflows/build-test.yml +0 -46
- floatcsep-0.4.0/docs/intro/installation.rst +0 -104
- floatcsep-0.4.0/floatcsep/postprocess/reporting.py +0 -480
- floatcsep-0.4.0/pyproject.toml +0 -23
- floatcsep-0.4.0/setup.cfg +0 -96
- floatcsep-0.4.0/setup.py +0 -8
- floatcsep-0.4.0/tests/unit/test_reporting.py +0 -63
- floatcsep-0.4.0/tutorials/case_e/catalog.json +0 -197
- floatcsep-0.4.0/tutorials/case_j/pymock/run.py +0 -40
- floatcsep-0.4.0/tutorials/case_j/pymock_slow/requirements.txt +0 -3
- floatcsep-0.4.0/tutorials/case_j/pymock_slow/run.py +0 -40
- {floatcsep-0.4.0 → floatcsep-0.4.2}/.github/workflows/build-sphinx.yml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/.github/workflows/publish-pypi.yml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/.github/workflows/release-tutorials.yml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/.readthedocs.yaml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/CODE_OF_CONDUCT.md +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/CONTRIBUTING.md +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/CREDITS.md +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/LICENSE +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/Makefile +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/_static/CSEP2_Logo_CMYK.png +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/_static/custom.js +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/_static/experiment_classes.png +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/_static/floatCSEP_Logo_CMYK.png +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/_static/float_scheme.png +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/_static/floatcsep_logo.svg +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/guide/evaluation_config.rst +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/guide/executing_experiment.rst +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/guide/experiment_config.rst +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/guide/postprocess_config.rst +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/intro/concepts.rst +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/reference/api_reference.rst +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/reference/commands.rst +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/reference/evaluation.rst +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/reference/experiment.rst +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/reference/infrastructure.rst +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/reference/model.rst +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/reference/postprocess.rst +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/reference/utilities.rst +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/tutorials/case_a.rst +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/tutorials/case_b.rst +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/tutorials/case_c.rst +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/docs/tutorials/case_d.rst +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep/commands/__init__.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep/commands/main.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep/evaluation.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep/infrastructure/__init__.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep/infrastructure/engine.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep/infrastructure/logger.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep/postprocess/__init__.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep/utils/__init__.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep/utils/accessors.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep/utils/file_io.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep.egg-info/dependency_links.txt +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep.egg-info/entry_points.txt +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep.egg-info/not-zip-safe +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/floatcsep.egg-info/top_level.txt +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/catalog.json +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/evaluations/tests_cfg.yml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/gcmt/vcr_search.yaml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/gcmt/vcr_summary.yaml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/docker_test/invalid_entrypoint/Dockerfile +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/docker_test/invalid_image/Dockerfile +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/docker_test/invalid_no_entrypoint/Dockerfile +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/docker_test/invalid_permission/Dockerfile +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/docker_test/valid/Dockerfile +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/docker_test/valid_custom_uid-gid/Dockerfile +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/model.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/model_cfg.yml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/model_h5.hdf5 +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/qtree/TEAM=N10L11.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/qtree/TEAM=N25L11.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/td_model/forecasts/mock_2020-01-01_2020-01-02.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/td_model/forecasts/mock_2020-01-02_2020-01-03.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/td_model/input/args.txt +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/td_model/setup.cfg +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/template/Dockerfile +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/template/README.md +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/template/docs/userguide +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/template/examples/case_3/case3_run +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/template/examples/case_3/data/case3_catalog +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/template/forecasts/template_2023-01-01 +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/template/input/catalog +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/template/parameters +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/template/requirements +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/template/run +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/template/run_tests +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/template/setup +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/template/source/lib_a +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/template/source/lib_b +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/template/source/main +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/template/tests/test_liba +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/template/tests/test_libb +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/models/template/tests/test_main +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/regions/italy_midpoints +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/artifacts/regions/mock_region +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/integration/experiment typologies +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/integration/test_experiment_engine.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/integration/test_model_accessors.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/integration/test_model_docker.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/integration/test_model_engine.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/integration/test_model_infrastructure.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/unit/test_accessors.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/unit/test_commands.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/unit/test_engine.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/unit/test_evaluation.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/unit/test_experiment.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/unit/test_io.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/unit/test_registry.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/unit/test_repositories.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tests/unit/test_utils.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_a/case_a.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_a/catalog.csep +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_a/region.txt +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_b/case_b.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_b/catalog.json +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_b/models/model_a.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_b/models/model_b.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_b/models/model_c.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_b/models/model_d.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_b/models.yml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_b/region.txt +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_b/tests.yml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_c/case_c.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_c/catalog.json +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_c/models/model_a.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_c/models/model_b.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_c/models/model_c.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_c/models/model_d.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_c/models.yml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_c/region.txt +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_c/tests.yml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_d/models.yml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_d/tests.yml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_e/case_e.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_e/models/gulia-wiemer.ALM.italy.10yr.2010-01-01.xml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_e/models/meletti.MPS04.italy.10yr.2010-01-01.xml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_e/models/zechar.TripleS-CPTI.italy.10yr.2010-01-01.xml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_e/models.yml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_e/tests.yml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_f/catalog.json +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_f/etas/forecasts/etas_2016-11-14_2016-11-15.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_f/etas/forecasts/etas_2016-11-15_2016-11-16.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_f/etas/forecasts/etas_2016-11-16_2016-11-17.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_f/etas/forecasts/etas_2016-11-17_2016-11-18.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_f/etas/forecasts/etas_2016-11-18_2016-11-19.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_f/etas/forecasts/etas_2016-11-19_2016-11-20.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_f/etas/forecasts/etas_2016-11-20_2016-11-21.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_f/models.yml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_f/tests.yml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_g/catalog.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_g/custom_plot_script.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_g/pymock/Dockerfile +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_g/pymock/README.md +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_g/pymock/input/args.txt +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_g/pymock/pymock/__init__.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_g/pymock/pymock/libs.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_g/pymock/pymock/main.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_g/pymock/run.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_g/pymock/setup.py +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_g/tests.yml +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_h/catalog.csv +0 -0
- {floatcsep-0.4.0 → floatcsep-0.4.2}/tutorials/case_h/tests.yml +0 -0
- {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.2/tutorials/case_i}/catalog.csv +0 -0
- {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.2/tutorials/case_i}/pymock/Dockerfile +0 -0
- {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.2/tutorials/case_i}/pymock/README.md +0 -0
- {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.2/tutorials/case_i}/pymock/input/args.txt +0 -0
- {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.2/tutorials/case_i}/pymock/pymock/__init__.py +0 -0
- {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.2/tutorials/case_i}/pymock/pymock/libs.py +0 -0
- {floatcsep-0.4.0/tutorials/case_g → floatcsep-0.4.2/tutorials/case_i}/pymock/pyproject.toml +0 -0
- {floatcsep-0.4.0/tutorials/case_g → floatcsep-0.4.2/tutorials/case_i}/pymock/requirements.txt +0 -0
- {floatcsep-0.4.0/tutorials/case_g → floatcsep-0.4.2/tutorials/case_i}/pymock/setup.cfg +0 -0
- {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.2/tutorials/case_i}/pymock/setup.py +0 -0
- {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.2/tutorials/case_i}/pymock_slow/Dockerfile +0 -0
- {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.2/tutorials/case_i}/pymock_slow/README.md +0 -0
- {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.2/tutorials/case_i}/pymock_slow/input/args.txt +0 -0
- {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.2/tutorials/case_i}/pymock_slow/pymock/__init__.py +0 -0
- {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.2/tutorials/case_i}/pymock_slow/pymock/libs.py +0 -0
- {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.2/tutorials/case_i}/pymock_slow/pymock/main.py +0 -0
- {floatcsep-0.4.0/tutorials/case_j/pymock → floatcsep-0.4.2/tutorials/case_i/pymock_slow}/pyproject.toml +0 -0
- {floatcsep-0.4.0/tutorials/case_j/pymock → floatcsep-0.4.2/tutorials/case_i/pymock_slow}/requirements.txt +0 -0
- {floatcsep-0.4.0/tutorials/case_j/pymock → floatcsep-0.4.2/tutorials/case_i/pymock_slow}/setup.cfg +0 -0
- {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.2/tutorials/case_i}/pymock_slow/setup.py +0 -0
- {floatcsep-0.4.0/tutorials/case_j → floatcsep-0.4.2/tutorials/case_i}/tests.yml +0 -0
- {floatcsep-0.4.0/tutorials/case_i → floatcsep-0.4.2/tutorials/case_j}/catalog.csep +0 -0
- {floatcsep-0.4.0/tutorials/case_i → floatcsep-0.4.2/tutorials/case_j}/tests.yml +0 -0
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
include:
|
|
18
|
+
- os: ubuntu-latest
|
|
19
|
+
python-version: '3.9'
|
|
20
|
+
- os: ubuntu-latest
|
|
21
|
+
python-version: '3.10'
|
|
22
|
+
- os: ubuntu-latest
|
|
23
|
+
python-version: '3.11'
|
|
24
|
+
- os: ubuntu-latest
|
|
25
|
+
python-version: '3.12'
|
|
26
|
+
- os: macos-latest
|
|
27
|
+
python-version: '3.11'
|
|
28
|
+
|
|
29
|
+
defaults:
|
|
30
|
+
run:
|
|
31
|
+
shell: bash -l {0}
|
|
32
|
+
|
|
33
|
+
steps:
|
|
34
|
+
- uses: actions/checkout@v4.2.2
|
|
35
|
+
- uses: mamba-org/setup-micromamba@v1
|
|
36
|
+
with:
|
|
37
|
+
generate-run-shell: true
|
|
38
|
+
environment-file: environment.yml
|
|
39
|
+
create-args: >-
|
|
40
|
+
python=${{ matrix.python-version }}
|
|
41
|
+
|
|
42
|
+
- name: Install floatCSEP
|
|
43
|
+
run: |
|
|
44
|
+
pip install -e .[dev]
|
|
45
|
+
python -c "import floatcsep; print('Version: ', floatcsep.__version__)"
|
|
46
|
+
|
|
47
|
+
- name: Test with pytest
|
|
48
|
+
run: |
|
|
49
|
+
pytest --durations=0
|
|
50
|
+
|
|
51
|
+
- name: Upload coverage
|
|
52
|
+
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
|
|
53
|
+
uses: codecov/codecov-action@v3
|
|
54
|
+
with:
|
|
55
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
56
|
+
fail_ci_if_error: false
|
|
@@ -3,8 +3,6 @@ include CODE_OF_CONDUCT.md
|
|
|
3
3
|
include requirements.txt
|
|
4
4
|
include requirements_dev.txt
|
|
5
5
|
include environment.yml
|
|
6
|
-
include setup.py
|
|
7
|
-
include setup.cfg
|
|
8
6
|
include pyproject.toml
|
|
9
7
|
include LICENSE
|
|
10
8
|
include CREDITS.md
|
|
@@ -13,9 +11,8 @@ include CONTRIBUTING.md
|
|
|
13
11
|
graft floatcsep
|
|
14
12
|
graft tests
|
|
15
13
|
graft docs
|
|
16
|
-
prune build
|
|
17
14
|
prune docs/_build
|
|
18
|
-
prune docs/
|
|
15
|
+
prune docs/reference/generated
|
|
19
16
|
|
|
20
17
|
global-exclude .git*
|
|
21
18
|
global-exclude *.pyc
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: floatcsep
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: CSEP Floating Experiment application
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|
8
|
+
Keywords: earthquake,forecasting,seismology,CSEP
|
|
13
9
|
Classifier: Programming Language :: Python :: 3
|
|
14
10
|
Classifier: Programming Language :: Python :: 3.9
|
|
15
11
|
Classifier: Programming Language :: Python :: 3.10
|
|
16
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
-
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Requires-Python: <3.13,>=3.9
|
|
18
15
|
Description-Content-Type: text/markdown
|
|
19
16
|
License-File: LICENSE
|
|
20
17
|
Requires-Dist: numpy
|
|
@@ -24,40 +21,21 @@ Requires-Dist: gitpython
|
|
|
24
21
|
Requires-Dist: h5py
|
|
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
|
|
32
29
|
Requires-Dist: seaborn
|
|
33
30
|
Requires-Dist: tables
|
|
34
31
|
Requires-Dist: xmltodict
|
|
32
|
+
Requires-Dist: weasyprint
|
|
33
|
+
Requires-Dist: markdown-it-py
|
|
35
34
|
Provides-Extra: dev
|
|
36
|
-
Requires-Dist: numpy; extra == "dev"
|
|
37
|
-
Requires-Dist: cartopy; extra == "dev"
|
|
38
35
|
Requires-Dist: black; extra == "dev"
|
|
39
|
-
Requires-Dist: dateparser; extra == "dev"
|
|
40
|
-
Requires-Dist: docker; extra == "dev"
|
|
41
36
|
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
37
|
Requires-Dist: pytest; extra == "dev"
|
|
54
38
|
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
39
|
Requires-Dist: sphinx; extra == "dev"
|
|
62
40
|
Requires-Dist: sphinx-autoapi; extra == "dev"
|
|
63
41
|
Requires-Dist: sphinx_design; extra == "dev"
|
|
@@ -65,10 +43,7 @@ Requires-Dist: sphinx-toolbox; extra == "dev"
|
|
|
65
43
|
Requires-Dist: sphinx-gallery; extra == "dev"
|
|
66
44
|
Requires-Dist: sphinx-rtd-theme; extra == "dev"
|
|
67
45
|
Requires-Dist: sphinx_copybutton; extra == "dev"
|
|
68
|
-
Requires-Dist: tables; extra == "dev"
|
|
69
|
-
Requires-Dist: tox; extra == "dev"
|
|
70
46
|
Requires-Dist: vcrpy; extra == "dev"
|
|
71
|
-
Requires-Dist: xmltodict; extra == "dev"
|
|
72
47
|
Dynamic: license-file
|
|
73
48
|
|
|
74
49
|
# CSEP Floating Experiments
|
|
@@ -111,28 +86,28 @@ Dynamic: license-file
|
|
|
111
86
|
The core of `floatCSEP` is built around the `pyCSEP`
|
|
112
87
|
package (https://github.com/sceccode/pycsep), which itself contains the core dependencies.
|
|
113
88
|
|
|
114
|
-
##
|
|
89
|
+
## Latest version
|
|
115
90
|
|
|
116
|
-
|
|
117
|
-
environment (https://conda.io - checkout Anaconda or Miniforge) and install `floatCSEP`
|
|
118
|
-
from `conda-forge`
|
|
91
|
+
Clone and install the floatCSEP source code using `pip`
|
|
119
92
|
|
|
120
93
|
```
|
|
121
|
-
conda create -n $NAME -y
|
|
94
|
+
conda create -n $NAME -y python=3.12
|
|
122
95
|
conda activate $NAME
|
|
123
|
-
|
|
96
|
+
git clone https://github.com/cseptesting/floatcsep
|
|
97
|
+
cd floatcsep
|
|
98
|
+
pip install -e .
|
|
124
99
|
```
|
|
125
100
|
|
|
126
|
-
##
|
|
101
|
+
## Stable Release
|
|
127
102
|
|
|
128
|
-
|
|
103
|
+
The simplest way to install `floatCSEP` is by creating a `conda`
|
|
104
|
+
environment (https://conda.io - checkout Anaconda or Miniforge) and install `floatCSEP`
|
|
105
|
+
from `conda-forge`
|
|
129
106
|
|
|
130
107
|
```
|
|
131
|
-
conda create -n $NAME -y
|
|
108
|
+
conda create -n $NAME -y python=3.12
|
|
132
109
|
conda activate $NAME
|
|
133
|
-
|
|
134
|
-
cd floatcsep
|
|
135
|
-
pip install .
|
|
110
|
+
conda install -c conda-forge floatcsep -y
|
|
136
111
|
```
|
|
137
112
|
|
|
138
113
|
Please read
|
|
@@ -149,7 +124,7 @@ floatcsep run config.yml
|
|
|
149
124
|
```
|
|
150
125
|
|
|
151
126
|
A runtime directory will be created in a `results` folder. The experiment results can be
|
|
152
|
-
visualized in `results/report.md`. **Check out the experiment, models and tests definition in
|
|
127
|
+
visualized in `results/report.md` or `results/report.pdf`. **Check out the experiment, models and tests definition in
|
|
153
128
|
the tutorials**!
|
|
154
129
|
|
|
155
130
|
# Important Links
|
|
@@ -183,11 +158,16 @@ the [license file](https://github.com/cseptesting/floatcsep/blob/main/LICENSE) f
|
|
|
183
158
|
information.
|
|
184
159
|
|
|
185
160
|
## Support
|
|
161
|
+
|
|
162
|
+
| <img src="https://i.postimg.cc/rFKQ0vRL/GFZ-Wortbildmarke-EN-Helmholtzdunkelblau-RGB.png" alt="GFZ logo" height="50"/> | <img src="https://i.postimg.cc/CLc5tQcZ/Geo-INQUIRE-logo.png" alt="GeoInquire logo" height="72"/> | <img src="https://i.postimg.cc/tC1LdjYf/scec.png" alt="SCEC logo" height="90"/> |
|
|
163
|
+
|:----------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------:|
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
- The work in this repository has received funding from the European Union’s Horizon research and innovation programme
|
|
167
|
+
under grant agreements No.s 101058518 and 821115 of the projects [GeoInquire](https://www.geo-inquire.eu/) and [RISE](https://www.rise-eu.org/).
|
|
168
|
+
|
|
169
|
+
- This research was supported by the [Statewide California Earthquake Center](https://www.scec.org/).
|
|
170
|
+
SCEC is funded by NSF Cooperative Agreement EAR-2225216 and USGS Cooperative Agreement G24AC00072-00.
|
|
186
171
|
|
|
187
|
-
<div style="max-width: 100px; margin: auto;">
|
|
188
172
|
|
|
189
|
-
| <img src="https://i.postimg.cc/tC1LdjYf/scec.png" width="150"/> | <img src="https://i.postimg.cc/2S7ThcFM/eu-flag.jpg" width="150"/> |
|
|
190
|
-
|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
191
|
-
| <div style="text-align: left;">This research was supported by the <a href="https://www.scec.org/">Statewide California Earthquake Center</a>. SCEC is funded by NSF Cooperative Agreement EAR-2225216 and USGS Cooperative Agreement G24AC00072-00.</div> | <div style="text-align: left;">The work in this repository has received funding from the European Union’s Horizon research and innovation programme under grant agreements No.s 101058518 and 821115 of the projects <a href="https://www.geo-inquire.eu/">GeoInquire</a> and <a href="https://www.rise-eu.org/">RISE</a>.</div> |
|
|
192
173
|
|
|
193
|
-
</div>
|
|
@@ -38,28 +38,28 @@
|
|
|
38
38
|
The core of `floatCSEP` is built around the `pyCSEP`
|
|
39
39
|
package (https://github.com/sceccode/pycsep), which itself contains the core dependencies.
|
|
40
40
|
|
|
41
|
-
##
|
|
41
|
+
## Latest version
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
environment (https://conda.io - checkout Anaconda or Miniforge) and install `floatCSEP`
|
|
45
|
-
from `conda-forge`
|
|
43
|
+
Clone and install the floatCSEP source code using `pip`
|
|
46
44
|
|
|
47
45
|
```
|
|
48
|
-
conda create -n $NAME -y
|
|
46
|
+
conda create -n $NAME -y python=3.12
|
|
49
47
|
conda activate $NAME
|
|
50
|
-
|
|
48
|
+
git clone https://github.com/cseptesting/floatcsep
|
|
49
|
+
cd floatcsep
|
|
50
|
+
pip install -e .
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
##
|
|
53
|
+
## Stable Release
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
The simplest way to install `floatCSEP` is by creating a `conda`
|
|
56
|
+
environment (https://conda.io - checkout Anaconda or Miniforge) and install `floatCSEP`
|
|
57
|
+
from `conda-forge`
|
|
56
58
|
|
|
57
59
|
```
|
|
58
|
-
conda create -n $NAME -y
|
|
60
|
+
conda create -n $NAME -y python=3.12
|
|
59
61
|
conda activate $NAME
|
|
60
|
-
|
|
61
|
-
cd floatcsep
|
|
62
|
-
pip install .
|
|
62
|
+
conda install -c conda-forge floatcsep -y
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
Please read
|
|
@@ -76,7 +76,7 @@ floatcsep run config.yml
|
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
A runtime directory will be created in a `results` folder. The experiment results can be
|
|
79
|
-
visualized in `results/report.md`. **Check out the experiment, models and tests definition in
|
|
79
|
+
visualized in `results/report.md` or `results/report.pdf`. **Check out the experiment, models and tests definition in
|
|
80
80
|
the tutorials**!
|
|
81
81
|
|
|
82
82
|
# Important Links
|
|
@@ -110,11 +110,16 @@ the [license file](https://github.com/cseptesting/floatcsep/blob/main/LICENSE) f
|
|
|
110
110
|
information.
|
|
111
111
|
|
|
112
112
|
## Support
|
|
113
|
+
|
|
114
|
+
| <img src="https://i.postimg.cc/rFKQ0vRL/GFZ-Wortbildmarke-EN-Helmholtzdunkelblau-RGB.png" alt="GFZ logo" height="50"/> | <img src="https://i.postimg.cc/CLc5tQcZ/Geo-INQUIRE-logo.png" alt="GeoInquire logo" height="72"/> | <img src="https://i.postimg.cc/tC1LdjYf/scec.png" alt="SCEC logo" height="90"/> |
|
|
115
|
+
|:----------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------:|
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
- The work in this repository has received funding from the European Union’s Horizon research and innovation programme
|
|
119
|
+
under grant agreements No.s 101058518 and 821115 of the projects [GeoInquire](https://www.geo-inquire.eu/) and [RISE](https://www.rise-eu.org/).
|
|
120
|
+
|
|
121
|
+
- This research was supported by the [Statewide California Earthquake Center](https://www.scec.org/).
|
|
122
|
+
SCEC is funded by NSF Cooperative Agreement EAR-2225216 and USGS Cooperative Agreement G24AC00072-00.
|
|
113
123
|
|
|
114
|
-
<div style="max-width: 100px; margin: auto;">
|
|
115
124
|
|
|
116
|
-
| <img src="https://i.postimg.cc/tC1LdjYf/scec.png" width="150"/> | <img src="https://i.postimg.cc/2S7ThcFM/eu-flag.jpg" width="150"/> |
|
|
117
|
-
|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
118
|
-
| <div style="text-align: left;">This research was supported by the <a href="https://www.scec.org/">Statewide California Earthquake Center</a>. SCEC is funded by NSF Cooperative Agreement EAR-2225216 and USGS Cooperative Agreement G24AC00072-00.</div> | <div style="text-align: left;">The work in this repository has received funding from the European Union’s Horizon research and innovation programme under grant agreements No.s 101058518 and 821115 of the projects <a href="https://www.geo-inquire.eu/">GeoInquire</a> and <a href="https://www.rise-eu.org/">RISE</a>.</div> |
|
|
119
125
|
|
|
120
|
-
</div>
|
|
@@ -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
|
|
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
|
|
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 (
|
|
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 *
|
|
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
|
|
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
|
-
|
|
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>`_
|