pygmm 0.0.0__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 (130) hide show
  1. pygmm-0.0.0/AUTHORS.md +12 -0
  2. pygmm-0.0.0/CONTRIBUTING.md +124 -0
  3. pygmm-0.0.0/HISTORY.md +60 -0
  4. pygmm-0.0.0/LICENSE +21 -0
  5. pygmm-0.0.0/MANIFEST.in +18 -0
  6. pygmm-0.0.0/Makefile +81 -0
  7. pygmm-0.0.0/PKG-INFO +76 -0
  8. pygmm-0.0.0/README.md +60 -0
  9. pygmm-0.0.0/docs/Makefile +188 -0
  10. pygmm-0.0.0/docs/_static/.gitkeep +0 -0
  11. pygmm-0.0.0/docs/authors.rst +1 -0
  12. pygmm-0.0.0/docs/conf.py +275 -0
  13. pygmm-0.0.0/docs/contributing.rst +1 -0
  14. pygmm-0.0.0/docs/history.rst +1 -0
  15. pygmm-0.0.0/docs/index.rst +23 -0
  16. pygmm-0.0.0/docs/installation.rst +55 -0
  17. pygmm-0.0.0/docs/make.bat +242 -0
  18. pygmm-0.0.0/docs/models.rst +130 -0
  19. pygmm-0.0.0/docs/modules.rst +7 -0
  20. pygmm-0.0.0/docs/pygmm.rst +174 -0
  21. pygmm-0.0.0/docs/readme.rst +1 -0
  22. pygmm-0.0.0/docs/references.bib +227 -0
  23. pygmm-0.0.0/docs/requirements.txt +6 -0
  24. pygmm-0.0.0/docs/usage.rst +9 -0
  25. pygmm-0.0.0/docs/zreferences.rst +10 -0
  26. pygmm-0.0.0/examples/example-1.py +25 -0
  27. pygmm-0.0.0/examples/example-ba19.py +28 -0
  28. pygmm-0.0.0/pyproject.toml +86 -0
  29. pygmm-0.0.0/requirements.txt +4 -0
  30. pygmm-0.0.0/requirements_dev.txt +14 -0
  31. pygmm-0.0.0/requirements_rtfd.txt +7 -0
  32. pygmm-0.0.0/setup.cfg +4 -0
  33. pygmm-0.0.0/setup.py +5 -0
  34. pygmm-0.0.0/src/pyGMM.egg-info/PKG-INFO +76 -0
  35. pygmm-0.0.0/src/pyGMM.egg-info/SOURCES.txt +128 -0
  36. pygmm-0.0.0/src/pyGMM.egg-info/dependency_links.txt +1 -0
  37. pygmm-0.0.0/src/pyGMM.egg-info/requires.txt +3 -0
  38. pygmm-0.0.0/src/pyGMM.egg-info/top_level.txt +1 -0
  39. pygmm-0.0.0/src/pygmm/__init__.py +87 -0
  40. pygmm-0.0.0/src/pygmm/abrahamson_bhasin_2020.py +158 -0
  41. pygmm-0.0.0/src/pygmm/abrahamson_gregor_addo_2016.py +248 -0
  42. pygmm-0.0.0/src/pygmm/abrahamson_silva_1996.py +121 -0
  43. pygmm-0.0.0/src/pygmm/abrahamson_silva_kamai_2014.py +411 -0
  44. pygmm-0.0.0/src/pygmm/afshari_stewart_2016.py +157 -0
  45. pygmm-0.0.0/src/pygmm/akkar_sandikkaya_bommer_2014.py +101 -0
  46. pygmm-0.0.0/src/pygmm/atkinson_boore_2006.py +168 -0
  47. pygmm-0.0.0/src/pygmm/baker_jayaram_2008.py +97 -0
  48. pygmm-0.0.0/src/pygmm/bayless_abrahamson_2018.py +91 -0
  49. pygmm-0.0.0/src/pygmm/bayless_abrahamson_2019.py +199 -0
  50. pygmm-0.0.0/src/pygmm/boore_stewart_seyhan_atkinson_2014.py +298 -0
  51. pygmm-0.0.0/src/pygmm/campbell_2003.py +96 -0
  52. pygmm-0.0.0/src/pygmm/campbell_bozorgnia_2014.py +473 -0
  53. pygmm-0.0.0/src/pygmm/chiou_youngs_2014.py +341 -0
  54. pygmm-0.0.0/src/pygmm/coppersmith_bommer_2014.py +113 -0
  55. pygmm-0.0.0/src/pygmm/data/abrahamson_gregor_addo_2016.csv +25 -0
  56. pygmm-0.0.0/src/pygmm/data/abrahamson_silva_kamai_2014.csv +27 -0
  57. pygmm-0.0.0/src/pygmm/data/akkar-sandikkaya-bommer-2014-dist_epi.csv +67 -0
  58. pygmm-0.0.0/src/pygmm/data/akkar-sandikkaya-bommer-2014-dist_hyp.csv +67 -0
  59. pygmm-0.0.0/src/pygmm/data/akkar-sandikkaya-bommer-2014-dist_jb.csv +67 -0
  60. pygmm-0.0.0/src/pygmm/data/atkinson_boore_2006-bc.csv +30 -0
  61. pygmm-0.0.0/src/pygmm/data/atkinson_boore_2006-rock.csv +30 -0
  62. pygmm-0.0.0/src/pygmm/data/atkinson_boore_2006-sf.csv +29 -0
  63. pygmm-0.0.0/src/pygmm/data/atkinson_boore_2006-site.csv +27 -0
  64. pygmm-0.0.0/src/pygmm/data/bayless_abrahamson_2018.csv +243 -0
  65. pygmm-0.0.0/src/pygmm/data/bayless_abrahamson_2019.csv +304 -0
  66. pygmm-0.0.0/src/pygmm/data/boore_stewart_seyhan_atkinson-2014.csv +110 -0
  67. pygmm-0.0.0/src/pygmm/data/campbell_2003.csv +18 -0
  68. pygmm-0.0.0/src/pygmm/data/campbell_bozorgnia_2014.csv +26 -0
  69. pygmm-0.0.0/src/pygmm/data/chiou_youngs_2014.csv +29 -0
  70. pygmm-0.0.0/src/pygmm/data/coppersmith_bommer_2014.csv +16 -0
  71. pygmm-0.0.0/src/pygmm/data/derras_bard_cotton_2014.json +192 -0
  72. pygmm-0.0.0/src/pygmm/data/gulerce_abrahamson_2011-coefficients.csv +27 -0
  73. pygmm-0.0.0/src/pygmm/data/gulerce_abrahamson_2011-correl-between.csv +18 -0
  74. pygmm-0.0.0/src/pygmm/data/gulerce_abrahamson_2011-correl-within.csv +18 -0
  75. pygmm-0.0.0/src/pygmm/data/idriss_2014-large.csv +25 -0
  76. pygmm-0.0.0/src/pygmm/data/idriss_2014-small.csv +25 -0
  77. pygmm-0.0.0/src/pygmm/data/pezeshk_zandieh_tavakoli_2011.csv +25 -0
  78. pygmm-0.0.0/src/pygmm/data/tavakoli_pezeshk_2005.csv +16 -0
  79. pygmm-0.0.0/src/pygmm/derras_bard_cotton_2014.py +80 -0
  80. pygmm-0.0.0/src/pygmm/gulerce_abrahamson_2011.py +186 -0
  81. pygmm-0.0.0/src/pygmm/hermkes_kuehn_riggelsen_2014.py +100 -0
  82. pygmm-0.0.0/src/pygmm/idriss_2014.py +94 -0
  83. pygmm-0.0.0/src/pygmm/kempton_stewart_2006.py +86 -0
  84. pygmm-0.0.0/src/pygmm/kishida_2017.py +94 -0
  85. pygmm-0.0.0/src/pygmm/model.py +552 -0
  86. pygmm-0.0.0/src/pygmm/pezeshk_zandieh_tavakoli_2011.py +94 -0
  87. pygmm-0.0.0/src/pygmm/tavakoli_pezeshk_2005.py +100 -0
  88. pygmm-0.0.0/src/pygmm/tools.py +1 -0
  89. pygmm-0.0.0/src/pygmm/types.py +7 -0
  90. pygmm-0.0.0/tests/__init__.py +15 -0
  91. pygmm-0.0.0/tests/conftest.py +21 -0
  92. pygmm-0.0.0/tests/data/BA19-EAS-Figure8-1000.csv +309 -0
  93. pygmm-0.0.0/tests/data/BA19-EAS-Figure8-500.csv +309 -0
  94. pygmm-0.0.0/tests/data/abrahamson_gregor_addo_2016.json.gz +0 -0
  95. pygmm-0.0.0/tests/data/as96.json +38 -0
  96. pygmm-0.0.0/tests/data/as96_ref.wks +0 -0
  97. pygmm-0.0.0/tests/data/asb14_tests.json.gz +0 -0
  98. pygmm-0.0.0/tests/data/baker_jayaram_2008-figure_4.csv +48 -0
  99. pygmm-0.0.0/tests/data/baker_jayaram_2008-figure_4.dig +191 -0
  100. pygmm-0.0.0/tests/data/baker_jayaram_2008-figure_4.png +0 -0
  101. pygmm-0.0.0/tests/data/baker_jayaram_2008.json +70 -0
  102. pygmm-0.0.0/tests/data/coppersmith_bommer_2014.json.gz +0 -0
  103. pygmm-0.0.0/tests/data/dbc14_tests.json.gz +0 -0
  104. pygmm-0.0.0/tests/data/gulerce_abrahamson_2011.json.gz +0 -0
  105. pygmm-0.0.0/tests/data/kishida_2017.json +71 -0
  106. pygmm-0.0.0/tests/data/ngaw2_tests.json.gz +0 -0
  107. pygmm-0.0.0/tests/test_abrahamson_gregor_addo_2016.py +25 -0
  108. pygmm-0.0.0/tests/test_abrahamson_silva_1996.py +27 -0
  109. pygmm-0.0.0/tests/test_abrahamson_silva_kamai_2014.py +21 -0
  110. pygmm-0.0.0/tests/test_afshari_stewart_2016.py +14 -0
  111. pygmm-0.0.0/tests/test_akkar_sandikkaya_bommer_2014.py +50 -0
  112. pygmm-0.0.0/tests/test_baker_jayaram_2008.py +46 -0
  113. pygmm-0.0.0/tests/test_bayless_abrahamson_2019.py +53 -0
  114. pygmm-0.0.0/tests/test_campbell_bozorgnia_2014.py +12 -0
  115. pygmm-0.0.0/tests/test_chiou_youngs_2014.py +18 -0
  116. pygmm-0.0.0/tests/test_coppersmith_bommer_2014.py +25 -0
  117. pygmm-0.0.0/tests/test_create_plots.py +84 -0
  118. pygmm-0.0.0/tests/test_derras_bard_cotton_2014.py +125 -0
  119. pygmm-0.0.0/tests/test_gulerce_abrahamson_2011.py +31 -0
  120. pygmm-0.0.0/tests/test_hermkes_kuehn_riggelsen_2013.py +113 -0
  121. pygmm-0.0.0/tests/test_kempton_stewart_2006.py +18 -0
  122. pygmm-0.0.0/tests/test_kishida_2017.py +34 -0
  123. pygmm-0.0.0/tests/test_model.py +29 -0
  124. pygmm-0.0.0/tests/test_nga_west2_models.py +73 -0
  125. pygmm-0.0.0/tests/test_parameter.py +32 -0
  126. pygmm-0.0.0/travis_pypi_setup.py +118 -0
  127. pygmm-0.0.0/utils/create_asb14_test_cases.py +76 -0
  128. pygmm-0.0.0/utils/create_dbc14_test_cases.py +71 -0
  129. pygmm-0.0.0/utils/create_hkc14_data.py +53 -0
  130. pygmm-0.0.0/utils/create_nga_west2_test_cases.py +258 -0
