From 8d46264c5a38ac3b83936d1f696cdad754445901 Mon Sep 17 00:00:00 2001 From: Sean Hoyt Date: Thu, 16 Apr 2026 14:02:56 -0600 Subject: [PATCH 1/5] changed goodtime start to goodtime end --- .pre-commit-config.yaml | 14 ++++++-------- imap_processing/lo/l1b/lo_l1b.py | 2 +- pyproject.toml | 2 +- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 861b63e54..9fab0354e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,30 +17,28 @@ repos: - id: no-commit-to-branch args: [--branch, main, --branch, dev] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.13.3' + rev: 'v0.15.10' hooks: - id: ruff-check args: [--fix] - id: ruff-format - repo: https://github.com/codespell-project/codespell - rev: v2.4.1 + rev: v2.4.2 hooks: - id: codespell files: ^.*\.(py|md|rst|yml)$ - repo: https://github.com/python-poetry/poetry - rev: '1.8.0' # add version here + rev: '2.3.2' # add version here hooks: - id: poetry-check - - id: poetry-lock - args: [--no-update] - repo: https://github.com/numpy/numpydoc - rev: 'v1.9.0' + rev: 'v1.10.0' hooks: - id: numpydoc-validation exclude: '^imap_processing/tests/|.*test.*' - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.18.2' + rev: 'v1.20.1' hooks: - id: mypy exclude: .*(tests|docs).* - additional_dependencies: [ numpy==2.3.5 ] + additional_dependencies: [ numpy==2.2.6 ] diff --git a/imap_processing/lo/l1b/lo_l1b.py b/imap_processing/lo/l1b/lo_l1b.py index b6ce01d51..3b60849ea 100644 --- a/imap_processing/lo/l1b/lo_l1b.py +++ b/imap_processing/lo/l1b/lo_l1b.py @@ -497,7 +497,7 @@ def set_esa_mode( # Get the sweep table rows that correspond to the time period of the pointing pointing_sweep_df = sweep_df[ - (sweep_df["GoodTime_start"] >= pointing_start_met) + (sweep_df["GoodTime_end"] >= pointing_start_met) & (sweep_df["GoodTime_start"] <= pointing_end_met) ] diff --git a/pyproject.toml b/pyproject.toml index 0abdf6175..09b8d0f04 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "poetry_dynamic_versioning.backend" [tool.poetry] name = "imap-processing" # Gets updated dynamically by the poetry-dynamic-versioning plugin -version = "1.0.25.post6.dev0+882be304" +version = "0.0.0" description = "IMAP Science Operations Center Processing" authors = ["IMAP SDC Developers "] readme = "README.md" From d7a05ca6b43b1848c50a8742335c4904578e9085 Mon Sep 17 00:00:00 2001 From: Sean Hoyt Date: Thu, 16 Apr 2026 14:04:14 -0600 Subject: [PATCH 2/5] changed goodtime start to goodtime end --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9fab0354e..d3aa9d8ad 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,6 +31,8 @@ repos: rev: '2.3.2' # add version here hooks: - id: poetry-check + - id: poetry-lock + args: [--no-update] - repo: https://github.com/numpy/numpydoc rev: 'v1.10.0' hooks: From 3cf46244e947a743953f2b3894dcb4311550dd1f Mon Sep 17 00:00:00 2001 From: Sean Hoyt Date: Thu, 16 Apr 2026 14:06:33 -0600 Subject: [PATCH 3/5] removed --no-update due to deprecation --- .pre-commit-config.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d3aa9d8ad..f41ad9070 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,7 +32,6 @@ repos: hooks: - id: poetry-check - id: poetry-lock - args: [--no-update] - repo: https://github.com/numpy/numpydoc rev: 'v1.10.0' hooks: From 25909074c2510bb0cc01061a9ebd95ae42ccdce6 Mon Sep 17 00:00:00 2001 From: Sean Hoyt Date: Thu, 16 Apr 2026 15:13:11 -0600 Subject: [PATCH 4/5] added 3.12 req to precommit hook --- .pre-commit-config.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f41ad9070..889a48110 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,29 +17,31 @@ repos: - id: no-commit-to-branch args: [--branch, main, --branch, dev] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.15.10' + rev: 'v0.13.3' hooks: - id: ruff-check args: [--fix] - id: ruff-format - repo: https://github.com/codespell-project/codespell - rev: v2.4.2 + rev: v2.4.1 hooks: - id: codespell files: ^.*\.(py|md|rst|yml)$ - repo: https://github.com/python-poetry/poetry - rev: '2.3.2' # add version here + rev: '1.8.0' # add version here hooks: - id: poetry-check - id: poetry-lock + args: [--no-update] - repo: https://github.com/numpy/numpydoc - rev: 'v1.10.0' + rev: 'v1.9.0' hooks: - id: numpydoc-validation exclude: '^imap_processing/tests/|.*test.*' - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.20.1' + rev: 'v1.18.2' hooks: - id: mypy + language_version: python3.12 exclude: .*(tests|docs).* - additional_dependencies: [ numpy==2.2.6 ] + additional_dependencies: [ numpy==2.3.5 ] From e2e8f83cb538dc96138f2236547e6d1195526988 Mon Sep 17 00:00:00 2001 From: Sean Hoyt Date: Thu, 16 Apr 2026 15:22:52 -0600 Subject: [PATCH 5/5] reverted pre-commit hook file --- .pre-commit-config.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 889a48110..861b63e54 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -42,6 +42,5 @@ repos: rev: 'v1.18.2' hooks: - id: mypy - language_version: python3.12 exclude: .*(tests|docs).* additional_dependencies: [ numpy==2.3.5 ]