Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: TGSAI/mdio-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.7.3
Choose a base ref
...
head repository: TGSAI/mdio-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: refs/heads/main
Choose a head ref
Loading
Showing with 4,791 additions and 4,457 deletions.
  1. +1 −0 .flake8
  2. +1 −1 .github/workflows/constraints-poetry.txt
  3. +4 −4 .github/workflows/constraints.txt
  4. +3 −3 .github/workflows/release.yml
  5. +6 −3 .github/workflows/tests.yml
  6. +2 −2 .pre-commit-config.yaml
  7. +1 −1 CONTRIBUTING.md
  8. +201 −192 LICENSE
  9. +1 −0 docs/conf.py
  10. +174 −157 docs/notebooks/quickstart.ipynb
  11. +4 −5 docs/requirements.txt
  12. +38 −13 docs/usage.md
  13. +13 −10 noxfile.py
  14. +2,966 −1,975 poetry.lock
  15. +57 −64 pyproject.toml
  16. +0 −1 src/mdio/__init__.py
  17. +1 −2 src/mdio/__main__.py
  18. +0 −1 src/mdio/api/__init__.py
  19. +8 −4 src/mdio/api/accessor.py
  20. +0 −1 src/mdio/api/io_utils.py
  21. +2 −3 src/mdio/commands/copy.py
  22. +15 −31 src/mdio/commands/segy.py
  23. +0 −1 src/mdio/constants.py
  24. +0 −1 src/mdio/converters/__init__.py
  25. +21 −32 src/mdio/converters/mdio.py
  26. +43 −61 src/mdio/converters/segy.py
  27. +0 −1 src/mdio/core/__init__.py
  28. +3 −9 src/mdio/core/dimension.py
  29. +0 −1 src/mdio/core/exceptions.py
  30. +0 −1 src/mdio/core/grid.py
  31. +5 −11 src/mdio/core/indexing.py
  32. +1 −2 src/mdio/core/serialization.py
  33. +0 −1 src/mdio/core/utils_write.py
  34. +5 −3 src/mdio/exceptions.py
  35. +0 −38 src/mdio/segy/_standards_common.py
  36. +0 −125 src/mdio/segy/_standards_rev0.py
  37. +49 −145 src/mdio/segy/_workers.py
  38. +125 −108 src/mdio/segy/blocked_io.py
  39. +0 −93 src/mdio/segy/byte_utils.py
  40. +138 −0 src/mdio/segy/compat.py
  41. +145 −173 src/mdio/segy/creation.py
  42. +0 −72 src/mdio/segy/ebcdic.py
  43. +0 −5 src/mdio/segy/exceptions.py
  44. +58 −50 src/mdio/segy/geometry.py
  45. +0 −103 src/mdio/segy/headers.py
  46. +0 −113 src/mdio/segy/headers_text.py
  47. +0 −1 src/mdio/segy/helpers_segy.py
  48. +0 −190 src/mdio/segy/ibm_float.py
  49. +26 −109 src/mdio/segy/parsers.py
  50. +60 −56 src/mdio/segy/utilities.py
  51. +12 −17 tests/conftest.py
  52. +55 −49 tests/integration/conftest.py
  53. +94 −162 tests/integration/test_segy_import_export.py
  54. +300 −0 tests/integration/test_segy_import_export_masked.py
  55. +18 −5 tests/test_main.py
  56. +0 −1 tests/unit/conftest.py
  57. +108 −0 tests/unit/test_compat.py
  58. +0 −1 tests/unit/test_dimension.py
  59. +0 −88 tests/unit/test_ibm_ieee.py
  60. +27 −18 tests/unit/test_segy_grid_overrides.py
  61. +0 −1 tests/unit/test_serialization.py
  62. +0 −137 tests/unit/test_text_header.py
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ rst-directives = deprecated

