This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c7feaf
commit 02ae670
Showing
410 changed files
with
2,122 additions
and
3,959 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
# Installation | ||
|
||
Note that we used to use conda to manage dependencies but that was creating some | ||
difficulties and so we are now relying on pip as much as possible. | ||
|
||
```{caution} | ||
There is an old gmprocess package available via conda. Please do not install this! | ||
It is very out of date and won't work. | ||
``` | ||
|
||
However, we do recommend installing gmprocess into a virtual environment to isolate | ||
your code from other projects that might create conflicts and | ||
[conda](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html) | ||
is good option for accomplishing this. | ||
|
||
We hope to be able to provide pip installs via pypi wheels soon. | ||
|
||
## Installing from source (Mac and Linux) | ||
|
||
```{admonition} Prerequisites | ||
- A C compiler. On a mac, this usually means installing XCode/Comomand Line tools. | ||
For linux, it depends on the type of linux but is usually very stright forward. | ||
- Bash shell, curl, and git. | ||
``` | ||
|
||
First clone this repository and go into the root directory with | ||
|
||
``` | ||
$ git clone https://github.com/usgs/groundmotion-processing.git | ||
$ cd groundmotion-processing | ||
``` | ||
|
||
Now install with pip: | ||
|
||
``` | ||
$ pip install . | ||
``` | ||
|
||
Note that this will install the minimum requirements to run the code. There are | ||
additional optional packages that can be installed that support running the unit tests | ||
(`test`), code development (`dev`), and building the documentation (`doc`). To install | ||
these, you need to add the relevant option in brackets: | ||
|
||
``` | ||
$ pip install .[test,dev,doc] | ||
``` | ||
|
||
For development, it is also conveninet to install the code in "editable" mode by adding | ||
the `-e` option: | ||
|
||
``` | ||
$ pip install -e .[test,dev,doc] | ||
``` | ||
|
||
## Installing from source (Windows) | ||
|
||
Our development team is not proficient with Windows systems, so our ability to | ||
support Windows installs is limited. But we know that the code compiles and | ||
passes tests in Windows on our continuous integration systems. We have also | ||
helped users install the code using the following steps. | ||
|
||
```{admonition} Prerequisites | ||
- A C compiler. We have had success follwing | ||
[these instructions](https://github.com/cython/cython/wiki/CythonExtensionsOnWindows#using-windows-sdk-cc-compiler-works-for-all-python-versions) | ||
from cython. | ||
- Git and some kind of console. | ||
``` | ||
|
||
First clone this repository and go into the root directory with | ||
|
||
``` | ||
$ git clone https://github.com/usgs/groundmotion-processing.git | ||
$ cd groundmotion-processing | ||
``` | ||
|
||
There is one depenency ([fiona](https://pypi.org/project/Fiona/)) that we have not been | ||
able to install with pip on Windows systems. So we rely on conda for this. | ||
|
||
Then install the ``gmprocess`` virtual environment and all of the dependencies | ||
and activate the environment | ||
|
||
``` | ||
$ conda create --name gmprocess python=3.8 pip fiona | ||
$ call activate gmprocess | ||
$ pip install -e . | ||
``` | ||
|
||
## Tests | ||
|
||
If you included the optional `test` dependencies in the install step, then you can run | ||
the unit tests in the root directory of this repositry: | ||
|
||
``` | ||
$ py.test . | ||
``` | ||
|
||
This will be followed by a lot of terminal output. Warnings are expected to occur and | ||
do not indicate a problem. Errors indicate that something has gone wrong and you will | ||
want to troubleshoot. You can create an issue in github if you are not able to resolve | ||
the problem. | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 649f1b60d4e8c6a16e30e6994a8ecbab | ||
config: fc8aa85e0041a65973ebe0b84db332c8 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Binary file added
BIN
+20.8 KB
docs/_images/1e153fe1fd4842900e3cad7cd779195f7b8cc15aab763044212152f0e759c2c7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+85.9 KB
docs/_images/4e3c1421e60f34371a613bbbe6042e9a1de393cd2bcd243a89e8601bd9774374.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.1 KB
docs/_images/573dd291a8e4fee83e3b37160e2e6174c8646fcd6f8e3bf450277c6284c1af6f.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-10.1 KB
docs/_images/9ce0ca0c6466b83fe7049c488cb4d2eed2a79a7189789767f816e6b8d27dc560.png
Binary file not shown.
Binary file added
BIN
+9.03 KB
docs/_images/a137615e0606f39c0dc747d1a129924f0a34d56277cd120fdfe7c6be6586bad1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-20.9 KB
docs/_images/a45700e65fac7918b21532344d6d166df65853422ba64f6023768af949aca991.png
Binary file not shown.
Binary file removed
BIN
-86 KB
docs/_images/a571082ce95bc41a8946633a80c9a8f72e986bba5d9f019cdecd2bf214f93a43.png
Binary file not shown.
Binary file removed
BIN
-12.1 KB
docs/_images/ccc3deeb5369ff2ef25c1bd91d76a0cb649a07261c2d2c7cf006eb5e33d90e6e.png
Binary file not shown.
Binary file added
BIN
+12.2 KB
docs/_images/e7b1a05f41a197729589f0d753bdfd67328f7dbef36fbc72de9fa9c1831f6c5f.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-9.04 KB
docs/_images/f328406b86f48b7c899d7ae32ea70e92e5d0428054ab37c592cdeed5150c2a36.png
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.