Coder Social home page Coder Social logo

seismic_examples's Introduction

seismic_examples

Install Conda

Protect your system python build system by installing Conda.

Setting up local environment

Now that you've got conda setup, run the following series of commands in the terminal.

cd /whatever/repo/path
git clone https://github.com/tmasthay/seismic_examples.git
cd seismic_examples/FlatVel_A
conda create -n flatvel python=3.10
pip install -r requirements.txt

Getting the data

Simply download the data from the iomt UT box folder and put in the directory /whatever/repo/path.

Running the code

Just run

cd FlatVel_A
python plt.py

and that should generate all the exact same plots that are currently in the UT box plots folder. All the variables that are set for the plotting configuration are set in the file conf/plots.yaml file. This is a somewhat unconventional programming style, but I think it's cleaner since all your variables are on spot rather than scattered throughout the code. Furthermore, the helpers.py file you don't need to worry about much...these are a bunch of functions that make tedious tasks simpler to code with. The only one that you might need to worry about is the bool_slice function. This function is a glorified nested for loop that allows you to change the order that you loop in easily. Let me know if you have any trouble running the code and/or understanding anything.

seismic_examples's People

Contributors

tmasthay avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.