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

fix doc build #457

Merged
merged 1 commit into from
Nov 8, 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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,6 @@ docs/**/*.ipynb
# misc
scratch/**
.ruff_cache

docs/index_files
docs/index.quarto_ipynb
6 changes: 3 additions & 3 deletions dascore/utils/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

attr_type = dict[str, Any] | str | Sequence[str] | None

DimAxisValue = namedtuple("DimAxisValue", ["dim", "axis", "value"])
_DimAxisValue = namedtuple("DimAxisValue", ["dim", "axis", "value"])


def _format_values(val):
Expand Down Expand Up @@ -466,7 +466,7 @@ def get_dim_axis_value(
arg_keys: tuple[str] = ("dim", "coord", "dims", "coords"),
allow_multiple: bool = False,
allow_extra: bool = False,
) -> tuple[DimAxisValue, ...]:
) -> tuple[_DimAxisValue, ...]:
"""
Get dimension nane, index, and values from args/kwargs for a patch.

Expand Down Expand Up @@ -541,7 +541,7 @@ def get_dim_axis_value(
# Ensure order is preserved (eg args, then kwargs)
dim_out = tuple(x for x in args + tuple(kwargs) if x in overlap)
# Package everything up and return
out = tuple(DimAxisValue(x, dims.index(x), kwargs.get(x)) for x in dim_out)
out = tuple(_DimAxisValue(x, dims.index(x), kwargs.get(x)) for x in dim_out)
return out


Expand Down
Loading