Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump codecov/codecov-action from 4.6.0 to 5.0.2 in the actions group #224

Merged
merged 2 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ jobs:
--cov-report=term --durations=20 --arraydiff -m"not slow"

- name: Upload coverage report
uses: codecov/codecov-action@v4.6.0
uses: codecov/codecov-action@v5.0.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
26 changes: 1 addition & 25 deletions src/coordinax/_src/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@
from unxt.quantity import AbstractQuantity, Quantity, UncheckedQuantity

from coordinax._src.base.base import AbstractVector
from coordinax._src.d1.cartesian import CartesianAcc1D, CartesianPos1D, CartesianVel1D
from coordinax._src.d1.cartesian import CartesianAcc1D, CartesianVel1D
from coordinax._src.d1.radial import RadialAcc, RadialVel
from coordinax._src.d2.cartesian import CartesianAcc2D, CartesianVel2D
from coordinax._src.d3.cartesian import CartesianAcc3D, CartesianVel3D
from coordinax._src.operators.base import AbstractOperator, op_call_dispatch
from coordinax._src.typing import TimeBatchOrScalar
from coordinax._src.utils import full_shaped

#####################################################################
Expand Down Expand Up @@ -206,25 +204,3 @@ def vec_diff_to_q(obj: QConvertible3D, /) -> Shaped[Quantity, "*batch 3"]:

"""
return convert(_vec_diff_to_q(obj), Quantity)


#####################################################################
# Operators


Q1: TypeAlias = Shaped[Quantity["length"], "*#batch 1"]


@op_call_dispatch
def call(self: AbstractOperator, x: Q1, /) -> Q1:
"""Dispatch to the operator's `__call__` method."""
return convert(self(CartesianPos1D.from_(x)), Quantity)


@op_call_dispatch
def call(
self: AbstractOperator, x: Q1, t: TimeBatchOrScalar, /
) -> tuple[Q1, TimeBatchOrScalar]:
"""Dispatch to the operator's `__call__` method."""
vec, t = self(CartesianPos1D.from_(x), t)
return convert(vec, Quantity), t
2 changes: 1 addition & 1 deletion src/coordinax/_src/d1/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@op_call_dispatch
def call(self: AbstractOperator, x: Q1, /) -> Q1:
"""Dispatch to the operator's `__call__` method."""
return self(CartesianPos1D.from_(x))
return convert(self(CartesianPos1D.from_(x)), Quantity)


@op_call_dispatch
Expand Down