Skip to content

Commit

Permalink
working...
Browse files Browse the repository at this point in the history
  • Loading branch information
byrdie committed Nov 9, 2024
1 parent 0ecbfe9 commit 0be01c9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions named_arrays/_functions/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,12 +729,12 @@ def degree(self) -> int:

@property
@abc.abstractmethod
def components_polynomial(self):
"""the components of the input that this polynomial depends on"""
def components_polynomial(self) -> dict(str, na.AbstractScalar):
"""The components of the input that this polynomial depends on."""

@property
@abc.abstractmethod
def axis_polynomial(self):
def axis_polynomial(self) -> None | str | Sequence[str]:
"""the logical axes along which this polynomial is distributed"""

@abc.abstractmethod
Expand All @@ -756,7 +756,10 @@ def design_matrix(
the set of independent variables to convert into the design matrix
"""

def __call__(self, inputs: na.ScalarArray | na.AbstractVectorArray):
def __call__(
self,
inputs: float | u.Quantity | na.ScalarArray | na.AbstractVectorArray,
):

inputs_self = self.inputs
if not isinstance(inputs_self, na.AbstractVectorArray):
Expand Down

0 comments on commit 0be01c9

Please sign in to comment.