Skip to content

Conversation

@d-chambers
Copy link
Contributor

@d-chambers d-chambers commented Dec 18, 2025

Description

This PR just adds some missing type hints to patch functions.

Checklist

I have (if applicable):

  • referenced the GitHub issue this PR closes.
  • documented the new feature with docstrings and/or appropriate doc page.
  • included tests. See testing guidelines.
  • added the "ready_for_review" tag once the PR is ready to be reviewed.

Summary by CodeRabbit

  • Refactor

    • Added explicit type annotations to many public processing and visualization function signatures; one parameter now restricts allowed values.
  • Behavior

    • Numeric returns more consistently cast to native floats; single-value unpacking is now guarded to avoid accidental unwrapping.
    • Integration routine selection made explicit (no functional change).
  • Chores

    • Minor CI workflow comment cleanup.
  • Tests

    • Updated tests to reflect explicit integration selection.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 18, 2025

Walkthrough

Adds explicit type annotations to many public function signatures across processing and visualization modules, narrows detrend's type to a Literal, returns Python floats in an IO helper, centralizes trapezoid/trapz selection for integrate, and removes an inline comment from a CI workflow. No runtime/control-flow changes reported.

Changes

Cohort / File(s) Change Summary
Coords
dascore/proc/coords.py
snap_coords and sort_coords now annotate reverse: bool = False and declare return -> PatchType.
Correlation
dascore/proc/correlate.py
correlate_shift(patch: PatchType, dim: str, undo_weighting: bool = True) -> PatchType; correlate(..., samples: bool = False, ...) -> PatchType.
Detrend
dascore/proc/detrend.py
detrend(patch: PatchType, dim: str, type: Literal["linear", "constant"] = "linear") (adds Literal typing).
Filters
dascore/proc/filter.py
Multiple filter functions gained explicit parameter and return type annotations (e.g., pass_filter, sobel_filter, median_filter, notch_filter, savgol_filter, gaussian_filter).
Hampel
dascore/proc/hampel.py
hampel_filter(..., *, threshold: float = 10.0, samples: bool = False, approximate: bool = True, ...) -> PatchType.
Resample / Decimate
dascore/proc/resample.py
decimate(..., copy: bool = True, ...) -> PatchType; resample(patch: PatchType, window=None, interp_kind: str = "linear", samples: bool = False, **kwargs) -> PatchType (annotations and parameter order clarified).
Wiener
dascore/proc/wiener.py
`wiener_filter(patch: PatchType, *, noise: float
Visualization
dascore/viz/waterfall.py, dascore/viz/wiggle.py
waterfall(..., cmap: str = "bwr", ...) -> plt.Axes; `wiggle(patch: PatchType, dim: str = "time", scale: float = 1, alpha: float = 0.2, color: str = "black", shade: bool = False, ax: plt.Axes
IO / Utilities
dascore/io/febus/utils.py, dascore/utils/misc.py
_get_block_time now returns Python float for scalar paths; _maybe_unpack only unpacks when size == 1 and a truthy shape.
Transform (integrate)
dascore/transform/integrate.py, tests/test_transform/test_integrate.py
Replaced nested getattr fallback with explicit trap_name = "trapezoid" if hasattr(np, "trapezoid") else "trapz" then getattr(np, trap_name).
CI Workflow
.github/workflows/profile.yml
Removed an inline comment from the token line in the workflow step (no functional change).

Possibly related PRs

  • Hampel Filter #543: Modifies dascore/proc/hampel.py (hampel_filter implementation/ABI), which directly overlaps the signature/type changes made here.

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Description check ❓ Inconclusive The description provides a brief explanation of the PR purpose but lacks details about the scope and specific changes made to the codebase. Expand the description to outline which patch functions were modified, mention the workflow file change, and clarify the utility function updates beyond type hints.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately and concisely describes the main change—adding type hints to patch functions across multiple modules.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch type_hint_improvements

📜 Recent review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8250245 and 16f8db8.

📒 Files selected for processing (1)
  • dascore/transform/integrate.py
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (18)
  • GitHub Check: test_code (ubuntu-latest, 3.11)
  • GitHub Check: test_code (windows-latest, 3.10)
  • GitHub Check: test_code (windows-latest, 3.11)
  • GitHub Check: test_code (windows-latest, 3.13)
  • GitHub Check: test_code (macos-latest, 3.13)
  • GitHub Check: test_code (ubuntu-latest, 3.13)
  • GitHub Check: test_code (ubuntu-latest, 3.12)
  • GitHub Check: test_code (macos-latest, 3.12)
  • GitHub Check: test_code (windows-latest, 3.12)
  • GitHub Check: test_code (ubuntu-latest, 3.10)
  • GitHub Check: test_code (macos-latest, 3.11)
  • GitHub Check: test_code_min_deps (ubuntu-latest, 3.13)
  • GitHub Check: test_code_min_deps (macos-latest, 3.13)
  • GitHub Check: test_code_min_deps (windows-latest, 3.13)
  • GitHub Check: test_code_min_deps (windows-latest, 3.12)
  • GitHub Check: test_code_min_deps (ubuntu-latest, 3.12)
  • GitHub Check: test_code_min_deps (macos-latest, 3.12)
  • GitHub Check: Run benchmarks
🔇 Additional comments (3)
dascore/transform/integrate.py (3)

19-20: LGTM! Clean NumPy version compatibility.

Centralizing the trapezoid/trapz selection at module level is a good refactor that eliminates repeated getattr lookups at runtime while maintaining compatibility with both NumPy 1.x (trapz) and NumPy 2.x (trapezoid).


52-54: LGTM! Efficient use of centralized function.

Using the pre-determined _TRAP_FUNC correctly handles both array-valued spacing (x parameter) and scalar spacing (dx parameter) cases while preserving the original behavior.


19-54: PR description inconsistency: No type hints added in this file.

The PR title and description claim this PR "adds missing type hints to patch functions," but this file contains no new type hints. The actual changes refactor NumPy compatibility logic for trapezoid/trapz selection.

Either type hints were added in other files not included in this review, or the PR description doesn't accurately reflect the changes.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai bot added proc Related to processing module ready_for_review PR is ready for review viz Related to visualization labels Dec 18, 2025
@codecov
Copy link

codecov bot commented Dec 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.92%. Comparing base (1ebc98f) to head (16f8db8).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #590   +/-   ##
=======================================
  Coverage   99.92%   99.92%           
=======================================
  Files         129      129           
  Lines       11272    11274    +2     
=======================================
+ Hits        11264    11266    +2     
  Misses          8        8           
Flag Coverage Δ
unittests 99.92% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
dascore/proc/detrend.py (1)

15-15: Consider renaming parameter to avoid shadowing built-in.

The parameter name type shadows Python's built-in type() function. While this doesn't break functionality, consider renaming to detrend_type or method in a future refactor for better code hygiene.

📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1ebc98f and bb5379e.

📒 Files selected for processing (9)
  • dascore/proc/coords.py (2 hunks)
  • dascore/proc/correlate.py (2 hunks)
  • dascore/proc/detrend.py (1 hunks)
  • dascore/proc/filter.py (6 hunks)
  • dascore/proc/hampel.py (1 hunks)
  • dascore/proc/resample.py (2 hunks)
  • dascore/proc/wiener.py (1 hunks)
  • dascore/viz/waterfall.py (1 hunks)
  • dascore/viz/wiggle.py (1 hunks)
🧰 Additional context used
🧬 Code graph analysis (2)
dascore/proc/detrend.py (1)
dascore/utils/patch.py (1)
  • patch_function (183-289)
dascore/proc/coords.py (2)
tests/conftest.py (1)
  • patch (379-381)
dascore/core/patch.py (1)
  • coords (255-269)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (18)
  • GitHub Check: test_code (windows-latest, 3.13)
  • GitHub Check: test_code (windows-latest, 3.12)
  • GitHub Check: test_code (macos-latest, 3.13)
  • GitHub Check: test_code (ubuntu-latest, 3.11)
  • GitHub Check: test_code (windows-latest, 3.11)
  • GitHub Check: test_code (windows-latest, 3.10)
  • GitHub Check: test_code (macos-latest, 3.10)
  • GitHub Check: test_code (ubuntu-latest, 3.13)
  • GitHub Check: test_code (macos-latest, 3.11)
  • GitHub Check: test_code (ubuntu-latest, 3.12)
  • GitHub Check: test_code (ubuntu-latest, 3.10)
  • GitHub Check: test_code_min_deps (ubuntu-latest, 3.13)
  • GitHub Check: test_code_min_deps (ubuntu-latest, 3.12)
  • GitHub Check: test_code_min_deps (windows-latest, 3.13)
  • GitHub Check: test_code_min_deps (windows-latest, 3.12)
  • GitHub Check: test_code_min_deps (macos-latest, 3.13)
  • GitHub Check: test_code_min_deps (macos-latest, 3.12)
  • GitHub Check: Run benchmarks
🔇 Additional comments (16)
dascore/proc/detrend.py (1)

14-16: LGTM! Type hints correctly applied.

The type annotations are accurate and the use of Literal appropriately restricts the type parameter to valid values.

dascore/proc/hampel.py (1)

98-105: LGTM! Type hints correctly applied.

The explicit type annotations for samples, approximate, and the return type are accurate and improve code clarity without altering behavior.

dascore/viz/wiggle.py (1)

54-63: LGTM! Type hints correctly applied.

All parameter type annotations are accurate and consistent with the function's documented behavior and implementation.

dascore/proc/wiener.py (1)

15-21: LGTM! Type hints correctly applied.

The type annotations are accurate. The use of float | None union syntax requires Python 3.10+, which should be fine if that's already the project's minimum version.

dascore/proc/coords.py (2)

24-25: LGTM! Type hints correctly applied.

The type annotations for reverse parameter and return type are accurate.


61-62: LGTM! Type hints correctly applied.

The type annotations for reverse parameter and return type are accurate.

dascore/proc/correlate.py (2)

38-40: LGTM! Type hints correctly applied.

The type annotations for dim, undo_weighting, and return type are accurate and improve code clarity.


90-95: LGTM! Type hints correctly applied.

The type annotation for samples parameter is accurate.

dascore/viz/waterfall.py (1)

135-144: LGTM! Type hints correctly applied.

The type annotation for cmap parameter is accurate and consistent with matplotlib's API.

dascore/proc/resample.py (2)

40-45: LGTM! Type hints correctly applied.

The type annotation for copy parameter is accurate.


157-163: LGTM! Type hints correctly applied.

The type annotations for interp_kind, samples, and return type are accurate. The window parameter remains untyped, which is acceptable for this focused type-hinting PR.

dascore/proc/filter.py (5)

98-100: LGTM!

The type hints accurately reflect the function signature and match the implementation.


206-212: LGTM!

The type hints accurately reflect the function signature. The cval type hint inconsistency is already noted in the sobel_filter review.


262-262: LGTM!

The type hints accurately reflect the function signature and match the implementation.


330-337: LGTM!

The type hints accurately reflect the function signature. The cval type hint inconsistency is already noted in the sobel_filter review.


397-404: LGTM!

The type hints accurately reflect the function signature. The cval type hint inconsistency is already noted in the sobel_filter review.

@codspeed-hq
Copy link

codspeed-hq bot commented Dec 18, 2025

CodSpeed Performance Report

Merging #590 will not alter performance

Comparing type_hint_improvements (16f8db8) with master (1ebc98f)

Summary

✅ 54 untouched
⏩ 2 skipped1

Footnotes

  1. 2 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
dascore/proc/filter.py (1)

210-210: Consider unifying cval type hints across filter functions for consistency.

The cval parameter is typed as float in median_filter (line 210), savgol_filter (line 335), and gaussian_filter (line 401), while sobel_filter uses float | int (line 152). Since the underlying scipy functions (scipy.ndimage.median_filter, scipy.signal.savgol_filter, and scipy.ndimage.gaussian_filter) all accept numeric types, consider updating these type hints to float | int for consistency and accuracy.

🔎 Proposed fix for consistency

Update the type hints in the three functions:

 def median_filter(
     patch: PatchType,
     samples: bool = False,
     mode: str = "reflect",
-    cval: float = 0.0,
+    cval: float | int = 0.0,
     **kwargs,
 ) -> PatchType:
 def savgol_filter(
     patch: PatchType,
     polyorder: int,
     samples: bool = False,
     mode: str = "interp",
-    cval: float = 0.0,
+    cval: float | int = 0.0,
     **kwargs,
 ) -> PatchType:
 def gaussian_filter(
     patch: PatchType,
     samples: bool = False,
     mode: str = "reflect",
-    cval: float = 0.0,
+    cval: float | int = 0.0,
     truncate: float = 4.0,
     **kwargs,
 ) -> PatchType:

Also applies to: 335-335, 401-401

📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between bb5379e and 19ac527.

📒 Files selected for processing (1)
  • dascore/proc/filter.py (6 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
dascore/proc/filter.py (1)
tests/conftest.py (1)
  • patch (379-381)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (18)
  • GitHub Check: test_code_min_deps (macos-latest, 3.12)
  • GitHub Check: test_code_min_deps (windows-latest, 3.12)
  • GitHub Check: test_code_min_deps (ubuntu-latest, 3.13)
  • GitHub Check: test_code_min_deps (ubuntu-latest, 3.12)
  • GitHub Check: test_code_min_deps (windows-latest, 3.13)
  • GitHub Check: test_code (ubuntu-latest, 3.11)
  • GitHub Check: test_code (windows-latest, 3.12)
  • GitHub Check: test_code (windows-latest, 3.10)
  • GitHub Check: test_code (windows-latest, 3.13)
  • GitHub Check: test_code (macos-latest, 3.12)
  • GitHub Check: test_code (ubuntu-latest, 3.10)
  • GitHub Check: test_code (macos-latest, 3.13)
  • GitHub Check: test_code (windows-latest, 3.11)
  • GitHub Check: test_code (ubuntu-latest, 3.13)
  • GitHub Check: test_code (macos-latest, 3.11)
  • GitHub Check: test_code (macos-latest, 3.10)
  • GitHub Check: test_code (ubuntu-latest, 3.12)
  • GitHub Check: Run benchmarks
🔇 Additional comments (3)
dascore/proc/filter.py (3)

98-100: LGTM! Type hints are accurate.

The type hints correctly reflect the parameter types and return type.


151-153: LGTM! Past review comment addressed.

The cval type hint now correctly reflects the runtime validation that accepts both float | int.


262-262: LGTM! Type hints are accurate.

The type hints correctly reflect the parameter types and return type.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 19ac527 and 7f8188a.

📒 Files selected for processing (1)
  • .github/workflows/profile.yml (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (18)
  • GitHub Check: test_code (ubuntu-latest, 3.12)
  • GitHub Check: test_code (windows-latest, 3.11)
  • GitHub Check: test_code (windows-latest, 3.10)
  • GitHub Check: test_code (ubuntu-latest, 3.10)
  • GitHub Check: test_code (windows-latest, 3.13)
  • GitHub Check: test_code (ubuntu-latest, 3.11)
  • GitHub Check: test_code (macos-latest, 3.13)
  • GitHub Check: test_code (windows-latest, 3.12)
  • GitHub Check: test_code (macos-latest, 3.10)
  • GitHub Check: test_code (macos-latest, 3.11)
  • GitHub Check: test_code (ubuntu-latest, 3.13)
  • GitHub Check: test_code_min_deps (ubuntu-latest, 3.13)
  • GitHub Check: test_code_min_deps (ubuntu-latest, 3.12)
  • GitHub Check: test_code_min_deps (windows-latest, 3.13)
  • GitHub Check: test_code_min_deps (macos-latest, 3.13)
  • GitHub Check: test_code_min_deps (macos-latest, 3.12)
  • GitHub Check: test_code_min_deps (windows-latest, 3.12)
  • GitHub Check: Run benchmarks

mode: instrumentation
run: ./.github/test_code.sh profile
token: ${{ secrets.CODSPEED_TOKEN }} # Optional for public repos
token: ${{ secrets.CODSPEED_TOKEN }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Restore the removed comment or revert this change.

The removal of the "Optional for public repos" comment reduces documentation clarity about when the CODSPEED_TOKEN is required. This change is also unrelated to the PR's stated objective of adding type hints.

🔎 Proposed fix
-          token: ${{ secrets.CODSPEED_TOKEN }}
+          token: ${{ secrets.CODSPEED_TOKEN }} # Optional for public repos
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
token: ${{ secrets.CODSPEED_TOKEN }}
token: ${{ secrets.CODSPEED_TOKEN }} # Optional for public repos
🤖 Prompt for AI Agents
.github/workflows/profile.yml around line 39: the inline comment "Optional for
public repos" that clarified when CODSPEED_TOKEN is required was removed,
reducing clarity; restore that comment immediately above or beside the token
line (token: ${{ secrets.CODSPEED_TOKEN }}) or revert the commit that removed it
so the workflow again documents that the secret is optional for public
repositories; keep wording consistent with repository style.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7f8188a and 3230009.

📒 Files selected for processing (2)
  • dascore/io/febus/utils.py (1 hunks)
  • dascore/utils/misc.py (1 hunks)
🧰 Additional context used
🧬 Code graph analysis (2)
dascore/utils/misc.py (3)
dascore/core/coordmanager.py (2)
  • shape (798-804)
  • size (807-809)
dascore/core/patch.py (2)
  • shape (286-299)
  • size (302-315)
dascore/core/coords.py (1)
  • size (473-475)
dascore/io/febus/utils.py (1)
dascore/utils/misc.py (1)
  • _maybe_unpack (463-469)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (18)
  • GitHub Check: test_code (windows-latest, 3.13)
  • GitHub Check: test_code (windows-latest, 3.10)
  • GitHub Check: test_code (macos-latest, 3.13)
  • GitHub Check: test_code (windows-latest, 3.12)
  • GitHub Check: test_code (windows-latest, 3.11)
  • GitHub Check: test_code (macos-latest, 3.10)
  • GitHub Check: test_code (ubuntu-latest, 3.11)
  • GitHub Check: test_code (ubuntu-latest, 3.12)
  • GitHub Check: test_code (ubuntu-latest, 3.13)
  • GitHub Check: test_code (ubuntu-latest, 3.10)
  • GitHub Check: test_code (macos-latest, 3.11)
  • GitHub Check: test_code_min_deps (macos-latest, 3.12)
  • GitHub Check: test_code_min_deps (windows-latest, 3.12)
  • GitHub Check: test_code_min_deps (ubuntu-latest, 3.12)
  • GitHub Check: test_code_min_deps (macos-latest, 3.13)
  • GitHub Check: test_code_min_deps (windows-latest, 3.13)
  • GitHub Check: test_code_min_deps (ubuntu-latest, 3.13)
  • GitHub Check: Run benchmarks
🔇 Additional comments (1)
dascore/io/febus/utils.py (1)

30-57: Usage of updated _maybe_unpack is correct.

The function now uses _maybe_unpack with np.mean(d_time). Since np.mean() returns a 0-dimensional numpy array (with shape=()), the updated _maybe_unpack will return it unchanged rather than attempting to unpack it.

This is the correct behavior given the bug fix in _maybe_unpack. The return value is now a 0-d numpy array instead of a Python scalar, which should be compatible with downstream arithmetic operations (lines 75, 158 use block_time).

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
dascore/transform/integrate.py (1)

48-49: Clearer numpy compatibility check.

The two-step approach using hasattr followed by getattr is more explicit and readable than the previous fallback logic.

However, since the numpy version doesn't change during execution, consider moving this check outside the loop for efficiency:

🔎 Optional refactor to move version check outside loop

Move the check to module level or before the loop in _get_definite_integral:

+# At module level (after imports)
+_TRAP_FUNC = getattr(np, "trapezoid" if hasattr(np, "trapezoid") else "trapz")
+
 def _get_definite_integral(patch, dxs_or_vals, dims, axes):
     """Get a definite integral along axes."""
     
     # ... existing code ...
     
     array = patch.data
     ndims = len(patch.shape)
     for dxs_or_val, ax in zip(dxs_or_vals, axes):
-        # Numpy 2/3 compat code
-        trap_name = "trapezoid" if hasattr(np, "trapezoid") else "trapz"
-        trap = getattr(np, trap_name)
         indexer = broadcast_for_index(ndims, ax, None, fill=slice(None))
         if is_array(dxs_or_val):
-            array = trap(array, x=dxs_or_val, axis=ax)[indexer]
+            array = _TRAP_FUNC(array, x=dxs_or_val, axis=ax)[indexer]
         else:
-            array = trap(array, dx=dxs_or_val, axis=ax)[indexer]
+            array = _TRAP_FUNC(array, dx=dxs_or_val, axis=ax)[indexer]
📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 73f9b8d and e5208e5.

📒 Files selected for processing (2)
  • .github/workflows/profile.yml
  • dascore/transform/integrate.py
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/profile.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (18)
  • GitHub Check: test_code (windows-latest, 3.11)
  • GitHub Check: test_code (ubuntu-latest, 3.11)
  • GitHub Check: test_code (windows-latest, 3.10)
  • GitHub Check: test_code (ubuntu-latest, 3.12)
  • GitHub Check: test_code (ubuntu-latest, 3.10)
  • GitHub Check: test_code_min_deps (windows-latest, 3.13)
  • GitHub Check: test_code (ubuntu-latest, 3.13)
  • GitHub Check: test_code (windows-latest, 3.13)
  • GitHub Check: test_code (windows-latest, 3.12)
  • GitHub Check: test_code (macos-latest, 3.13)
  • GitHub Check: test_code_min_deps (ubuntu-latest, 3.12)
  • GitHub Check: test_code (macos-latest, 3.12)
  • GitHub Check: test_code_min_deps (ubuntu-latest, 3.13)
  • GitHub Check: test_code_min_deps (windows-latest, 3.12)
  • GitHub Check: test_code (macos-latest, 3.11)
  • GitHub Check: test_code_min_deps (macos-latest, 3.12)
  • GitHub Check: test_code_min_deps (macos-latest, 3.13)
  • GitHub Check: Run benchmarks

@d-chambers d-chambers merged commit ebdbecb into master Dec 22, 2025
23 checks passed
@d-chambers d-chambers deleted the type_hint_improvements branch December 22, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

proc Related to processing module ready_for_review PR is ready for review viz Related to visualization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants