-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #232 from rmodrak/master
Installation on ARM64 systems
- Loading branch information
Showing
8 changed files
with
175 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
|
||
Installation on ARM64 systems | ||
============================= | ||
|
||
To install MTUQ on ARM64 systems, create a conda virtual environment: | ||
|
||
.. code:: | ||
conda create -n mtuq python=3 | ||
Download the MTUQ source code: | ||
|
||
.. code:: | ||
git clone https://github.com/uafgeotools/mtuq.git | ||
cd mtuq | ||
Install MTUQ in editable mode: | ||
|
||
.. code:: | ||
conda activate mtuq | ||
conda env update --file env_arm64.yaml | ||
Unpack seismic waveforms used by examples: | ||
|
||
.. code:: | ||
bash ./data/examples/unpack.bash | ||
bash ./data/tests/unpack.bash | ||
Finally, install PyGMT: | ||
|
||
.. code:: | ||
conda install 'pygmt>=0.9' | ||
.. note:: | ||
|
||
Users may receive the following Instaseis warning message: | ||
|
||
`UserWarning: Please don't install from a tarball. Use the proper pypi release or install from git.` | ||
|
||
Now that Instaseis PyPI releases are no longer maintained, the above message can be ignored. | ||
|
||
|
||
.. note:: | ||
|
||
If `linux-aarch64` or `osx-arm64` builds are ever added to the Instaseis `conda-forge channel <https://anaconda.org/conda-forge/instaseis>`_, the above workaround may become unnecessary. | ||
|
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,51 @@ | ||
|
||
|
||
Installation on Apple M1 and Apple M2 Macs | ||
------------------------------------------ | ||
|
||
Newer Mac computers use proprietary Apple processors based on the ARM64 architecture. On these and other ARM64 systems, a modified `conda env` command is necessary | ||
|
||
.. code:: | ||
conda env update --file env_arm64.yaml | ||
but otherwise users can follow the normal installation procedure. | ||
|
||
For more information, please see: | ||
|
||
`MTUQ installation on ARM64 systems <https://uafgeotools.github.io/mtuq/install/arm64.html>`_ | ||
|
||
|
||
Installation under virutalenv | ||
----------------------------- | ||
|
||
For most users, we recommend installing MTUQ under conda. However, in rare cases it seems that MTUQ can be more easily installed under virtualenv. | ||
|
||
For more information, please see: | ||
|
||
`MTUQ installation under virtualenv <https://uafgeotools.github.io/mtuq/install/virtualenv.html>`_ | ||
|
||
|
||
Troubleshooting PyGMT installation | ||
---------------------------------- | ||
|
||
MTUQ uses full moment tensor plotting functions from the PyGMT graphics library. | ||
|
||
To avoid a known issue with PyGMT installation under conda, it is necessary to specify a minimum PyGMT version as follows: | ||
|
||
.. code:: | ||
conda install 'pygmt>=0.9' | ||
A more conservative approach, which avoids suspected problems with PyGMT 0.10 releases, is to specify the more stable PyGMT 0.9 version: | ||
|
||
.. code:: | ||
conda install 'pygmt=0.9' | ||
If PyGMT installation fails, most MTUQ functions will still work, but some plotting functions will fall back to GMT or ObsPy. | ||
|
||
We note that some versions of GMT and ObsPy do not plot `full moment tensors <https://github.com/obspy/obspy/issues/2388>`_ correctly. | ||
|
File renamed without changes.
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 @@ | ||
env_default.yaml |
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,29 @@ | ||
# for installation on ARM64 systems, including Apple M1 and Apple M2 | ||
|
||
channels: | ||
- defaults | ||
- conda-forge | ||
|
||
dependencies: | ||
- conda-build | ||
- python=3 | ||
- numpy | ||
- scipy | ||
- obspy | ||
- pandas | ||
- xarray | ||
- netCDF4 | ||
- h5py | ||
- mpi4py | ||
- retry | ||
- flake8 | ||
- nose | ||
- pytest | ||
- pip | ||
- pip: | ||
- git+https://github.com/sstaehler/instaseis.git | ||
- tables | ||
- seisgen | ||
- seishmc | ||
- -e . | ||
|
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,27 @@ | ||
|
||
channels: | ||
- defaults | ||
- conda-forge | ||
|
||
dependencies: | ||
- conda-build | ||
- python=3 | ||
- numpy | ||
- scipy | ||
- obspy | ||
- instaseis | ||
- pandas | ||
- xarray | ||
- netCDF4 | ||
- h5py | ||
- mpi4py | ||
- retry | ||
- flake8 | ||
- nose | ||
- pytest | ||
- pip | ||
- pip: | ||
- tables | ||
- seisgen | ||
- seishmc | ||
- -e . |
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