Skip to content

Commit

Permalink
fix docbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
d-chambers committed Nov 8, 2024
1 parent dc1d36f commit 1ddf569
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
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

0 comments on commit 1ddf569

Please sign in to comment.