Skip to content

Commit 973a626

Browse files
Initial files (#1)
* Initial files * Update notebook images * Fix pylint * Add test install * Add setup tools * Add readme * Add dill import * Fix some review comments * Fix status * Fix review * Another review fixes * Copy headers; update notebook * Update images in a notebook
1 parent 5449f3e commit 973a626

File tree

16 files changed

+3474
-0
lines changed

16 files changed

+3474
-0
lines changed

.github/workflows/status.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: status
2+
3+
on: [push]
4+
5+
jobs:
6+
7+
lint-test:
8+
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Update pylint
15+
run: pip3 install -U pylint
16+
17+
- name: Check pylint
18+
run: pylint -rn --rcfile pylintrc segfast

.github/workflows/test-install.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Test installation
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
10+
# -----------------------------------------
11+
# Use a module from local source
12+
# -----------------------------------------
13+
use_as_local_module:
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-latest, macos-latest, windows-latest]
19+
python-version: [3.8, 3.9]
20+
21+
runs-on: ${{ matrix.os }}
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
26+
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
27+
uses: actions/setup-python@v2
28+
with:
29+
python-version: ${{ matrix.python-version }}
30+
31+
- name: Install requirements
32+
run: |
33+
pip install --user -U pip
34+
pip install --user -r requirements.txt
35+
36+
- name: Run 'import segfast'
37+
run: python -c 'import segfast'
38+
39+
40+
41+
# -----------------------------------------
42+
# Install with pip
43+
# -----------------------------------------
44+
install_with_pip:
45+
46+
strategy:
47+
fail-fast: false
48+
matrix:
49+
os: [ubuntu-latest, macos-latest, windows-latest]
50+
python-version: [3.8, 3.9]
51+
52+
runs-on: ${{ matrix.os }}
53+
54+
steps:
55+
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
56+
uses: actions/setup-python@v2
57+
with:
58+
python-version: ${{ matrix.python-version }}
59+
60+
- name: Install with pip
61+
run: |
62+
pip install --user -U pip
63+
pip install wheel
64+
pip install --user git+https://github.com/${{ github.event.pull_request.head.repo.full_name }}.git@${{ github.head_ref }}#egg=segfast
65+
66+
- name: Run 'import segfast'
67+
run: python -c 'import segfast'

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<div align="center">
2+
3+
# SEGFAST
4+
5+
<a href="#installation">Installation</a> • <a href="#getting-started">Getting Started</a>
6+
7+
</div>
8+
9+
---
10+
11+
**segfast** is a library for interacting with SEG-Y seismic data.

examples/01_Basic_usage.ipynb

Lines changed: 960 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)