Skip to content

Commit a1e24bf

Browse files
committed
_Filters -> Filters is now part of public API
1 parent 3c30612 commit a1e24bf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/stagpy/stagyydata.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ def _bind(self, isnap: int, istep: int) -> None:
489489

490490

491491
@dataclass(frozen=True)
492-
class _Filters:
492+
class Filters:
493493
"""Filters on a step view."""
494494

495495
snap: bool = False
@@ -510,8 +510,8 @@ def passes(self, step: Step) -> bool:
510510
return False
511511
return all(func(step) for func in self.funcs)
512512

513-
def compose_with(self, other: _Filters) -> _Filters:
514-
return _Filters(
513+
def compose_with(self, other: Filters) -> Filters:
514+
return Filters(
515515
snap=self.snap or other.snap,
516516
rprofs=self.rprofs or other.rprofs,
517517
fields=self.fields | other.fields,
@@ -534,7 +534,7 @@ class StepsView:
534534
def __init__(self, steps_col: Steps | Snaps, items: Sequence[StepIndex]):
535535
self._col = steps_col
536536
self._items = items
537-
self._flt = _Filters()
537+
self._flt = Filters()
538538

539539
@cached_property
540540
def rprofs_averaged(self) -> RprofsAveraged:
@@ -605,7 +605,7 @@ def filter(
605605
Returns:
606606
self.
607607
"""
608-
new_filters = _Filters(
608+
new_filters = Filters(
609609
snap=snap,
610610
rprofs=rprofs,
611611
fields=set() if fields is None else set(fields),

0 commit comments

Comments
 (0)