floatcsep 0.1.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.
Files changed (170) hide show
  1. floatcsep-0.1.2/CODE_OF_CONDUCT.md +128 -0
  2. floatcsep-0.1.2/CONTRIBUTING.md +143 -0
  3. floatcsep-0.1.2/CREDITS.md +10 -0
  4. floatcsep-0.1.2/LICENSE +29 -0
  5. floatcsep-0.1.2/MANIFEST.in +24 -0
  6. floatcsep-0.1.2/PKG-INFO +111 -0
  7. floatcsep-0.1.2/README.md +89 -0
  8. floatcsep-0.1.2/docs/Makefile +28 -0
  9. floatcsep-0.1.2/docs/_static/CSEP2_Logo_CMYK.png +0 -0
  10. floatcsep-0.1.2/docs/_static/floatCSEP_Logo_CMYK.png +0 -0
  11. floatcsep-0.1.2/docs/_static/floatcsep_logo.svg +154 -0
  12. floatcsep-0.1.2/docs/conf.py +59 -0
  13. floatcsep-0.1.2/docs/deployment/intro.rst +4 -0
  14. floatcsep-0.1.2/docs/examples/case_a.rst +165 -0
  15. floatcsep-0.1.2/docs/examples/case_b.rst +94 -0
  16. floatcsep-0.1.2/docs/examples/case_c.rst +82 -0
  17. floatcsep-0.1.2/docs/examples/case_d.rst +108 -0
  18. floatcsep-0.1.2/docs/examples/case_e.rst +108 -0
  19. floatcsep-0.1.2/docs/examples/case_f.rst +130 -0
  20. floatcsep-0.1.2/docs/guide/config.rst +4 -0
  21. floatcsep-0.1.2/docs/guide/model_config.rst +4 -0
  22. floatcsep-0.1.2/docs/guide/region_config.rst +4 -0
  23. floatcsep-0.1.2/docs/guide/tests_config.rst +4 -0
  24. floatcsep-0.1.2/docs/guide/time_config.rst +4 -0
  25. floatcsep-0.1.2/docs/index.rst +61 -0
  26. floatcsep-0.1.2/docs/intro/concepts.rst +55 -0
  27. floatcsep-0.1.2/docs/intro/installation.rst +55 -0
  28. floatcsep-0.1.2/docs/reference/api_reference.rst +190 -0
  29. floatcsep-0.1.2/docs/reference/generated/floatcsep.accessors.from_git.rst +6 -0
  30. floatcsep-0.1.2/docs/reference/generated/floatcsep.accessors.from_zenodo.rst +6 -0
  31. floatcsep-0.1.2/docs/reference/generated/floatcsep.accessors.query_gcmt.rst +6 -0
  32. floatcsep-0.1.2/docs/reference/generated/floatcsep.cmd.main.plot.rst +6 -0
  33. floatcsep-0.1.2/docs/reference/generated/floatcsep.cmd.main.reproduce.rst +6 -0
  34. floatcsep-0.1.2/docs/reference/generated/floatcsep.cmd.main.run.rst +6 -0
  35. floatcsep-0.1.2/docs/reference/generated/floatcsep.evaluation.Evaluation.compute.rst +6 -0
  36. floatcsep-0.1.2/docs/reference/generated/floatcsep.evaluation.Evaluation.from_dict.rst +6 -0
  37. floatcsep-0.1.2/docs/reference/generated/floatcsep.evaluation.Evaluation.get_catalog.rst +6 -0
  38. floatcsep-0.1.2/docs/reference/generated/floatcsep.evaluation.Evaluation.prepare_args.rst +6 -0
  39. floatcsep-0.1.2/docs/reference/generated/floatcsep.evaluation.Evaluation.rst +37 -0
  40. floatcsep-0.1.2/docs/reference/generated/floatcsep.evaluation.Evaluation.to_dict.rst +6 -0
  41. floatcsep-0.1.2/docs/reference/generated/floatcsep.evaluation.Evaluation.type.rst +6 -0
  42. floatcsep-0.1.2/docs/reference/generated/floatcsep.evaluation.Evaluation.write_result.rst +6 -0
  43. floatcsep-0.1.2/docs/reference/generated/floatcsep.experiment.Experiment.catalog.rst +6 -0
  44. floatcsep-0.1.2/docs/reference/generated/floatcsep.experiment.Experiment.from_yml.rst +6 -0
  45. floatcsep-0.1.2/docs/reference/generated/floatcsep.experiment.Experiment.generate_report.rst +6 -0
  46. floatcsep-0.1.2/docs/reference/generated/floatcsep.experiment.Experiment.get_model.rst +6 -0
  47. floatcsep-0.1.2/docs/reference/generated/floatcsep.experiment.Experiment.plot_catalog.rst +6 -0
  48. floatcsep-0.1.2/docs/reference/generated/floatcsep.experiment.Experiment.plot_forecasts.rst +6 -0
  49. floatcsep-0.1.2/docs/reference/generated/floatcsep.experiment.Experiment.plot_results.rst +6 -0
  50. floatcsep-0.1.2/docs/reference/generated/floatcsep.experiment.Experiment.read_results.rst +6 -0
  51. floatcsep-0.1.2/docs/reference/generated/floatcsep.experiment.Experiment.rst +46 -0
  52. floatcsep-0.1.2/docs/reference/generated/floatcsep.experiment.Experiment.run.rst +6 -0
  53. floatcsep-0.1.2/docs/reference/generated/floatcsep.experiment.Experiment.set_models.rst +6 -0
  54. floatcsep-0.1.2/docs/reference/generated/floatcsep.experiment.Experiment.set_tasks.rst +6 -0
  55. floatcsep-0.1.2/docs/reference/generated/floatcsep.experiment.Experiment.set_test_cat.rst +6 -0
  56. floatcsep-0.1.2/docs/reference/generated/floatcsep.experiment.Experiment.set_tests.rst +6 -0
  57. floatcsep-0.1.2/docs/reference/generated/floatcsep.experiment.Experiment.stage_models.rst +6 -0
  58. floatcsep-0.1.2/docs/reference/generated/floatcsep.experiment.Experiment.to_dict.rst +6 -0
  59. floatcsep-0.1.2/docs/reference/generated/floatcsep.experiment.Experiment.to_yml.rst +6 -0
  60. floatcsep-0.1.2/docs/reference/generated/floatcsep.extras.binary_paired_t_test.rst +6 -0
  61. floatcsep-0.1.2/docs/reference/generated/floatcsep.extras.binomial_conditional_likelihood_test.rst +6 -0
  62. floatcsep-0.1.2/docs/reference/generated/floatcsep.extras.binomial_joint_log_likelihood_ndarray.rst +6 -0
  63. floatcsep-0.1.2/docs/reference/generated/floatcsep.extras.binomial_spatial_test.rst +6 -0
  64. floatcsep-0.1.2/docs/reference/generated/floatcsep.extras.brier_score.rst +6 -0
  65. floatcsep-0.1.2/docs/reference/generated/floatcsep.extras.log_likelihood_point_process.rst +6 -0
  66. floatcsep-0.1.2/docs/reference/generated/floatcsep.extras.negative_binomial_number_test.rst +6 -0
  67. floatcsep-0.1.2/docs/reference/generated/floatcsep.extras.paired_ttest_point_process.rst +6 -0
  68. floatcsep-0.1.2/docs/reference/generated/floatcsep.extras.sequential_information_gain.rst +6 -0
  69. floatcsep-0.1.2/docs/reference/generated/floatcsep.extras.sequential_likelihood.rst +6 -0
  70. floatcsep-0.1.2/docs/reference/generated/floatcsep.extras.vector_poisson_t_w_test.rst +6 -0
  71. floatcsep-0.1.2/docs/reference/generated/floatcsep.model.Model.create_forecast.rst +6 -0
  72. floatcsep-0.1.2/docs/reference/generated/floatcsep.model.Model.forecast_from_file.rst +6 -0
  73. floatcsep-0.1.2/docs/reference/generated/floatcsep.model.Model.forecast_from_func.rst +6 -0
  74. floatcsep-0.1.2/docs/reference/generated/floatcsep.model.Model.from_dict.rst +6 -0
  75. floatcsep-0.1.2/docs/reference/generated/floatcsep.model.Model.get_forecast.rst +6 -0
  76. floatcsep-0.1.2/docs/reference/generated/floatcsep.model.Model.get_source.rst +6 -0
  77. floatcsep-0.1.2/docs/reference/generated/floatcsep.model.Model.init_db.rst +6 -0
  78. floatcsep-0.1.2/docs/reference/generated/floatcsep.model.Model.rm_db.rst +6 -0
  79. floatcsep-0.1.2/docs/reference/generated/floatcsep.model.Model.rst +44 -0
  80. floatcsep-0.1.2/docs/reference/generated/floatcsep.model.Model.stage.rst +6 -0
  81. floatcsep-0.1.2/docs/reference/generated/floatcsep.model.Model.to_dict.rst +6 -0
  82. floatcsep-0.1.2/docs/reference/generated/floatcsep.readers.ForecastParsers.csv.rst +6 -0
  83. floatcsep-0.1.2/docs/reference/generated/floatcsep.readers.ForecastParsers.dat.rst +6 -0
  84. floatcsep-0.1.2/docs/reference/generated/floatcsep.readers.ForecastParsers.hdf5.rst +6 -0
  85. floatcsep-0.1.2/docs/reference/generated/floatcsep.readers.ForecastParsers.quadtree.rst +6 -0
  86. floatcsep-0.1.2/docs/reference/generated/floatcsep.readers.ForecastParsers.xml.rst +6 -0
  87. floatcsep-0.1.2/docs/reference/generated/floatcsep.readers.HDF5Serializer.grid2hdf5.rst +6 -0
  88. floatcsep-0.1.2/docs/reference/generated/floatcsep.readers.serialize.rst +6 -0
  89. floatcsep-0.1.2/docs/reference/generated/floatcsep.utils.Task.check_exist.rst +6 -0
  90. floatcsep-0.1.2/docs/reference/generated/floatcsep.utils.Task.rst +25 -0
  91. floatcsep-0.1.2/docs/reference/generated/floatcsep.utils.Task.run.rst +6 -0
  92. floatcsep-0.1.2/docs/reference/generated/floatcsep.utils.magnitude_vs_time.rst +6 -0
  93. floatcsep-0.1.2/docs/reference/generated/floatcsep.utils.parse_csep_func.rst +6 -0
  94. floatcsep-0.1.2/docs/reference/generated/floatcsep.utils.parse_timedelta_string.rst +6 -0
  95. floatcsep-0.1.2/docs/reference/generated/floatcsep.utils.plot_sequential_likelihood.rst +6 -0
  96. floatcsep-0.1.2/docs/reference/generated/floatcsep.utils.read_region_config.rst +6 -0
  97. floatcsep-0.1.2/docs/reference/generated/floatcsep.utils.read_time_config.rst +6 -0
  98. floatcsep-0.1.2/docs/reference/generated/floatcsep.utils.timewindow2str.rst +6 -0
  99. floatcsep-0.1.2/docs/reference/generated/floatcsep.utils.timewindows_td.rst +6 -0
  100. floatcsep-0.1.2/docs/reference/generated/floatcsep.utils.timewindows_ti.rst +6 -0
  101. floatcsep-0.1.2/floatcsep/__init__.py +1 -0
  102. floatcsep-0.1.2/floatcsep/accessors.py +330 -0
  103. floatcsep-0.1.2/floatcsep/artifacts/new_zealand_csep_testing.csv +6343 -0
  104. floatcsep-0.1.2/floatcsep/artifacts/patterns.py +36 -0
  105. floatcsep-0.1.2/floatcsep/cmd/main.py +97 -0
  106. floatcsep-0.1.2/floatcsep/evaluation.py +373 -0
  107. floatcsep-0.1.2/floatcsep/experiment.py +892 -0
  108. floatcsep-0.1.2/floatcsep/extras.py +808 -0
  109. floatcsep-0.1.2/floatcsep/meta.yaml +59 -0
  110. floatcsep-0.1.2/floatcsep/model.py +521 -0
  111. floatcsep-0.1.2/floatcsep/readers.py +329 -0
  112. floatcsep-0.1.2/floatcsep/registry.py +269 -0
  113. floatcsep-0.1.2/floatcsep/report.py +91 -0
  114. floatcsep-0.1.2/floatcsep/utils.py +1300 -0
  115. floatcsep-0.1.2/floatcsep.egg-info/PKG-INFO +111 -0
  116. floatcsep-0.1.2/floatcsep.egg-info/SOURCES.txt +169 -0
  117. floatcsep-0.1.2/floatcsep.egg-info/dependency_links.txt +1 -0
  118. floatcsep-0.1.2/floatcsep.egg-info/entry_points.txt +2 -0
  119. floatcsep-0.1.2/floatcsep.egg-info/not-zip-safe +1 -0
  120. floatcsep-0.1.2/floatcsep.egg-info/requires.txt +48 -0
  121. floatcsep-0.1.2/floatcsep.egg-info/top_level.txt +1 -0
  122. floatcsep-0.1.2/pyproject.toml +9 -0
  123. floatcsep-0.1.2/requirements.txt +14 -0
  124. floatcsep-0.1.2/requirements_dev.txt +22 -0
  125. floatcsep-0.1.2/setup.cfg +89 -0
  126. floatcsep-0.1.2/setup.py +4 -0
  127. floatcsep-0.1.2/tests/.coverage +0 -0
  128. floatcsep-0.1.2/tests/artifacts/catalog.json +51 -0
  129. floatcsep-0.1.2/tests/artifacts/evaluations/tests_cfg.yml +16 -0
  130. floatcsep-0.1.2/tests/artifacts/gcmt/vcr_search.yaml +52 -0
  131. floatcsep-0.1.2/tests/artifacts/gcmt/vcr_summary.yaml +43 -0
  132. floatcsep-0.1.2/tests/artifacts/models/model.csv +5 -0
  133. floatcsep-0.1.2/tests/artifacts/models/model.hdf5 +0 -0
  134. floatcsep-0.1.2/tests/artifacts/models/model_cfg.yml +9 -0
  135. floatcsep-0.1.2/tests/artifacts/models/model_h5.hdf5 +0 -0
  136. floatcsep-0.1.2/tests/artifacts/models/qtree/TEAM=N10L11.csv +8090 -0
  137. floatcsep-0.1.2/tests/artifacts/models/qtree/TEAM=N25L11.csv +3503 -0
  138. floatcsep-0.1.2/tests/artifacts/models/td_model/input/args.txt +3 -0
  139. floatcsep-0.1.2/tests/artifacts/models/template/Dockerfile +64 -0
  140. floatcsep-0.1.2/tests/artifacts/models/template/README.md +69 -0
  141. floatcsep-0.1.2/tests/artifacts/models/template/docs/userguide +0 -0
  142. floatcsep-0.1.2/tests/artifacts/models/template/examples/case_3/case3_run +0 -0
  143. floatcsep-0.1.2/tests/artifacts/models/template/examples/case_3/data/case3_catalog +0 -0
  144. floatcsep-0.1.2/tests/artifacts/models/template/forecasts/template_2023-01-01 +0 -0
  145. floatcsep-0.1.2/tests/artifacts/models/template/input/catalog +3 -0
  146. floatcsep-0.1.2/tests/artifacts/models/template/parameters +29 -0
  147. floatcsep-0.1.2/tests/artifacts/models/template/requirements +1 -0
  148. floatcsep-0.1.2/tests/artifacts/models/template/run +12 -0
  149. floatcsep-0.1.2/tests/artifacts/models/template/run_tests +4 -0
  150. floatcsep-0.1.2/tests/artifacts/models/template/setup +2 -0
  151. floatcsep-0.1.2/tests/artifacts/models/template/source/lib_a +0 -0
  152. floatcsep-0.1.2/tests/artifacts/models/template/source/lib_b +0 -0
  153. floatcsep-0.1.2/tests/artifacts/models/template/source/main +0 -0
  154. floatcsep-0.1.2/tests/artifacts/models/template/tests/test_liba +0 -0
  155. floatcsep-0.1.2/tests/artifacts/models/template/tests/test_libb +0 -0
  156. floatcsep-0.1.2/tests/artifacts/models/template/tests/test_main +0 -0
  157. floatcsep-0.1.2/tests/artifacts/models/zenodo_test/datapackage.json +21 -0
  158. floatcsep-0.1.2/tests/artifacts/models/zenodo_test/table.xls +0 -0
  159. floatcsep-0.1.2/tests/artifacts/regions/italy_midpoints +8993 -0
  160. floatcsep-0.1.2/tests/artifacts/regions/mock_region +4 -0
  161. floatcsep-0.1.2/tests/integration/experiment typologies +48 -0
  162. floatcsep-0.1.2/tests/integration/test_data.py +56 -0
  163. floatcsep-0.1.2/tests/integration/test_model_interface.py +95 -0
  164. floatcsep-0.1.2/tests/unit/.coverage +0 -0
  165. floatcsep-0.1.2/tests/unit/test_accessors.py +109 -0
  166. floatcsep-0.1.2/tests/unit/test_evaluation.py +95 -0
  167. floatcsep-0.1.2/tests/unit/test_experiment.py +178 -0
  168. floatcsep-0.1.2/tests/unit/test_model.py +299 -0
  169. floatcsep-0.1.2/tests/unit/test_readers.py +192 -0
  170. floatcsep-0.1.2/tests/unit/test_utils.py +166 -0