per-file-ignores =
tests/*:S101
tests/integration/test_segy_import_export_masked.py:B950
src/mdio/segy/_standards_rev0.py:B950
src/mdio/segy/ebcdic.py:B950
src/mdio/commands/segy.py:D301
2 changes: 1 addition & 1 deletion .github/workflows/constraints-poetry.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
poetry==1.8.2
poetry==2.0.1
8 changes: 4 additions & 4 deletions .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pip==24.0
nox==2024.3.2
nox-poetry==1.0.3
virtualenv==20.25.1
pip==25.0
nox==2024.10.9
nox-poetry==1.1.0
virtualenv==20.29.1
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -57,21 +57,21 @@ jobs:
- name: Publish package on PyPI
if: steps.check-version.outputs.tag
uses: pypa/gh-action-pypi-publish@v1.8.14
uses: pypa/gh-action-pypi-publish@v1.12.4
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

- name: Publish package on TestPyPI
if: "! steps.check-version.outputs.tag"
uses: pypa/gh-action-pypi-publish@v1.8.14
uses: pypa/gh-action-pypi-publish@v1.12.4
with:
user: __token__
password: ${{ secrets.TEST_PYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/

- name: Publish the release notes
uses: release-drafter/release-drafter@v6.0.0
uses: release-drafter/release-drafter@v6.1.0
with:
publish: ${{ steps.check-version.outputs.tag != '' }}
tag: ${{ steps.check-version.outputs.tag }}
9 changes: 6 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -14,15 +14,15 @@ jobs:
include:
- { python: "3.12", os: "ubuntu-latest", session: "pre-commit" }
- { python: "3.12", os: "ubuntu-latest", session: "safety" }
# - { python: "3.12", os: "ubuntu-latest", session: "mypy" }
# - { python: "3.11", os: "ubuntu-latest", session: "mypy" }
# - { python: "3.10", os: "ubuntu-latest", session: "mypy" }
# - { python: "3.9", os: "ubuntu-latest", session: "mypy" }
- { python: "3.12", os: "ubuntu-latest", session: "tests" }
- { python: "3.11", os: "ubuntu-latest", session: "tests" }
- { python: "3.10", os: "ubuntu-latest", session: "tests" }
- { python: "3.9", os: "ubuntu-latest", session: "tests" }
- { python: "3.12", os: "windows-latest", session: "tests" }
- { python: "3.12", os: "macos-latest", session: "tests" }
# - { python: "3.12", os: "ubuntu-latest", session: "typeguard" }
# - { python: "3.11", os: "ubuntu-latest", session: "typeguard" }
# - { python: "3.10", os: "ubuntu-latest", session: "typeguard" }
# - { python: "3.10", os: "ubuntu-latest", session: "xdoctest" }
@@ -59,6 +59,7 @@ jobs:
- name: Install Poetry
run: |
pipx install --pip-args="-c ${{ github.workspace }}/.github/workflows/constraints-poetry.txt" poetry
pipx inject poetry poetry-plugin-export
poetry --version
- name: Install Nox
@@ -100,6 +101,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: coverage-data-${{ matrix.os }}-${{ matrix.python }}
include-hidden-files: true
path: ".coverage.*"

- name: Upload documentation
@@ -129,6 +131,7 @@ jobs:
- name: Install Poetry
run: |
pipx install --pip-args="-c ${{ github.workspace }}/.github/workflows/constraints-poetry.txt" poetry
pipx inject poetry poetry-plugin-export
poetry --version
- name: Install Nox
@@ -152,6 +155,6 @@ jobs:
nox --session=coverage -- xml
- name: Upload coverage report
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@ repos:
entry: end-of-file-fixer
language: system
types: [text]
stages: [commit, push, manual]
stages: [pre-commit, pre-push, manual]
- id: flake8
name: flake8
entry: flake8
@@ -60,7 +60,7 @@ repos:
entry: trailing-whitespace-fixer
language: system
types: [text]
stages: [commit, push, manual]
stages: [pre-commit, pre-push, manual]
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.0
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ Request features on the [Issue Tracker].

## How to set up your development environment

You need Python 3.9+ and the following tools:
You need Python 3.10+ and the following tools:

- [Poetry]
- [Nox]
Loading