pygmm-0.0.0/AUTHORS.md ADDED
@@ -0,0 +1,12 @@
1
+ ---
2
+ title: Credits
3
+ ---
4
+
5
+ # Development Lead
6
+
7
+ - Albert Kottke \<<albert.kottke@gmail.com>\>
8
+
9
+ # Contributors
10
+
11
+ - Greg Lavrentiadis
12
+ - Artie Rodgers
@@ -0,0 +1,124 @@
1
+ ---
2
+ title: Contributing
3
+ ---
4
+
5
+ Contributions are welcome, and they are greatly appreciated! Every
6
+ little bit helps, and credit will always be given.
7
+
8
+ You can contribute in many ways:
9
+
10
+ # Types of Contributions
11
+
12
+ ## Report Bugs
13
+
14
+ Report bugs at <https://github.com/arkottke/pygmm/issues>.
15
+
16
+ If you are reporting a bug, please include:
17
+
18
+ - Your operating system name and version.
19
+ - Any details about your local setup that might be helpful in
20
+ troubleshooting.
21
+ - Detailed steps to reproduce the bug.
22
+
23
+ ## Fix Bugs
24
+
25
+ Look through the GitHub issues for bugs. Anything tagged with \"bug\" is
26
+ open to whoever wants to implement it.
27
+
28
+ ## Implement Features
29
+
30
+ Look through the GitHub issues for features. Anything tagged with
31
+ \"feature\" is open to whoever wants to implement it.
32
+
33
+ ## Write Documentation
34
+
35
+ [pygmm]{.title-ref} could always use more documentation, whether as part
36
+ of the official\`pygmm\` docs, in docstrings, or even on the web in blog
37
+ posts, articles, and such.
38
+
39
+ ## Submit Feedback
40
+
41
+ The best way to send feedback is to file an issue at
42
+ <https://github.com/arkottke/pygmm/issues>.
43
+
44
+ If you are proposing a feature:
45
+
46
+ - Explain in detail how it would work.
47
+ - Keep the scope as narrow as possible, to make it easier to
48
+ implement.
49
+ - Remember that this is a volunteer-driven project, and that
50
+ contributions are welcome :)
51
+
52
+ # Get Started!
53
+
54
+ Ready to contribute? Here\'s how to set up [pygmm]{.title-ref} for local
55
+ development.
56
+
57
+ 1. Fork the [pygmm]{.title-ref} repo on GitHub.
58
+
59
+ 2. Clone your fork locally:
60
+
61
+ ``` shell
62
+ $ git clone git@github.com:your_name_here/pygmm.git
63
+ ```
64
+
65
+ 3. Install your local copy into a virtualenv. Assuming you have
66
+ virtualenvwrapper installed, this is how you set up your fork for
67
+ local development:
68
+
69
+ ``` shell
70
+ $ mkvirtualenv pygmm
71
+ $ cd pygmm/
72
+ $ python setup.py develop
73
+ ```
74
+
75
+ 4. Create a branch for local development:
76
+
77
+ ``` shell
78
+ $ git checkout -b name-of-your-bugfix-or-feature
79
+ ```
80
+
81
+ Now you can make your changes locally.
82
+
83
+ 5. When you\'re done making changes, check that your changes pass
84
+ flake8 and the tests, including testing other Python versions with
85
+ tox:
86
+
87
+ ``` shell
88
+ $ flake8 pygmm tests
89
+ $ python setup.py test
90
+ $ tox
91
+ ```
92
+
93
+ To get flake8 and tox, just pip install them into your virtualenv.
94
+
95
+ 6. Commit your changes and push your branch to GitHub:
96
+
97
+ ``` shell
98
+ $ git add .
99
+ $ git commit -m "Your detailed description of your changes."
100
+ $ git push origin name-of-your-bugfix-or-feature
101
+ ```
102
+
103
+ 7. Submit a pull request through the GitHub website.
104
+
105
+ # Pull Request Guidelines
106
+
107
+ Before you submit a pull request, check that it meets these guidelines:
108
+
109
+ 1. The pull request should include tests.
110
+ 2. If the pull request adds functionality, the docs should be updated.
111
+ Put your new functionality into a function with a docstring, and add
112
+ the feature to the list in README.rst.
113
+ 3. The pull request should work for Python 2.6, 2.7, 3.3, 3.4 and 3.5,
114
+ and for PyPy. Check
115
+ <https://travis-ci.org/arkottke/pygmm/pull_requests> and make sure
116
+ that the tests pass for all supported Python versions.
117
+
118
+ # Tips
119
+
120
+ To run a subset of tests:
121
+
122
+ ``` shell
123
+ $ python -m unittest tests.test_pygmm
124
+ ```
pygmm-0.0.0/HISTORY.md ADDED
@@ -0,0 +1,60 @@
1
+ ---
2
+ title: History
3
+ ---
4
+
5
+ # 0.7.1 (2025-03-05)
6
+
7
+ - Added compatibility with numpy 2.0
8
+
9
+ # 0.7.0 (2024-04-24)
10
+
11
+ - Added: Abrahamson and Bhasin (2020)
12
+ - Changed to Hatch build system
13
+
14
+ # 0.6.6 (2023-12-11)
15
+
16
+ - Added: Return tau and phi in the standard deviation calculations
17
+
18
+ # 0.6.5 (2022-09-16)
19
+
20
+ - Added: Afshari and Stewart (2016) duration model
21
+ - Added: Kempton and Stewart (2006) duration model
22
+
23
+ # 0.6.4 (2022-01-24)
24
+
25
+ - Added: Bayless and Abrahamson (2019)
26
+
27
+ # 0.6.3 (2021-12-08)
28
+
29
+ - Fixed: error in ASK14 on a7 term
30
+
31
+ # 0.6.2 (2021-10-19)
32
+
33
+ - Changed: Move site amplification to static functions on some GMPEs
34
+
35
+ # 0.6.1 (2020-06-03)
36
+
37
+ - Added Coppersmith & Bommer (2014) model for Hanford
38
+ - Factored tests
39
+
40
+ # 0.6.0 (2019-08-12)
41
+
42
+ - Added Abrahamson, Gregor, Addo (2014)
43
+ - Added Abrahamson & Gulerce (2011)
44
+ - Added conditional mean spectra models.
45
+ - Added Scenario objects.
46
+ - Added typing for all classes.
47
+
48
+ # 0.4.0 (2016-04-08)
49
+
50
+ - Added Hermkes et al. (2014).
51
+ - Improved documentation.
52
+ - Added Baker & Jayaram (2008), Kishida (2017)
53
+
54
+ # 0.3.2 (2016-03-30) {#section-1}
55
+
56
+ - Nothing changed yet.
57
+
58
+ # 0.3.1 (2016-03-30) {#section-2}
59
+
60
+ - First release on PyPI.
pygmm-0.0.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Albert Kottke
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,18 @@
1
+ include AUTHORS.md
2
+ include CONTRIBUTING.md
3
+ include HISTORY.md
4
+ include LICENSE
5
+ include README.md
6
+ include *.py
7
+ include *.txt
8
+ include Makefile
9
+
10
+ recursive-exclude * __pycache__
11
+ recursive-exclude * *.py[co]
12
+
13
+ recursive-include tests *
14
+ recursive-include examples *.py
15
+ recursive-include src *.csv
16
+ recursive-include src *.json
17
+ recursive-include utils *.py
18
+ recursive-include docs *.rst conf.py Makefile make.bat *.bib *.txt *.gitkeep
pygmm-0.0.0/Makefile ADDED
@@ -0,0 +1,81 @@
1
+ .PHONY: clean-pyc clean-build docs clean
2
+ define BROWSER_PYSCRIPT
3
+ import os, webbrowser, sys
4
+ try:
5
+ from urllib import pathname2url
6
+ except:
7
+ from urllib.request import pathname2url
8
+
9
+ webbrowser.open("file://" + pathname2url(os.path.abspath(sys.argv[1])))
10
+ endef
11
+ export BROWSER_PYSCRIPT
12
+ BROWSER := python -c "$$BROWSER_PYSCRIPT"
13
+
14
+ help:
15
+ @echo "clean - remove all build, test, coverage and Python artifacts"
16
+ @echo "clean-build - remove build artifacts"
17
+ @echo "clean-pyc - remove Python file artifacts"
18
+ @echo "clean-test - remove test and coverage artifacts"
19
+ @echo "lint - check style with flake8"
20
+ @echo "test - run tests quickly with the default Python"
21
+ @echo "test-all - run tests on every Python version with tox"
22
+ @echo "coverage - check code coverage quickly with the default Python"
23
+ @echo "docs - generate Sphinx HTML documentation, including API docs"
24
+ @echo "release - package and upload a release"
25
+ @echo "dist - package"
26
+ @echo "install - install the package to the active Python's site-packages"
27
+
28
+ clean: clean-build clean-pyc clean-test
29
+
30
+ clean-build:
31
+ rm -fr build/
32
+ rm -fr dist/
33
+ rm -fr .eggs/
34
+ find . -name '*.egg-info' -exec rm -fr {} +
35
+ find . -name '*.egg' -exec rm -f {} +
36
+
37
+ clean-pyc:
38
+ find . -name '*.pyc' -exec rm -f {} +
39
+ find . -name '*.pyo' -exec rm -f {} +
40
+ find . -name '*~' -exec rm -f {} +
41
+ find . -name '__pycache__' -exec rm -fr {} +
42
+
43
+ clean-test:
44
+ rm -fr .tox/
45
+ rm -f .coverage
46
+ rm -fr htmlcov/
47
+
48
+ lint:
49
+ flake8 pygmm tests
50
+
51
+ test:
52
+ pytest --cov-config=pyproject.toml --cov=pkg --cov=tests
53
+
54
+ coverage:
55
+ coverage run --source pygmm setup.py test
56
+ coverage report -m
57
+ coverage html
58
+ $(BROWSER) htmlcov/index.html
59
+
60
+ docs:
61
+ rm -f docs/pygmm.rst
62
+ rm -f docs/modules.rst
63
+ sphinx-apidoc -o docs/ pygmm
64
+ $(MAKE) -C docs clean
65
+ $(MAKE) -C docs html
66
+ $(BROWSER) docs/_build/html/index.html
67
+
68
+ servedocs: docs
69
+ watchmedo shell-command -p '*.rst' -c '$(MAKE) -C docs html' -R -D .
70
+
71
+ release: clean
72
+ python setup.py sdist upload
73
+ python setup.py bdist_wheel upload
74
+
75
+ dist: clean
76
+ python setup.py sdist
77
+ python setup.py bdist_wheel
78
+ ls -l dist
79
+
80
+ install: clean
81
+ python setup.py install
pygmm-0.0.0/PKG-INFO ADDED
@@ -0,0 +1,76 @@
1
+ Metadata-Version: 2.2
2
+ Name: pyGMM
3
+ Version: 0.0.0
4
+ Summary: Ground motion models implemented in Python.
5
+ Author-email: Albert Kottke <albert.kottke@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/arkottke/pygmm
8
+ Project-URL: Documentation, https://pygmm.readthedocs.io
9
+ Requires-Python: >=3.8
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ License-File: AUTHORS.md
13
+ Requires-Dist: matplotlib
14
+ Requires-Dist: numpy
15
+ Requires-Dist: scipy
16
+
17
+ # pyGMM
18
+
19
+ [![PyPi Cheese
20
+ Shop](https://img.shields.io/pypi/v/pygmm.svg)](https://pypi.org/project/pygmm/)
21
+ [![Build
22
+ Status](https://github.com/arkottke/pygmm/actions/workflows/python-app.yml/badge.svg)](https://github.com/arkottke/pygmm/actions/workflows/python-app.yml)
23
+ [![Code
24
+ Quality](https://api.codacy.com/project/badge/Grade/abc9878c890143c8b590e6f3602056b7)](https://app.codacy.com/gh/arkottke/pygmm/dashboard)
25
+ [![Test
26
+ Coverage](https://api.codacy.com/project/badge/Coverage/abc9878c890143c8b590e6f3602056b7)](https://app.codacy.com/gh/arkottke/pygmm/dashboard)
27
+ ![License](https://img.shields.io/badge/license-MIT-blue.svg)
28
+ [![DOI](https://zenodo.org/badge/53176693.svg)](https://zenodo.org/badge/latestdoi/53176693)
29
+
30
+ Ground motion models implemented in Python.
31
+
32
+ I have recently learned that additional ground motion models have been
33
+ implemented through GEM\'s OpenQuake
34
+ [Hazardlib](https://github.com/gem/oq-hazardlib), which I recommend
35
+ checking out.
36
+
37
+ ## Features
38
+
39
+ Models currently supported:
40
+
41
+ - Akkar, Sandikkaya, & Bommer (2014) with unit tests
42
+ - Atkinson & Boore (2006)
43
+ - Abrahamson, Silva, & Kamai (2014) with unit tests
44
+ - Abrahamson, Gregor, & Addo (2016) with unit tests
45
+ - Boore, Stewart, Seyhan, & Atkinson (2014) with unit tests
46
+ - Campbell (2003)
47
+ - Campbell & Bozorgnia (2014) with unit tests
48
+ - Chiou & Youngs (2014) with unit tests
49
+ - Derras, Bard & Cotton (2013) with unit tests
50
+ - Idriss (2014) with unit tests
51
+ - Pezeshk, Zandieh, & Tavakoli (2001)
52
+ - Tavakoli & Pezeshk (2005)
53
+
54
+ Conditional spectra models:
55
+
56
+ - Baker & Jayaram (2008) with unit tests
57
+ - Kishida (2017) with unit tests
58
+
59
+ Duration models:
60
+
61
+ - Kempton and Stewart (2006)
62
+ - Afshari and Stewart (2016)
63
+
64
+ Most models are tested with unit tests that test the implemention of the
65
+ model.
66
+
67
+ ## Citation
68
+
69
+ Please cite this software using the
70
+ [DOI](https://zenodo.org/badge/latestdoi/53176693).
71
+
72
+ ## Contributors
73
+
74
+ - Albert Kottke
75
+ - Greg Lavrentiadis
76
+ - Artie Rodgers
pygmm-0.0.0/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # pyGMM
2
+
3
+ [![PyPi Cheese
4
+ Shop](https://img.shields.io/pypi/v/pygmm.svg)](https://pypi.org/project/pygmm/)
5
+ [![Build
6
+ Status](https://github.com/arkottke/pygmm/actions/workflows/python-app.yml/badge.svg)](https://github.com/arkottke/pygmm/actions/workflows/python-app.yml)
7
+ [![Code
8
+ Quality](https://api.codacy.com/project/badge/Grade/abc9878c890143c8b590e6f3602056b7)](https://app.codacy.com/gh/arkottke/pygmm/dashboard)
9
+ [![Test
10
+ Coverage](https://api.codacy.com/project/badge/Coverage/abc9878c890143c8b590e6f3602056b7)](https://app.codacy.com/gh/arkottke/pygmm/dashboard)
11
+ ![License](https://img.shields.io/badge/license-MIT-blue.svg)
12
+ [![DOI](https://zenodo.org/badge/53176693.svg)](https://zenodo.org/badge/latestdoi/53176693)
13
+
14
+ Ground motion models implemented in Python.
15
+
16
+ I have recently learned that additional ground motion models have been
17
+ implemented through GEM\'s OpenQuake
18
+ [Hazardlib](https://github.com/gem/oq-hazardlib), which I recommend
19
+ checking out.
20
+
21
+ ## Features
22
+
23
+ Models currently supported:
24
+
25
+ - Akkar, Sandikkaya, & Bommer (2014) with unit tests
26
+ - Atkinson & Boore (2006)
27
+ - Abrahamson, Silva, & Kamai (2014) with unit tests
28
+ - Abrahamson, Gregor, & Addo (2016) with unit tests
29
+ - Boore, Stewart, Seyhan, & Atkinson (2014) with unit tests
30
+ - Campbell (2003)
31
+ - Campbell & Bozorgnia (2014) with unit tests
32
+ - Chiou & Youngs (2014) with unit tests
33
+ - Derras, Bard & Cotton (2013) with unit tests
34
+ - Idriss (2014) with unit tests
35
+ - Pezeshk, Zandieh, & Tavakoli (2001)
36
+ - Tavakoli & Pezeshk (2005)
37
+
38
+ Conditional spectra models:
39
+
40
+ - Baker & Jayaram (2008) with unit tests
41
+ - Kishida (2017) with unit tests
42
+
43
+ Duration models:
44
+
45
+ - Kempton and Stewart (2006)
46
+ - Afshari and Stewart (2016)
47
+
48
+ Most models are tested with unit tests that test the implemention of the
49
+ model.
50
+
51
+ ## Citation
52
+
53
+ Please cite this software using the
54
+ [DOI](https://zenodo.org/badge/latestdoi/53176693).
55
+
56
+ ## Contributors
57
+
58
+ - Albert Kottke
59
+ - Greg Lavrentiadis
60
+ - Artie Rodgers
@@ -0,0 +1,188 @@
1
+ # Makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line.
5
+ SPHINXOPTS =
6
+ SPHINXBUILD = sphinx-build
7
+ PAPER =
8
+ BUILDDIR = _build
9
+
10
+ # User-friendly check for sphinx-build
11
+ ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
12
+ $(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
13
+ endif
14
+
15
+ # Internal variables.
16
+ PAPEROPT_a4 = -D latex_paper_size=a4
17
+ PAPEROPT_letter = -D latex_paper_size=letter
18
+ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
19
+ # the i18n builder cannot share the environment and doctrees with the others
20
+ I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
21
+
22
+ .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext livehtml
23
+
24
+ help:
25
+ @echo "Please use \`make <target>' where <target> is one of"
26
+ @echo " html to make standalone HTML files"
27
+ @echo " dirhtml to make HTML files named index.html in directories"
28
+ @echo " singlehtml to make a single large HTML file"
29
+ @echo " pickle to make pickle files"
30
+ @echo " json to make JSON files"
31
+ @echo " htmlhelp to make HTML files and a HTML help project"
32
+ @echo " qthelp to make HTML files and a qthelp project"
33
+ @echo " devhelp to make HTML files and a Devhelp project"
34
+ @echo " epub to make an epub"
35
+ @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
36
+ @echo " latexpdf to make LaTeX files and run them through pdflatex"
37
+ @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
38
+ @echo " text to make text files"
39
+ @echo " man to make manual pages"
40
+ @echo " texinfo to make Texinfo files"
41
+ @echo " info to make Texinfo files and run them through makeinfo"
42
+ @echo " gettext to make PO message catalogs"
43
+ @echo " changes to make an overview of all changed/added/deprecated items"
44
+ @echo " xml to make Docutils-native XML files"
45
+ @echo " pseudoxml to make pseudoxml-XML files for display purposes"
46
+ @echo " livehtml to make live HTML that automaticall rebuilds"
47
+ @echo " linkcheck to check all external links for integrity"
48
+ @echo " doctest to run all doctests embedded in the documentation (if enabled)"
49
+
50
+ clean:
51
+ rm -rf $(BUILDDIR)/* _autosummary
52
+
53
+ html:
54
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
55
+ @echo
56
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
57
+
58
+ dirhtml:
59
+ $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
60
+ @echo
61
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
62
+
63
+ singlehtml:
64
+ $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
65
+ @echo
66
+ @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
67
+
68
+ pickle:
69
+ $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
70
+ @echo
71
+ @echo "Build finished; now you can process the pickle files."
72
+
73
+ json:
74
+ $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
75
+ @echo
76
+ @echo "Build finished; now you can process the JSON files."
77
+
78
+ htmlhelp:
79
+ $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
80
+ @echo
81
+ @echo "Build finished; now you can run HTML Help Workshop with the" \
82
+ ".hhp project file in $(BUILDDIR)/htmlhelp."
83
+
84
+ qthelp:
85
+ $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
86
+ @echo
87
+ @echo "Build finished; now you can run "qcollectiongenerator" with the" \
88
+ ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
89
+ @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/pygmm.qhcp"
90
+ @echo "To view the help file:"
91
+ @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/pygmm.qhc"
92
+
93
+ devhelp:
94
+ $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
95
+ @echo
96
+ @echo "Build finished."
97
+ @echo "To view the help file:"
98
+ @echo "# mkdir -p $$HOME/.local/share/devhelp/pygmm"
99
+ @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/pygmm"
100
+ @echo "# devhelp"
101
+
102
+ epub:
103
+ $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
104
+ @echo
105
+ @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
106
+
107
+ latex:
108
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
109
+ @echo
110
+ @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
111
+ @echo "Run \`make' in that directory to run these through (pdf)latex" \
112
+ "(use \`make latexpdf' here to do that automatically)."
113
+
114
+ latexpdf:
115
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
116
+ @echo "Running LaTeX files through pdflatex..."
117
+ $(MAKE) -C $(BUILDDIR)/latex all-pdf
118
+ @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
119
+
120
+ latexpdfja:
121
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
122
+ @echo "Running LaTeX files through platex and dvipdfmx..."
123
+ $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
124
+ @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
125
+
126
+ text:
127
+ $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
128
+ @echo
129
+ @echo "Build finished. The text files are in $(BUILDDIR)/text."
130
+
131
+ man:
132
+ $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
133
+ @echo
134
+ @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
135
+
136
+ texinfo:
137
+ $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
138
+ @echo
139
+ @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
140
+ @echo "Run \`make' in that directory to run these through makeinfo" \
141
+ "(use \`make info' here to do that automatically)."
142
+
143
+ info:
144
+ $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
145
+ @echo "Running Texinfo files through makeinfo..."
146
+ make -C $(BUILDDIR)/texinfo info
147
+ @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
148
+
149
+ gettext:
150
+ $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
151
+ @echo
152
+ @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
153
+
154
+ changes:
155
+ $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
156
+ @echo
157
+ @echo "The overview file is in $(BUILDDIR)/changes."
158
+
159
+ linkcheck:
160
+ $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
161
+ @echo
162
+ @echo "Link check complete; look for any errors in the above output " \
163
+ "or in $(BUILDDIR)/linkcheck/output.txt."
164
+
165
+ doctest:
166
+ $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
167
+ @echo "Testing of doctests in the sources finished, look at the " \
168
+ "results in $(BUILDDIR)/doctest/output.txt."
169
+
170
+ xml:
171
+ $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
172
+ @echo
173
+ @echo "Build finished. The XML files are in $(BUILDDIR)/xml."
174
+
175
+ pseudoxml:
176
+ $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
177
+ @echo
178
+ @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
179
+
180
+ livehtml:
181
+ sphinx-autobuild -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html\
182
+ --watch ../pygmm \
183
+ -i "*.swp" \
184
+ -i "*.swx" \
185
+ -i "*.swpx" \
186
+ -i "*~" \
187
+ -i "\.*" \
188
+ -i "*4913"
File without changes
@@ -0,0 +1 @@
1
+ .. include:: ../AUTHORS.rst