@@ -0,0 +1,128 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ software@scec.org.
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series
86
+ of actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or
93
+ permanent ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
+
121
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
+ enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage]: https://www.contributor-covenant.org
125
+
126
+ For answers to common questions about this code of conduct, see the FAQ at
127
+ https://www.contributor-covenant.org/faq. Translations are available at
128
+ https://www.contributor-covenant.org/translations.
@@ -0,0 +1,143 @@
1
+ <!-- omit in toc -->
2
+ # Contributing to floatcsep
3
+
4
+ First off, thanks for taking the time to contribute! ❤️
5
+
6
+ All types of contributions are encouraged and valued. See the [Table of Contents](#table-of-contents) for different ways to help and details about how this project handles them. Please make sure to read the relevant section before making your contribution. It will make it a lot easier for us maintainers and smooth out the experience for all involved. The community looks forward to your contributions. 🎉
7
+
8
+ > And if you like the project, but just don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation, which we would also be very happy about:
9
+ > - Star the project
10
+ > - Refer this project in your project's readme
11
+ > - Mention the project at local meetups and tell your friends/colleagues
12
+
13
+ <!-- omit in toc -->
14
+ ## Table of Contents
15
+
16
+ - [I Have a Question](#i-have-a-question)
17
+ - [I Want To Contribute](#i-want-to-contribute)
18
+ - [Reporting Bugs](#reporting-bugs)
19
+ - [Suggesting Enhancements](#suggesting-enhancements)
20
+ - [Your First Code Contribution](#your-first-code-contribution)
21
+ - [Styleguides](#styleguides)
22
+ - [Commit Messages](#commit-messages)
23
+ - [Join The Project Team](#join-the-project-team)
24
+
25
+
26
+
27
+ ## I Have a Question
28
+
29
+ > If you want to ask a question, we hope that you have alredy read the available [Documentation](https://floatcsep.readthedocs.io).
30
+
31
+ Before you ask a question, it is best to search for existing [Issues](https://github.com/cseptesting/floatcsep/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue.
32
+
33
+ If you then still feel the need to ask a question and need clarification, we recommend the following:
34
+
35
+ - Open an [Issue](https://github.com/cseptesting/floatcsep/issues/new).
36
+ - Provide as much context as you can about what you're running into.
37
+ - Provide project and platform versions (nodejs, npm, etc), depending on what seems relevant.
38
+ - Provide the files/artifacts, or simplified versions of them
39
+
40
+ We will then take care of the issue as soon as possible.
41
+
42
+
43
+ ## I Want To Contribute
44
+
45
+ > ### Legal Notice <!-- omit in toc -->
46
+ > When contributing to this project, you must agree that you have authored 100% of the content, that you have the necessary rights to the content and that the content you contribute may be provided under the project license.
47
+
48
+ ### Reporting Bugs
49
+
50
+ <!-- omit in toc -->
51
+ #### Before Submitting a Bug Report
52
+
53
+ Please complete the following steps in advance to help us fix any potential bug as fast as possible.
54
+
55
+ - Make sure that you are using the latest version (or a tag release).
56
+ - Determine if your bug is really a bug and not an error on your side e.g. using incompatible environment components/versions (Make sure that you have read the [documentation](https://floatcsep.readthedocs.io). If you are looking for support, you might want to check [this section](#i-have-a-question)).
57
+ - To see if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in the [bug tracker](https://github.com/cseptesting/floatcsepissues?q=label%3Abug).
58
+ - Collect information about the bug:
59
+ - Stack trace (Traceback)
60
+ - OS, Platform and Version (Windows, Linux, macOS, x86, ARM)
61
+ - Possibly your input and the expected output
62
+ - Can you reliably reproduce the issue?
63
+
64
+ > You must never report security related issues, vulnerabilities or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead, sensitive bugs must be sent by email to <pciturri@gfz-potsdam.de>.
65
+
66
+ <!-- omit in toc -->
67
+
68
+
69
+ ### Suggesting Enhancements
70
+
71
+ This section guides you through submitting an enhancement suggestion for floatcsep, **including completely new features and minor improvements to existing functionality**. Following these guidelines will help maintainers and the community to understand your suggestion and find related suggestions.
72
+
73
+ #### Before Submitting an Enhancement
74
+
75
+ - Make sure that you are using the latest version.
76
+ - Read the [documentation](https://floatcsep.readthedocs.io) carefully and find out if the functionality is already covered, maybe by an individual configuration.
77
+ - Perform a [search](https://github.com/cseptesting/floatcsep/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
78
+ - Use a **clear and descriptive title** for the issue to identify the suggestion.
79
+ - **Describe the current behavior** and **explain which behavior you expected to see instead** and why. At this point you can also tell which alternatives do not work for you.
80
+ - **Explain why this enhancement would be useful** to most floatcsep users. You may also want to point out the other projects that solved it better and which could serve as inspiration.
81
+
82
+
83
+ ### Your First Code Contribution
84
+
85
+ * Make sure you have an active GitHub account
86
+ * Fork the repo on GitHub. It will now live at `https://github.com/<YOUR_GITHUB_USERNAME>/floatcsep` ([here is some helping info](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/working-with-forks)).
87
+ * Download and install `git`. Check out the git documentaion if you aren't familiar with it.
88
+ * Please follow the [Installation](https://floatcsep.readthedocs.io) instructions for developers. Here is a summarized version.
89
+
90
+ # clone your fork
91
+ git clone https://github.com/<YOUR_GITHUB_USERNAME>/floatcsep.git
92
+ cd floatcsep
93
+ # prepare environment
94
+ conda env create -n floatcsep-dev
95
+ conda activate floatcsep-dev
96
+ conda install -c conda-force pycsep
97
+ # install floatcsep
98
+ pip install -e .[dev]
99
+ # add upstream repository
100
+ git remote add upstream https://github.com/cseptesting/floatcsep.git
101
+
102
+ * Note: use the command `conda deactivate` to go back to your regular environment when you are done working with floatCSEP.
103
+
104
+ You can now do any local changes in your `floatcsep` source code, which you can then `add`, `commit` and `push` to your personal fork.
105
+
106
+ ### Submitting a Pull Request
107
+
108
+ Pull requests are how we use your changes to the code! Please submit them to us! Here's how:
109
+
110
+ 1. Make a new branch. For features/additions base your new branch at `main`.
111
+ 2. Make sure to add tests! Only pull requests for documentation, refactoring, or plotting features do not require a test.
112
+ 3. Also, documentation must accompany new feature requests.
113
+ - Note: We would really appreciate pull requests that help us improve documentation.
114
+ 4. Make sure the tests pass. Run `pytest -v tests/` in the top-level directory of the repo.
115
+ 5. Push your changes to your fork and submit a pull request. Make sure to set the branch to `floatcsep:main`.
116
+ 6. Wait for our review. There may be some suggested changes or improvements. Changes can be made after
117
+ the pull request has been opening by simply adding more commits to your branch.
118
+
119
+ Pull requests can be changed after they are opened, so create a pull request as early as possible.
120
+ This allows us to provide feedback during development and to answer any questions.
121
+
122
+
123
+ Also, if you find floatCSEP to be useful, but don't want to contribute to the code we highly encourage updates to the documentation!
124
+
125
+
126
+
127
+
128
+ ## Additional Resources
129
+ * [Working with Git Forks](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/working-with-forks)
130
+ * [Style Guide](http://google.github.io/styleguide/pyguide.html)
131
+ * [Docs or it doesn’t exist](https://lukeplant.me.uk/blog/posts/docs-or-it-doesnt-exist/)
132
+ * [Quickstart guide for Sphinx](https://www.sphinx-doc.org/en/master/usage/quickstart.html)
133
+ * [Pep8 style guide](https://pep8.org/)
134
+ * Performance Tips:
135
+ * [Python](https://wiki.python.org/moin/PythonSpeed/PerformanceTips)
136
+ * [NumPy and ctypes](https://scipy-cookbook.readthedocs.io/)
137
+ * [SciPy](https://www.scipy.org/docs.html)
138
+ * [NumPy Book](http://csc.ucdavis.edu/~chaos/courses/nlp/Software/NumPyBook.pdf)
139
+
140
+
141
+
142
+ ## Attribution
143
+ This guide is based on the **contributing-gen**. [Make your own](https://github.com/bttger/contributing-gen)!
@@ -0,0 +1,10 @@
1
+ Developer and scientific team:
2
+
3
+ * Pablo Iturrieta - Deutsches GeoForschungsZentrum (GFZ), Germany - pciturri@gfz-potsdam.de
4
+ * William Savran - University of Nevada, USA
5
+ * Asim Khawaja - GFZ, Germany
6
+ * Toño Bayona - University of Bristol, United Kingdom
7
+ * Danijel Schorlemmer - GFZ, Germany
8
+ * Fabio Silva - Southern California Earthquake Center (SCEC), USA
9
+ * Phil Maechling - SCEC, USA
10
+ * Max Werner - University of Bristol, United Kingdom
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2022, CSEP Group
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ 3. Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,24 @@
1
+ include README.md
2
+ include CODE_OF_CONDUCT.md
3
+ include requirements.txt
4
+ include requirements_dev.txt
5
+ include setup.py
6
+ include setup.cfg
7
+ include pyproject.toml
8
+ include LICENSE
9
+ include CREDITS.md
10
+ include CONTRIBUTING.md
11
+
12
+ graft floatcsep
13
+ graft tests
14
+ graft docs
15
+ prune docs/_build
16
+ prune docs/referenced/generated
17
+ prune docs/tutorials/
18
+
19
+ global-exclude .git*
20
+ global-exclude *.pyc
21
+ global-exclude *.html
22
+ global-exclude *.so
23
+ global-exclude *~
24
+ global-exclude .DS_Store
@@ -0,0 +1,111 @@
1
+ Metadata-Version: 2.1
2
+ Name: floatcsep
3
+ Version: 0.1.2
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
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.8
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Requires-Python: >=3.8
19
+ Description-Content-Type: text/markdown
20
+ Provides-Extra: dev
21
+ License-File: LICENSE
22
+
23
+ # CSEP Floating Experiments
24
+
25
+ <img src="https://i.postimg.cc/6p5krRnB/float-CSEP-Logo-CMYK.png" width="320">
26
+
27
+ **An application to deploy reproducible and prospective experiments of earthquake forecasting**
28
+
29
+ <p left>
30
+
31
+ <a href='https://floatcsep.readthedocs.io/en/latest/?badge=latest'>
32
+ <img src='https://readthedocs.org/projects/floatcsep/badge/?version=latest' alt='Documentation Status' />
33
+ </a>
34
+ <a href='https://github.com/cseptesting/floatcsep/actions/workflows/build-test.yml'>
35
+ <img src='https://github.com/cseptesting/floatcsep/actions/workflows/build-test.yml/badge.svg' alt='Documentation Status' />
36
+ </a>
37
+ <a href="https://codecov.io/gh/cseptesting/floatcsep" >
38
+ <img src="https://codecov.io/gh/cseptesting/floatcsep/branch/main/graph/badge.svg?token=LI4RSDOKA1"/>
39
+ </a>
40
+ <a href="https://doi.org/10.5281/zenodo.7953817"><img src="https://zenodo.org/badge/DOI/10.5281/zenodo.7953817.svg" alt="DOI"></a>
41
+ </p>
42
+
43
+ * Set up a testing **experiment** for your earthquake forecasts using authoritative data sources and benchmarks.
44
+ * **Encapsulate** the complete experiment's definition and rules in a couple of lines.
45
+ * **Reproduce**, **reuse**, and **share** forecasting experiments from you, other researchers and institutions.
46
+
47
+ # Table of Contents
48
+
49
+ * [Installation](#installing-floatcsep)
50
+ * [Documentation](https://floatcsep.readthedocs.io)
51
+ * [Run and explore](#run-an-experiment)
52
+ * [Useful Links](#important-links)
53
+ * [Roadmap/Issues](#roadmap-and-known-issues)
54
+ * [Contributing](#contributing)
55
+ * [License](#license)
56
+
57
+
58
+ # Installing floatCSEP
59
+
60
+ The core of `floatCSEP` is built around the `pyCSEP` package (https://github.com/sceccode/pycsep), which itself contains the core dependencies.
61
+
62
+ The simplest way to install `floatCSEP`, is by creating a `conda` environment (https://conda.io - checkout Anaconda or Miniconda) and install `pyCSEP` from `conda-forge`
63
+
64
+ ```
65
+ conda env create -n $NAME
66
+ conda activate $NAME
67
+ conda install -c conda-forge pycsep
68
+ ```
69
+
70
+ Clone and install the floatCSEP source code using `pip`
71
+ ```
72
+ git clone https://github.com/cseptesting/floatcsep
73
+ cd floatcsep
74
+ pip install .
75
+ ```
76
+
77
+ Please read the [Installation](https://floatcsep.readthedocs.io/en/latest/intro/installation.html) documentation for detailed instructions and additional installation methods.
78
+
79
+ # Run an Experiment
80
+
81
+ Using the command terminal, navigate to an example experiment in `floatcsep/examples/` and type
82
+ ```
83
+ floatcsep run config.yml
84
+ ```
85
+ A runtime directory will be created in a `results` folder. The experiment results can be visualized in `results/report.md`. **Check out the experiment, models and tests definition in the examples**!
86
+
87
+ # Important Links
88
+
89
+ * [Documentation](https://floatcsep.readthedocs.io/en/latest/)
90
+ * [CSEP Website](https://cseptesting.org)
91
+ * `pyCSEP` [Github](https://github.com/sceccode/pycsep)
92
+ * `pyCSEP` [Documentation](https://docs.cseptesting.org/)
93
+
94
+ # Roadmap and Known Issues
95
+
96
+ * Add functionality to compare original results and reproduced results
97
+ * Add registry to filetrees (e.g. hash/byte count) for a proper experiment re-instantiation
98
+ * Add report customization
99
+ * Fix the hooks properly (user code) to be inserted into plotting/reporting functionalities.
100
+ * Add multiple logging/levels
101
+ * Create tool to check a TD model's interface with ``fecsep``
102
+ * Define a dependency strategy to ensure experiments' reproducibility.
103
+ * Publish in `pypi`/`conda` and Zenodo
104
+
105
+ # Contributing
106
+
107
+ We encourage all types of contributions, from reporting bugs, suggesting enhancements, adding new features and more. Please refer to the [Contribution Guidelines](https://github.com/cseptesting/floatcsep/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/cseptesting/floatcsep/blob/main/CODE_OF_CONDUCT.md) for more information
108
+
109
+ # License
110
+
111
+ The `floatCSEP` (as well as `pyCSEP`) software is distributed under the BSD 3-Clause open-source license. Please see the [license file](https://github.com/cseptesting/floatcsep/blob/main/LICENSE) for more information.
@@ -0,0 +1,89 @@
1
+ # CSEP Floating Experiments
2
+
3
+ <img src="https://i.postimg.cc/6p5krRnB/float-CSEP-Logo-CMYK.png" width="320">
4
+
5
+ **An application to deploy reproducible and prospective experiments of earthquake forecasting**
6
+
7
+ <p left>
8
+
9
+ <a href='https://floatcsep.readthedocs.io/en/latest/?badge=latest'>
10
+ <img src='https://readthedocs.org/projects/floatcsep/badge/?version=latest' alt='Documentation Status' />
11
+ </a>
12
+ <a href='https://github.com/cseptesting/floatcsep/actions/workflows/build-test.yml'>
13
+ <img src='https://github.com/cseptesting/floatcsep/actions/workflows/build-test.yml/badge.svg' alt='Documentation Status' />
14
+ </a>
15
+ <a href="https://codecov.io/gh/cseptesting/floatcsep" >
16
+ <img src="https://codecov.io/gh/cseptesting/floatcsep/branch/main/graph/badge.svg?token=LI4RSDOKA1"/>
17
+ </a>
18
+ <a href="https://doi.org/10.5281/zenodo.7953817"><img src="https://zenodo.org/badge/DOI/10.5281/zenodo.7953817.svg" alt="DOI"></a>
19
+ </p>
20
+
21
+ * Set up a testing **experiment** for your earthquake forecasts using authoritative data sources and benchmarks.
22
+ * **Encapsulate** the complete experiment's definition and rules in a couple of lines.
23
+ * **Reproduce**, **reuse**, and **share** forecasting experiments from you, other researchers and institutions.
24
+
25
+ # Table of Contents
26
+
27
+ * [Installation](#installing-floatcsep)
28
+ * [Documentation](https://floatcsep.readthedocs.io)
29
+ * [Run and explore](#run-an-experiment)
30
+ * [Useful Links](#important-links)
31
+ * [Roadmap/Issues](#roadmap-and-known-issues)
32
+ * [Contributing](#contributing)
33
+ * [License](#license)
34
+
35
+
36
+ # Installing floatCSEP
37
+
38
+ The core of `floatCSEP` is built around the `pyCSEP` package (https://github.com/sceccode/pycsep), which itself contains the core dependencies.
39
+
40
+ The simplest way to install `floatCSEP`, is by creating a `conda` environment (https://conda.io - checkout Anaconda or Miniconda) and install `pyCSEP` from `conda-forge`
41
+
42
+ ```
43
+ conda env create -n $NAME
44
+ conda activate $NAME
45
+ conda install -c conda-forge pycsep
46
+ ```
47
+
48
+ Clone and install the floatCSEP source code using `pip`
49
+ ```
50
+ git clone https://github.com/cseptesting/floatcsep
51
+ cd floatcsep
52
+ pip install .
53
+ ```
54
+
55
+ Please read the [Installation](https://floatcsep.readthedocs.io/en/latest/intro/installation.html) documentation for detailed instructions and additional installation methods.
56
+
57
+ # Run an Experiment
58
+
59
+ Using the command terminal, navigate to an example experiment in `floatcsep/examples/` and type
60
+ ```
61
+ floatcsep run config.yml
62
+ ```
63
+ A runtime directory will be created in a `results` folder. The experiment results can be visualized in `results/report.md`. **Check out the experiment, models and tests definition in the examples**!
64
+
65
+ # Important Links
66
+
67
+ * [Documentation](https://floatcsep.readthedocs.io/en/latest/)
68
+ * [CSEP Website](https://cseptesting.org)
69
+ * `pyCSEP` [Github](https://github.com/sceccode/pycsep)
70
+ * `pyCSEP` [Documentation](https://docs.cseptesting.org/)
71
+
72
+ # Roadmap and Known Issues
73
+
74
+ * Add functionality to compare original results and reproduced results
75
+ * Add registry to filetrees (e.g. hash/byte count) for a proper experiment re-instantiation
76
+ * Add report customization
77
+ * Fix the hooks properly (user code) to be inserted into plotting/reporting functionalities.
78
+ * Add multiple logging/levels
79
+ * Create tool to check a TD model's interface with ``fecsep``
80
+ * Define a dependency strategy to ensure experiments' reproducibility.
81
+ * Publish in `pypi`/`conda` and Zenodo
82
+
83
+ # Contributing
84
+
85
+ We encourage all types of contributions, from reporting bugs, suggesting enhancements, adding new features and more. Please refer to the [Contribution Guidelines](https://github.com/cseptesting/floatcsep/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/cseptesting/floatcsep/blob/main/CODE_OF_CONDUCT.md) for more information
86
+
87
+ # License
88
+
89
+ The `floatCSEP` (as well as `pyCSEP`) software is distributed under the BSD 3-Clause open-source license. Please see the [license file](https://github.com/cseptesting/floatcsep/blob/main/LICENSE) for more information.
@@ -0,0 +1,28 @@
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line.
5
+ SPHINXOPTS =
6
+ SPHINXBUILD = sphinx-build
7
+ SPHINXPROJ = floatcsep
8
+ SOURCEDIR = .
9
+ BUILDDIR = _build
10
+
11
+ # Put it first so that "make" without argument is like "make help".
12
+ help:
13
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
+
15
+ livehtml:
16
+ sphinx-autobuild -b html $(SOURCEDIR) $(ALLSPHINXOPTS) $(BUILDDIR)/html
17
+
18
+ clean:
19
+ rm -rf $(BUILDDIR)/*
20
+ rm -rf reference/generated/
21
+ rm -rf auto_examples/
22
+
23
+ .PHONY: help Makefile
24
+
25
+ # Catch-all target: route all unknown targets to Sphinx using the new
26
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
27
+ %: Makefile
28
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)