pyStrata 0.5.0__tar.gz → 0.5.4__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.
- pystrata-0.5.4/.gitignore +187 -0
- pystrata-0.5.4/AUTHORS.md +9 -0
- pystrata-0.5.4/CONTRIBUTING.md +105 -0
- pystrata-0.5.4/HISTORY.md +92 -0
- {pyStrata-0.5.0 → pystrata-0.5.4}/MANIFEST.in +2 -0
- pystrata-0.5.4/Makefile +80 -0
- pystrata-0.5.4/PKG-INFO +112 -0
- pystrata-0.5.4/README.md +91 -0
- pystrata-0.5.4/data/approach_3.xlsx +0 -0
- pystrata-0.5.4/examples/README.md +22 -0
- pystrata-0.5.4/examples/data/NIS090.AT2 +824 -0
- pystrata-0.5.4/examples/data/best100_GM_linux.txt +1101 -0
- pystrata-0.5.4/examples/example-01.ipynb +474 -0
- pystrata-0.5.4/examples/example-02.ipynb +346 -0
- pystrata-0.5.4/examples/example-03.ipynb +520 -0
- pystrata-0.5.4/examples/example-04.ipynb +233 -0
- pystrata-0.5.4/examples/example-05.ipynb +201 -0
- pystrata-0.5.4/examples/example-06.ipynb +340 -0
- pystrata-0.5.4/examples/example-07.ipynb +325 -0
- pystrata-0.5.4/examples/example-08.ipynb +1279 -0
- pystrata-0.5.4/examples/example-09.ipynb +402 -0
- pystrata-0.5.4/examples/example-10.ipynb +213 -0
- pystrata-0.5.4/examples/example-11.ipynb +515 -0
- pystrata-0.5.4/examples/example-12.ipynb +536 -0
- pystrata-0.5.4/examples/example-13.ipynb +322 -0
- pystrata-0.5.4/examples/example-14.ipynb +1458 -0
- pystrata-0.5.4/examples/example-15.ipynb +549 -0
- pystrata-0.5.4/pyproject.toml +90 -0
- pystrata-0.5.4/pytest.ini +4 -0
- pystrata-0.5.4/requirements.txt +16 -0
- pystrata-0.5.4/requirements_dev.txt +21 -0
- pystrata-0.5.4/requirements_rtfd.txt +13 -0
- pystrata-0.5.4/runtime.txt +1 -0
- pystrata-0.5.4/setup.py +6 -0
- {pyStrata-0.5.0 → pystrata-0.5.4/src}/pystrata/__init__.py +4 -4
- pystrata-0.5.4/src/pystrata/data/published_curves.toml +1565 -0
- {pyStrata-0.5.0 → pystrata-0.5.4/src}/pystrata/motion.py +33 -18
- {pyStrata-0.5.0 → pystrata-0.5.4/src}/pystrata/output.py +15 -11
- {pyStrata-0.5.0 → pystrata-0.5.4/src}/pystrata/propagation.py +15 -26
- {pyStrata-0.5.0 → pystrata-0.5.4/src}/pystrata/site.py +127 -59
- {pyStrata-0.5.0 → pystrata-0.5.4/src}/pystrata/tools.py +5 -12
- {pyStrata-0.5.0 → pystrata-0.5.4/src}/pystrata/variation.py +70 -45
- {pyStrata-0.5.0 → pystrata-0.5.4}/tests/__init__.py +0 -0
- pystrata-0.5.4/tests/data/2516b_a.smc +5185 -0
- pystrata-0.5.4/tests/data/ChiChi.txt +11801 -0
- pystrata-0.5.4/tests/data/NIS090.AT2 +824 -0
- pystrata-0.5.4/tests/data/ds-example-2a-le.xlsx +0 -0
- pystrata-0.5.4/tests/data/ds-example-4-eql.xlsx +0 -0
- pystrata-0.5.4/tests/data/ds-example-5-eql.xlsx +0 -0
- pystrata-0.5.4/tests/data/kishida_2009.json +74 -0
- pystrata-0.5.4/tests/data/nrattle.ctl +423 -0
- pystrata-0.5.4/tests/data/qwl_tests.json +134 -0
- pystrata-0.5.4/tests/data/test_nrattle_02mar12.nrattle_amps4plot.out +419 -0
- pystrata-0.5.4/tests/data/test_nrattle_02mar12.nrattle_complex_spectra.out +822 -0
- pyStrata-0.5.0/tests/test_motion.py → pystrata-0.5.4/tests/motion_test.py +1 -1
- pyStrata-0.5.0/tests/test_notebooks.py → pystrata-0.5.4/tests/notebooks_test.py +1 -1
- pyStrata-0.5.0/tests/test_output.py → pystrata-0.5.4/tests/output_test.py +0 -3
- pyStrata-0.5.0/tests/test_propagation.py → pystrata-0.5.4/tests/propagation_test.py +26 -42
- pyStrata-0.5.0/tests/test_site.py → pystrata-0.5.4/tests/site_test.py +24 -9
- pyStrata-0.5.0/tests/test_variation.py → pystrata-0.5.4/tests/variation_test.py +49 -15
- pyStrata-0.5.0/AUTHORS.rst +0 -13
- pyStrata-0.5.0/HISTORY.rst +0 -71
- pyStrata-0.5.0/PKG-INFO +0 -170
- pyStrata-0.5.0/README.rst +0 -74
- pyStrata-0.5.0/pyStrata.egg-info/PKG-INFO +0 -170
- pyStrata-0.5.0/pyStrata.egg-info/SOURCES.txt +0 -27
- pyStrata-0.5.0/pyStrata.egg-info/dependency_links.txt +0 -1
- pyStrata-0.5.0/pyStrata.egg-info/requires.txt +0 -10
- pyStrata-0.5.0/pyStrata.egg-info/top_level.txt +0 -2
- pyStrata-0.5.0/requirements.txt +0 -11
- pyStrata-0.5.0/setup.cfg +0 -26
- pyStrata-0.5.0/setup.py +0 -48
- {pyStrata-0.5.0 → pystrata-0.5.4}/LICENSE +0 -0
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
|
|
2
|
+
# Created by https://www.gitignore.io/api/pycharm,python,linux,windows
|
|
3
|
+
|
|
4
|
+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
|
|
5
|
+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
|
6
|
+
|
|
7
|
+
# User-specific stuff:
|
|
8
|
+
.idea/
|
|
9
|
+
.idea/**/workspace.xml
|
|
10
|
+
.idea/**/tasks.xml
|
|
11
|
+
.idea/dictionaries
|
|
12
|
+
|
|
13
|
+
# Sensitive or high-churn files:
|
|
14
|
+
.idea/**/dataSources/
|
|
15
|
+
.idea/**/dataSources.ids
|
|
16
|
+
.idea/**/dataSources.xml
|
|
17
|
+
.idea/**/dataSources.local.xml
|
|
18
|
+
.idea/**/sqlDataSources.xml
|
|
19
|
+
.idea/**/dynamic.xml
|
|
20
|
+
.idea/**/uiDesigner.xml
|
|
21
|
+
|
|
22
|
+
# Gradle:
|
|
23
|
+
.idea/**/gradle.xml
|
|
24
|
+
.idea/**/libraries
|
|
25
|
+
|
|
26
|
+
# CMake
|
|
27
|
+
cmake-build-debug/
|
|
28
|
+
|
|
29
|
+
# Mongo Explorer plugin:
|
|
30
|
+
.idea/**/mongoSettings.xml
|
|
31
|
+
|
|
32
|
+
## File-based project format:
|
|
33
|
+
*.iws
|
|
34
|
+
|
|
35
|
+
## Plugin-specific files:
|
|
36
|
+
|
|
37
|
+
# IntelliJ
|
|
38
|
+
out/
|
|
39
|
+
|
|
40
|
+
# mpeltonen/sbt-idea plugin
|
|
41
|
+
.idea_modules/
|
|
42
|
+
|
|
43
|
+
# JIRA plugin
|
|
44
|
+
atlassian-ide-plugin.xml
|
|
45
|
+
|
|
46
|
+
# Cursive Clojure plugin
|
|
47
|
+
.idea/replstate.xml
|
|
48
|
+
|
|
49
|
+
### Python ###
|
|
50
|
+
# Byte-compiled / optimized / DLL files
|
|
51
|
+
__pycache__/
|
|
52
|
+
*.py[cod]
|
|
53
|
+
*$py.class
|
|
54
|
+
|
|
55
|
+
# C extensions
|
|
56
|
+
*.so
|
|
57
|
+
|
|
58
|
+
# Distribution / packaging
|
|
59
|
+
.Python
|
|
60
|
+
env/
|
|
61
|
+
build/
|
|
62
|
+
develop-eggs/
|
|
63
|
+
dist/
|
|
64
|
+
downloads/
|
|
65
|
+
eggs/
|
|
66
|
+
.eggs/
|
|
67
|
+
lib/
|
|
68
|
+
lib64/
|
|
69
|
+
parts/
|
|
70
|
+
sdist/
|
|
71
|
+
var/
|
|
72
|
+
*.egg-info/
|
|
73
|
+
.installed.cfg
|
|
74
|
+
*.egg
|
|
75
|
+
|
|
76
|
+
# PyInstaller
|
|
77
|
+
# Usually these files are written by a python script from a template
|
|
78
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
79
|
+
*.manifest
|
|
80
|
+
*.spec
|
|
81
|
+
|
|
82
|
+
# Installer logs
|
|
83
|
+
pip-log.txt
|
|
84
|
+
pip-delete-this-directory.txt
|
|
85
|
+
|
|
86
|
+
# Unit test / coverage reports
|
|
87
|
+
htmlcov/
|
|
88
|
+
.tox/
|
|
89
|
+
.coverage
|
|
90
|
+
.coverage.*
|
|
91
|
+
.cache
|
|
92
|
+
nosetests.xml
|
|
93
|
+
coverage.xml
|
|
94
|
+
*,cover
|
|
95
|
+
.hypothesis/
|
|
96
|
+
.pytest_cache
|
|
97
|
+
|
|
98
|
+
# Translations
|
|
99
|
+
*.mo
|
|
100
|
+
*.pot
|
|
101
|
+
|
|
102
|
+
# Django stuff:
|
|
103
|
+
*.log
|
|
104
|
+
local_settings.py
|
|
105
|
+
|
|
106
|
+
# Flask stuff:
|
|
107
|
+
instance/
|
|
108
|
+
.webassets-cache
|
|
109
|
+
|
|
110
|
+
# Scrapy stuff:
|
|
111
|
+
.scrapy
|
|
112
|
+
|
|
113
|
+
# Sphinx documentation
|
|
114
|
+
docs/_build/
|
|
115
|
+
docs/generated/
|
|
116
|
+
|
|
117
|
+
# PyBuilder
|
|
118
|
+
target/
|
|
119
|
+
|
|
120
|
+
# IPython Notebook
|
|
121
|
+
.ipynb_checkpoints
|
|
122
|
+
|
|
123
|
+
# pyenv
|
|
124
|
+
.python-version
|
|
125
|
+
|
|
126
|
+
# celery beat schedule file
|
|
127
|
+
celerybeat-schedule
|
|
128
|
+
|
|
129
|
+
# dotenv
|
|
130
|
+
.env
|
|
131
|
+
|
|
132
|
+
# virtualenv
|
|
133
|
+
venv/
|
|
134
|
+
ENV/
|
|
135
|
+
|
|
136
|
+
# Spyder project settings
|
|
137
|
+
.spyderproject
|
|
138
|
+
|
|
139
|
+
# Rope project settings
|
|
140
|
+
.ropeproject
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
### Linux ###
|
|
144
|
+
*~
|
|
145
|
+
|
|
146
|
+
# temporary files which can be created if a process still has a handle open of a deleted file
|
|
147
|
+
.fuse_hidden*
|
|
148
|
+
|
|
149
|
+
# KDE directory preferences
|
|
150
|
+
.directory
|
|
151
|
+
|
|
152
|
+
# Linux trash folder which might appear on any partition or disk
|
|
153
|
+
.Trash-*
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
### Windows ###
|
|
157
|
+
# Windows image file caches
|
|
158
|
+
Thumbs.db
|
|
159
|
+
ehthumbs.db
|
|
160
|
+
|
|
161
|
+
# Folder config file
|
|
162
|
+
Desktop.ini
|
|
163
|
+
|
|
164
|
+
# Recycle Bin used on file shares
|
|
165
|
+
$RECYCLE.BIN/
|
|
166
|
+
|
|
167
|
+
# Windows Installer files
|
|
168
|
+
*.cab
|
|
169
|
+
*.msi
|
|
170
|
+
*.msm
|
|
171
|
+
*.msp
|
|
172
|
+
|
|
173
|
+
# Windows shortcuts
|
|
174
|
+
*.lnk
|
|
175
|
+
|
|
176
|
+
# Example images
|
|
177
|
+
example*.png
|
|
178
|
+
|
|
179
|
+
# Vim tags
|
|
180
|
+
tags
|
|
181
|
+
|
|
182
|
+
# PyCharm directory
|
|
183
|
+
.idea/
|
|
184
|
+
|
|
185
|
+
references/
|
|
186
|
+
working/
|
|
187
|
+
scratch.*
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Contributions are welcome, and they are greatly appreciated! Every
|
|
4
|
+
little bit helps, and credit will always be given.
|
|
5
|
+
|
|
6
|
+
You can contribute in many ways:
|
|
7
|
+
|
|
8
|
+
## Types of Contributions
|
|
9
|
+
|
|
10
|
+
### Report Bugs
|
|
11
|
+
|
|
12
|
+
Report bugs at <https://github.com/arkottke/pystrata/issues>.
|
|
13
|
+
|
|
14
|
+
If you are reporting a bug, please include:
|
|
15
|
+
|
|
16
|
+
- Your operating system name and version.
|
|
17
|
+
- Any details about your local setup that might be helpful in
|
|
18
|
+
troubleshooting.
|
|
19
|
+
- Detailed steps to reproduce the bug.
|
|
20
|
+
|
|
21
|
+
### Fix Bugs
|
|
22
|
+
|
|
23
|
+
Look through the GitHub issues for bugs. Anything tagged with "bug" is
|
|
24
|
+
open to whoever wants to implement it.
|
|
25
|
+
|
|
26
|
+
### Implement Features
|
|
27
|
+
|
|
28
|
+
Look through the GitHub issues for features. Anything tagged with
|
|
29
|
+
"feature" is open to whoever wants to implement it.
|
|
30
|
+
|
|
31
|
+
### Write Documentation
|
|
32
|
+
|
|
33
|
+
pyStrata could always use more documentation, whether as part of the
|
|
34
|
+
official pyStrata docs, in docstrings, or even on the web in blog posts,
|
|
35
|
+
articles, and such.
|
|
36
|
+
|
|
37
|
+
### Submit Feedback
|
|
38
|
+
|
|
39
|
+
The best way to send feedback is to file an issue at
|
|
40
|
+
<https://github.com/arkottke/pystrata/issues>.
|
|
41
|
+
|
|
42
|
+
If you are proposing a feature:
|
|
43
|
+
|
|
44
|
+
- Explain in detail how it would work.
|
|
45
|
+
- Keep the scope as narrow as possible, to make it easier to
|
|
46
|
+
implement.
|
|
47
|
+
- Remember that this is a volunteer-driven project, and that
|
|
48
|
+
contributions are welcome :)
|
|
49
|
+
|
|
50
|
+
## Get Started!
|
|
51
|
+
|
|
52
|
+
Ready to contribute? Here's how to set up pyStrata for
|
|
53
|
+
local development.
|
|
54
|
+
|
|
55
|
+
1. Fork the pyStrata repo on [GitHub](https://github.com/arkottke/pystrata)
|
|
56
|
+
|
|
57
|
+
2. Clone your fork locally:
|
|
58
|
+
|
|
59
|
+
$ git clone git@github.com:your_name_here/pystrata.git
|
|
60
|
+
|
|
61
|
+
3. Install your local copy into a virtualenv. Assuming you have
|
|
62
|
+
virtualenvwrapper installed, this is how you set up your fork for
|
|
63
|
+
local development:
|
|
64
|
+
|
|
65
|
+
$ mkvirtualenv pystrata
|
|
66
|
+
$ cd pystrata/
|
|
67
|
+
$ python setup.py develop
|
|
68
|
+
|
|
69
|
+
4. Create a branch for local development:
|
|
70
|
+
|
|
71
|
+
$ git checkout -b name-of-your-bugfix-or-feature
|
|
72
|
+
|
|
73
|
+
Now you can make your changes locally.
|
|
74
|
+
|
|
75
|
+
5. When you're done making changes, check that your changes pass
|
|
76
|
+
flake8 and the tests:
|
|
77
|
+
|
|
78
|
+
$ pytest
|
|
79
|
+
|
|
80
|
+
6. Commit your changes and push your branch to GitHub:
|
|
81
|
+
|
|
82
|
+
$ git add .
|
|
83
|
+
$ git commit -m "Your detailed description of your changes."
|
|
84
|
+
$ git push origin name-of-your-bugfix-or-feature
|
|
85
|
+
|
|
86
|
+
7. Submit a pull request through the GitHub website.
|
|
87
|
+
|
|
88
|
+
## Pull Request Guidelines
|
|
89
|
+
|
|
90
|
+
Before you submit a pull request, check that it meets these guidelines:
|
|
91
|
+
|
|
92
|
+
1. The pull request should include tests.
|
|
93
|
+
2. If the pull request adds functionality, the docs should be updated.
|
|
94
|
+
Put your new functionality into a function with a docstring, and add
|
|
95
|
+
the feature to the list in README.md.
|
|
96
|
+
3. The pull request should work for Python 3.7, 3.8, 3.9, and 3.10
|
|
97
|
+
and for PyPy. Check
|
|
98
|
+
<https://travis-ci.org/arkottke/pystrata/pull_requests> and make
|
|
99
|
+
sure that the tests pass for all supported Python versions.
|
|
100
|
+
|
|
101
|
+
## Tips
|
|
102
|
+
|
|
103
|
+
To run a subset of tests:
|
|
104
|
+
|
|
105
|
+
$ pytest tests/site_test.py
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# History
|
|
2
|
+
|
|
3
|
+
## v0.5.4 (2024-03-29)
|
|
4
|
+
|
|
5
|
+
- Fix: error in example-08 that didn't reference the modified profiles.
|
|
6
|
+
- Change: method to create SoilTypes from published curves
|
|
7
|
+
- Add: Extended example-15 to show how to use published curves in site response models.
|
|
8
|
+
|
|
9
|
+
## v0.5.3 (2024-03-29)
|
|
10
|
+
|
|
11
|
+
- Added published curves
|
|
12
|
+
|
|
13
|
+
## v0.5.2 (2023-01-18)
|
|
14
|
+
|
|
15
|
+
- Fixed: Providing unsmoothed transfer function output
|
|
16
|
+
- Fixed #18: MenqSoilType
|
|
17
|
+
|
|
18
|
+
## v0.5.1 (2022-09-22)
|
|
19
|
+
|
|
20
|
+
- Fixed: Correlation model from Toro. Previously used rho_0 instead of
|
|
21
|
+
d_0, and the wrong depth
|
|
22
|
+
- Renamed: BedrockDepthVariation to HalfSpaceDepthVariation
|
|
23
|
+
- Fixed: HalfSpaceDepthVariation was removing the last layer
|
|
24
|
+
|
|
25
|
+
## v0.5.0 (2022-06-14)
|
|
26
|
+
|
|
27
|
+
- Renamed to pyStrata
|
|
28
|
+
|
|
29
|
+
## v0.4.11 (2020-03-31)
|
|
30
|
+
|
|
31
|
+
- Added: Depth dependent velocity variation model
|
|
32
|
+
- Added: Output plotting functionality
|
|
33
|
+
- Added: Ability to exclude soil type variation from bedrock
|
|
34
|
+
|
|
35
|
+
## v0.4.10 (2020-03-27)
|
|
36
|
+
|
|
37
|
+
- Fixed: Error in SPID variation of G/Gmax
|
|
38
|
+
- Added: Scaling during read of SMC and AT2 input motions
|
|
39
|
+
|
|
40
|
+
## v0.4.9 (2020-03-09)
|
|
41
|
+
|
|
42
|
+
- Add InitialVelProfile and CompatVelProfile outputs
|
|
43
|
+
|
|
44
|
+
## v0.4.8 (2019-12-11)
|
|
45
|
+
|
|
46
|
+
- Remove Cython and cyko as dependencies
|
|
47
|
+
- Added a numba based Konno-Ohmachi smoothing
|
|
48
|
+
|
|
49
|
+
## v0.4.6 (2019-11-12)
|
|
50
|
+
|
|
51
|
+
- FIXED #11: Dependencies missing on install.
|
|
52
|
+
|
|
53
|
+
## v0.4.5 (2019-10-24)
|
|
54
|
+
|
|
55
|
+
- FIXED #9: Wrong stress for some Menq components.
|
|
56
|
+
|
|
57
|
+
## v0.4.4 (2019-05-22)
|
|
58
|
+
|
|
59
|
+
- Incremented version because of issue with automated builds.
|
|
60
|
+
|
|
61
|
+
## v0.4.3 (2019-05-22)
|
|
62
|
+
|
|
63
|
+
- FIXED: Bug in MANIFEST.in
|
|
64
|
+
|
|
65
|
+
## v0.4.2 (2019-05-22)
|
|
66
|
+
|
|
67
|
+
- Incremented version because of issue with automated builds.
|
|
68
|
+
|
|
69
|
+
## v0.4.1 (2019-05-22)
|
|
70
|
+
|
|
71
|
+
- Fixed strain profile to use `max_strain`.
|
|
72
|
+
- Changed README and HISTORY to markdown.
|
|
73
|
+
|
|
74
|
+
## v0.4.0 (2019-03-11)
|
|
75
|
+
|
|
76
|
+
- Added smoothed FourierAmplitudeSpectrum output.
|
|
77
|
+
|
|
78
|
+
## v0.3.2 (2018-12-02)
|
|
79
|
+
|
|
80
|
+
- Fixed building of docs.
|
|
81
|
+
- Removed stickler.
|
|
82
|
+
- Version double increment due to pypi naming conflict.
|
|
83
|
+
|
|
84
|
+
## v0.3.0 (2018-11-30)
|
|
85
|
+
|
|
86
|
+
- Converted all damping to decimal.
|
|
87
|
+
- Added tests for KishidaSoilType.
|
|
88
|
+
- Added tests against Deepsoil.
|
|
89
|
+
|
|
90
|
+
## v0.0.1 (2016-04-30)
|
|
91
|
+
|
|
92
|
+
- First release on PyPI.
|
pystrata-0.5.4/Makefile
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
.PHONY: clean-pyc clean-build docs clean examples
|
|
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 "test - run tests quickly with the default Python"
|
|
20
|
+
@echo "examples - run all examples"
|
|
21
|
+
@echo "coverage - check code coverage quickly with the default Python"
|
|
22
|
+
@echo "docs - generate Sphinx HTML documentation, including API docs"
|
|
23
|
+
@echo "release - package and upload a release"
|
|
24
|
+
@echo "dist - package"
|
|
25
|
+
@echo "install - install the package to the active Python's site-packages"
|
|
26
|
+
|
|
27
|
+
clean: clean-build clean-pyc clean-test
|
|
28
|
+
|
|
29
|
+
clean-build:
|
|
30
|
+
rm -fr build/
|
|
31
|
+
rm -fr dist/
|
|
32
|
+
rm -fr .eggs/
|
|
33
|
+
find . -name '*.egg-info' -exec rm -fr {} +
|
|
34
|
+
find . -name '*.egg' -exec rm -f {} +
|
|
35
|
+
|
|
36
|
+
clean-pyc:
|
|
37
|
+
find . -name '*.pyc' -exec rm -f {} +
|
|
38
|
+
find . -name '*.pyo' -exec rm -f {} +
|
|
39
|
+
find . -name '*~' -exec rm -f {} +
|
|
40
|
+
find . -name '__pycache__' -exec rm -fr {} +
|
|
41
|
+
|
|
42
|
+
clean-test:
|
|
43
|
+
rm -f .coverage
|
|
44
|
+
rm -fr htmlcov/
|
|
45
|
+
rm -fr .pytest_cache
|
|
46
|
+
rm -fr .cache
|
|
47
|
+
|
|
48
|
+
test:
|
|
49
|
+
pip install -e .
|
|
50
|
+
pytest --cov-report html --cov=pystrata tests/
|
|
51
|
+
|
|
52
|
+
examples:
|
|
53
|
+
find examples -name 'example*.py' -exec python {} \;
|
|
54
|
+
|
|
55
|
+
coverage: test
|
|
56
|
+
coverage report -m
|
|
57
|
+
coverage html
|
|
58
|
+
$(BROWSER) htmlcov/index.html
|
|
59
|
+
|
|
60
|
+
docs:
|
|
61
|
+
rm -f docs/pystrata.rst
|
|
62
|
+
rm -f docs/modules.rst
|
|
63
|
+
$(MAKE) -C docs clean
|
|
64
|
+
$(MAKE) -C docs html
|
|
65
|
+
$(BROWSER) docs/_build/html/index.html
|
|
66
|
+
|
|
67
|
+
servedocs: docs
|
|
68
|
+
sphinx-autobuild docs docs/_build/html
|
|
69
|
+
|
|
70
|
+
test-release: clean
|
|
71
|
+
python -m build
|
|
72
|
+
python -m twine check dist/*
|
|
73
|
+
python -m twine upload --repository testpypi dist/*
|
|
74
|
+
|
|
75
|
+
release: clean
|
|
76
|
+
python -m build
|
|
77
|
+
python -m twine upload dist/*
|
|
78
|
+
|
|
79
|
+
install: clean
|
|
80
|
+
python setup.py install
|
pystrata-0.5.4/PKG-INFO
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: pyStrata
|
|
3
|
+
Version: 0.5.4
|
|
4
|
+
Summary: Site response analysis with Python.
|
|
5
|
+
Project-URL: Homepage, https://github.com/arkottke/pystrata
|
|
6
|
+
Project-URL: Documentation, https://pystrata.readthedocs.io
|
|
7
|
+
Author-email: Albert Kottke <albert.kottke@gmail.com>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: AUTHORS.md
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Requires-Python: >=3.8
|
|
12
|
+
Requires-Dist: matplotlib
|
|
13
|
+
Requires-Dist: numba
|
|
14
|
+
Requires-Dist: numpy
|
|
15
|
+
Requires-Dist: pykooh
|
|
16
|
+
Requires-Dist: pyrvt
|
|
17
|
+
Requires-Dist: scipy
|
|
18
|
+
Requires-Dist: setuptools
|
|
19
|
+
Requires-Dist: tomli
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
|
|
22
|
+
# pyStrata
|
|
23
|
+
|
|
24
|
+
Python library for site response analysis.
|
|
25
|
+
|
|
26
|
+
[](https://pypi.org/project/pystrata/)
|
|
27
|
+
[](https://github.com/arkottke/pystrata/actions/workflows/python-app.yml)
|
|
28
|
+
[](https://pystrata.readthedocs.io/en/latest/)
|
|
30
|
+
[](https://app.codacy.com/gh/arkottke/pystrata/dashboard)
|
|
31
|
+

|
|
32
|
+
[](https://zenodo.org/badge/latestdoi/8959678)
|
|
33
|
+
[](https://mybinder.org/v2/gh/arkottke/pystrata/main?filepath=examples)
|
|
34
|
+
|
|
35
|
+
## Introduction
|
|
36
|
+
|
|
37
|
+
Site response analyses implemented in Python. This Python packages aims
|
|
38
|
+
to implement many of the features found in
|
|
39
|
+
[Strata](https://github.com/arkottke/strata). These features include:
|
|
40
|
+
- Input motion characterization:
|
|
41
|
+
- Time series
|
|
42
|
+
- Random vibration theory
|
|
43
|
+
- Wave propagation or site amplification:
|
|
44
|
+
- linear
|
|
45
|
+
- equivalent-linear
|
|
46
|
+
- equivalent-linear with frequency dependent properties
|
|
47
|
+
- quarter wavelength
|
|
48
|
+
- Nonlinear curve models:
|
|
49
|
+
- Predictive models:
|
|
50
|
+
- Darendeli (2001)
|
|
51
|
+
- Menq (2004)
|
|
52
|
+
- Kishida (2012)
|
|
53
|
+
- Curves:
|
|
54
|
+
- Vucetic & Dobry (1991)
|
|
55
|
+
- EPRI (1993)
|
|
56
|
+
- GEI (1983)
|
|
57
|
+
- GeoMatrix (1990)
|
|
58
|
+
- Idriss (1990)
|
|
59
|
+
- Imperial Valley Soils
|
|
60
|
+
- Iwasaki
|
|
61
|
+
- Peninsular Range
|
|
62
|
+
- Seed & Idriss
|
|
63
|
+
- Site and soil property uncertainty:
|
|
64
|
+
- Toro (1994) Vs correlation model
|
|
65
|
+
- G/Gmax and D uncertainty:
|
|
66
|
+
- Darendeli (2001)
|
|
67
|
+
- EPRI SPID (2013)
|
|
68
|
+
|
|
69
|
+
Development of this software is on-going and any contributions are
|
|
70
|
+
encouraged. Previously named `pysra`, but renamed after some sage and
|
|
71
|
+
persistent advice to be better associated with
|
|
72
|
+
[Strata](https://github.com/arkottke/strata).
|
|
73
|
+
|
|
74
|
+
## Installation
|
|
75
|
+
|
|
76
|
+
`pystrata` is available via `pip` and can be installed with:
|
|
77
|
+
|
|
78
|
+
pip install pystrata
|
|
79
|
+
|
|
80
|
+
If you are using `conda` and a create a `pystrata` specific
|
|
81
|
+
environmental make sure you install `ipykernels` and `nb_conda_kernels`
|
|
82
|
+
so that the environment is discoverable by `Jupyter` with:
|
|
83
|
+
|
|
84
|
+
conda install ipykernel nb_conda_kernels
|
|
85
|
+
|
|
86
|
+
## Citation
|
|
87
|
+
|
|
88
|
+
Please cite this software using the following
|
|
89
|
+
[DOI](https://zenodo.org/badge/latestdoi/8959678):
|
|
90
|
+
|
|
91
|
+
Albert Kottke & Maxim Millen. (2023). arkottke/pystrata: v0.5.2 (v0.5.2). Zenodo. https://doi.org/10.5281/zenodo.7551992
|
|
92
|
+
|
|
93
|
+
or with BibTeX:
|
|
94
|
+
|
|
95
|
+
@software{albert_kottke_2023_7551992,
|
|
96
|
+
author = {Albert Kottke and
|
|
97
|
+
Maxim Millen},
|
|
98
|
+
title = {arkottke/pystrata: v0.5.2},
|
|
99
|
+
month = jan,
|
|
100
|
+
year = 2023,
|
|
101
|
+
publisher = {Zenodo},
|
|
102
|
+
version = {v0.5.2},
|
|
103
|
+
doi = {10.5281/zenodo.7551992},
|
|
104
|
+
url = {https://doi.org/10.5281/zenodo.7551992}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
## Examples
|
|
108
|
+
|
|
109
|
+
There are a variety of examples of using `pystrata` within the [examples
|
|
110
|
+
directory](https://github.com/arkottke/pystrata/tree/main/examples). An
|
|
111
|
+
interactive Jupyter interface of these examples is available on
|
|
112
|
+
[](https://mybinder.org/v2/gh/arkottke/pystrata/main?filepath=examples).
|
pystrata-0.5.4/README.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# pyStrata
|
|
2
|
+
|
|
3
|
+
Python library for site response analysis.
|
|
4
|
+
|
|
5
|
+
[](https://pypi.org/project/pystrata/)
|
|
6
|
+
[](https://github.com/arkottke/pystrata/actions/workflows/python-app.yml)
|
|
7
|
+
[](https://pystrata.readthedocs.io/en/latest/)
|
|
9
|
+
[](https://app.codacy.com/gh/arkottke/pystrata/dashboard)
|
|
10
|
+

|
|
11
|
+
[](https://zenodo.org/badge/latestdoi/8959678)
|
|
12
|
+
[](https://mybinder.org/v2/gh/arkottke/pystrata/main?filepath=examples)
|
|
13
|
+
|
|
14
|
+
## Introduction
|
|
15
|
+
|
|
16
|
+
Site response analyses implemented in Python. This Python packages aims
|
|
17
|
+
to implement many of the features found in
|
|
18
|
+
[Strata](https://github.com/arkottke/strata). These features include:
|
|
19
|
+
- Input motion characterization:
|
|
20
|
+
- Time series
|
|
21
|
+
- Random vibration theory
|
|
22
|
+
- Wave propagation or site amplification:
|
|
23
|
+
- linear
|
|
24
|
+
- equivalent-linear
|
|
25
|
+
- equivalent-linear with frequency dependent properties
|
|
26
|
+
- quarter wavelength
|
|
27
|
+
- Nonlinear curve models:
|
|
28
|
+
- Predictive models:
|
|
29
|
+
- Darendeli (2001)
|
|
30
|
+
- Menq (2004)
|
|
31
|
+
- Kishida (2012)
|
|
32
|
+
- Curves:
|
|
33
|
+
- Vucetic & Dobry (1991)
|
|
34
|
+
- EPRI (1993)
|
|
35
|
+
- GEI (1983)
|
|
36
|
+
- GeoMatrix (1990)
|
|
37
|
+
- Idriss (1990)
|
|
38
|
+
- Imperial Valley Soils
|
|
39
|
+
- Iwasaki
|
|
40
|
+
- Peninsular Range
|
|
41
|
+
- Seed & Idriss
|
|
42
|
+
- Site and soil property uncertainty:
|
|
43
|
+
- Toro (1994) Vs correlation model
|
|
44
|
+
- G/Gmax and D uncertainty:
|
|
45
|
+
- Darendeli (2001)
|
|
46
|
+
- EPRI SPID (2013)
|
|
47
|
+
|
|
48
|
+
Development of this software is on-going and any contributions are
|
|
49
|
+
encouraged. Previously named `pysra`, but renamed after some sage and
|
|
50
|
+
persistent advice to be better associated with
|
|
51
|
+
[Strata](https://github.com/arkottke/strata).
|
|
52
|
+
|
|
53
|
+
## Installation
|
|
54
|
+
|
|
55
|
+
`pystrata` is available via `pip` and can be installed with:
|
|
56
|
+
|
|
57
|
+
pip install pystrata
|
|
58
|
+
|
|
59
|
+
If you are using `conda` and a create a `pystrata` specific
|
|
60
|
+
environmental make sure you install `ipykernels` and `nb_conda_kernels`
|
|
61
|
+
so that the environment is discoverable by `Jupyter` with:
|
|
62
|
+
|
|
63
|
+
conda install ipykernel nb_conda_kernels
|
|
64
|
+
|
|
65
|
+
## Citation
|
|
66
|
+
|
|
67
|
+
Please cite this software using the following
|
|
68
|
+
[DOI](https://zenodo.org/badge/latestdoi/8959678):
|
|
69
|
+
|
|
70
|
+
Albert Kottke & Maxim Millen. (2023). arkottke/pystrata: v0.5.2 (v0.5.2). Zenodo. https://doi.org/10.5281/zenodo.7551992
|
|
71
|
+
|
|
72
|
+
or with BibTeX:
|
|
73
|
+
|
|
74
|
+
@software{albert_kottke_2023_7551992,
|
|
75
|
+
author = {Albert Kottke and
|
|
76
|
+
Maxim Millen},
|
|
77
|
+
title = {arkottke/pystrata: v0.5.2},
|
|
78
|
+
month = jan,
|
|
79
|
+
year = 2023,
|
|
80
|
+
publisher = {Zenodo},
|
|
81
|
+
version = {v0.5.2},
|
|
82
|
+
doi = {10.5281/zenodo.7551992},
|
|
83
|
+
url = {https://doi.org/10.5281/zenodo.7551992}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
## Examples
|
|
87
|
+
|
|
88
|
+
There are a variety of examples of using `pystrata` within the [examples
|
|
89
|
+
directory](https://github.com/arkottke/pystrata/tree/main/examples). An
|
|
90
|
+
interactive Jupyter interface of these examples is available on
|
|
91
|
+
[](https://mybinder.org/v2/gh/arkottke/pystrata/main?filepath=examples).
|
|
Binary file
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Examples
|
|
2
|
+
|
|
3
|
+
The examples included here are used to demonstrate the capabilities of `pystrata`.
|
|
4
|
+
The following a brief summaries of the examples:
|
|
5
|
+
|
|
6
|
+
1. Time series analysis to compute surface response spectrum and site
|
|
7
|
+
amplification functions.
|
|
8
|
+
2. Random vibration theory (RVT) analysis to compute surface response
|
|
9
|
+
spectrum and site amplification functions.
|
|
10
|
+
3. RVT input motion with a variety of site response calculators.
|
|
11
|
+
4. Generate simulated shear-wave velocity profiles.
|
|
12
|
+
5. Generate simulated nonlinear properties.
|
|
13
|
+
6. Time series analysis to compute surface response spectrum and site amplification functions using velocity profiles from geopsy.
|
|
14
|
+
7. RVT calculation using different peak factor calculators.
|
|
15
|
+
8. RVT calculation using a suite of simulated profiles
|
|
16
|
+
9. Quarter-wave length site amplification
|
|
17
|
+
10. Compute ground motion using a suite of peak factors
|
|
18
|
+
11. Extract soil properties from FDM site response calculations
|
|
19
|
+
12. Show the impact of frequency dependent D_min on FDM methods.
|
|
20
|
+
13. Show the impact of the strain limit on the EQL calculation.
|
|
21
|
+
14. Example with multiple input motions and simulated soil profiles.
|
|
22
|
+
15. List of provided nonlinear curves.
|