Skip to content

Latest commit

Β 

History

History
76 lines (67 loc) Β· 2.08 KB

File metadata and controls

76 lines (67 loc) Β· 2.08 KB

GeophysicalTools

Teaching material and exercises

βš™οΈ Setup Instructions

To ensure reproducibility and modularity, three separate conda environments are used β€” one for each main module.

1. Clone the repository

Open your terminal/Anaconda prompt and run this:

git clone https://github.com/AlbCa/GeophysicalTools.git
cd GeophysicalTools

2. Create the environments

The requirements are stored in the main folder (GeophysicalTools/) as .yml files, used to describe an environment β€” that is, all the packages and dependencies used to install them.
You can simply run the following commands:

conda env create -f electro.yml		# for electro-magnetic methods
conda env create -f seismic.yml		# for seismic methods
conda env create -f gpr.yml			# for gpr

3. Activate the environment

Before running a notebook, activate the corresponding environment:

conda activate electro
conda activate seismic
conda activate gpr

--- πŸ’» Solving errors

If you encounter errors when creating the environments, you can manually create and install them as follows:

1. electro

conda create -n electro -c gimli -c conda-forge "pygimli>=1.5.0"
conda activate electro
conda install jupyterlab
pip install resipy emagpy

2. seismic

conda create -n seismic -c gimli -c conda-forge "pygimli>=1.5.0"
conda activate seismic
conda install jupyterlab
pip install scipy obspy disba evodcinv tqdm 

3. gpr

Follow the instructions to install GPRPy.

---

Remember that missing dependencies or libraries can always be managed by pip which lets you download, install, upgrade, and remove packages:

pip install package_name

---

4. Launch Jupyter

Once the desired environment is active, start Jupyter:

jupyter lab

πŸ“˜ Basic Python & Jupyter Instructions

For dummy users, a quick guide is available here:
πŸ“„ Python & Jupyter Guide
and a "Getting started Notebook" here