From 1a42c0494093a318d72502982b9571134ae33fe9 Mon Sep 17 00:00:00 2001 From: Altay Sansal Date: Mon, 26 Jun 2023 15:13:05 -0500 Subject: [PATCH 1/6] rename shot to shot_point --- src/mdio/segy/geometry.py | 6 +++--- tests/integration/test_segy_import_export.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mdio/segy/geometry.py b/src/mdio/segy/geometry.py index cb1f3fa6..5d4bb976 100644 --- a/src/mdio/segy/geometry.py +++ b/src/mdio/segy/geometry.py @@ -153,7 +153,7 @@ def check_required_params(self, grid_overrides: dict[str, str | int]) -> None: class AutoChannelWrap(GridOverrideCommand): """Automatically determine Streamer acquisition type.""" - required_keys = {"shot", "cable", "channel"} + required_keys = {"shot_point", "cable", "channel"} required_parameters = None def validate( @@ -204,7 +204,7 @@ def transform( class ChannelWrap(GridOverrideCommand): """Wrap channels to start from one at cable boundaries.""" - required_keys = {"shot", "cable", "channel"} + required_keys = {"shot_point", "cable", "channel"} required_parameters = {"ChannelsPerCable"} def validate( @@ -234,7 +234,7 @@ def transform( class CalculateCable(GridOverrideCommand): """Calculate cable numbers from unwrapped channels.""" - required_keys = {"shot", "cable", "channel"} + required_keys = {"shot_point", "cable", "channel"} required_parameters = {"ChannelsPerCable"} def validate( diff --git a/tests/integration/test_segy_import_export.py b/tests/integration/test_segy_import_export.py index e2e60853..41cf1430 100644 --- a/tests/integration/test_segy_import_export.py +++ b/tests/integration/test_segy_import_export.py @@ -18,7 +18,7 @@ @pytest.mark.parametrize("header_locations", [(17, 137, 13)]) -@pytest.mark.parametrize("header_names", [("shot", "cable", "channel")]) +@pytest.mark.parametrize("header_names", [("shot_point", "cable", "channel")]) @pytest.mark.parametrize("header_types", [("int32", "int16", "int32")]) @pytest.mark.parametrize("endian", ["big"]) @pytest.mark.parametrize("grid_overrides", [{"AutoChannelWrap": True}, None]) From 0ab29197f12109a0a091ceecc86d030e4b9cf30e Mon Sep 17 00:00:00 2001 From: Altay Sansal Date: Mon, 26 Jun 2023 15:29:06 -0500 Subject: [PATCH 2/6] fix broken shot header mock --- tests/unit/test_segy_grid_overrides.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_segy_grid_overrides.py b/tests/unit/test_segy_grid_overrides.py index c86aae2d..9bbf4cf1 100644 --- a/tests/unit/test_segy_grid_overrides.py +++ b/tests/unit/test_segy_grid_overrides.py @@ -35,7 +35,7 @@ def mock_streamer_headers() -> dict[str, npt.NDArray]: permutations[shot_mask, -1] = arange(1, len(CABLES) * len(RECEIVERS) + 1) result = dict( - shot=permutations[:, 0], + shot_point=permutations[:, 0], cable=permutations[:, 1], channel=permutations[:, 2], ) From dbd8d8593c8cf6c67d5c7d0ca18195f2b2725726 Mon Sep 17 00:00:00 2001 From: Altay Sansal Date: Mon, 26 Jun 2023 15:40:19 -0500 Subject: [PATCH 3/6] release `v0.4.0` --- pyproject.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 57fd68a1..d84fbb71 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,10 @@ [tool.poetry] name = "multidimio" -version = "0.3.1" +version = "0.4.0" description = "Cloud-native, scalable, and user-friendly multi dimensional energy data!" authors = ["TGS "] maintainers = [ "Altay Sansal ", - "Sri Kainkaryam ", ] license = "Apache-2.0" readme = "README.md" From ca7f661264ec2f22df4494e7b6aaaee213fac86b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 1 Jul 2023 14:48:56 +0000 Subject: [PATCH 4/6] Bump virtualenv from 20.23.0 to 20.23.1 in /.github/workflows Bumps [virtualenv](https://github.com/pypa/virtualenv) from 20.23.0 to 20.23.1. - [Release notes](https://github.com/pypa/virtualenv/releases) - [Changelog](https://github.com/pypa/virtualenv/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/virtualenv/compare/20.23.0...20.23.1) --- updated-dependencies: - dependency-name: virtualenv dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/constraints.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/constraints.txt b/.github/workflows/constraints.txt index 00af2b09..cbd74d24 100644 --- a/.github/workflows/constraints.txt +++ b/.github/workflows/constraints.txt @@ -1,4 +1,4 @@ pip==23.1.2 nox==2023.4.22 nox-poetry==1.0.2 -virtualenv==20.23.0 +virtualenv==20.23.1 From 6161b9323f404e92fec7bdcda14afe1f534b84e7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 1 Jul 2023 14:52:59 +0000 Subject: [PATCH 5/6] Bump release-drafter/release-drafter from 5.23.0 to 5.24.0 Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5.23.0 to 5.24.0. - [Release notes](https://github.com/release-drafter/release-drafter/releases) - [Commits](https://github.com/release-drafter/release-drafter/compare/v5.23.0...v5.24.0) --- updated-dependencies: - dependency-name: release-drafter/release-drafter dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c3a1e465..d8dfa6ff 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -71,7 +71,7 @@ jobs: repository_url: https://test.pypi.org/legacy/ - name: Publish the release notes - uses: release-drafter/release-drafter@v5.23.0 + uses: release-drafter/release-drafter@v5.24.0 with: publish: ${{ steps.check-version.outputs.tag != '' }} tag: ${{ steps.check-version.outputs.tag }} From 6f088d3fe40830fa2434f1af6bb8d0ccd67b124e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 6 Jul 2023 18:38:40 +0000 Subject: [PATCH 6/6] Bump pypa/gh-action-pypi-publish from 1.8.6 to 1.8.7 Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.8.6 to 1.8.7. - [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases) - [Commits](https://github.com/pypa/gh-action-pypi-publish/compare/v1.8.6...v1.8.7) --- updated-dependencies: - dependency-name: pypa/gh-action-pypi-publish dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d8dfa6ff..7ed6d5cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,14 +57,14 @@ jobs: - name: Publish package on PyPI if: steps.check-version.outputs.tag - uses: pypa/gh-action-pypi-publish@v1.8.6 + uses: pypa/gh-action-pypi-publish@v1.8.7 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.6 + uses: pypa/gh-action-pypi-publish@v1.8.7 with: user: __token__ password: ${{ secrets.TEST_PYPI_TOKEN }}