Skip to content

Commit

Permalink
update for cosmology.api updates (#9)
Browse files Browse the repository at this point in the history
* update for cosmology.api updates
* tests

Signed-off-by: Nathaniel Starkman <nstarman@users.noreply.github.com>
  • Loading branch information
nstarman committed May 14, 2023
1 parent 7caacf4 commit 7853add
Show file tree
Hide file tree
Showing 7 changed files with 356 additions and 138 deletions.
6 changes: 3 additions & 3 deletions src/cosmology/compat/classy/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
from typing_extensions import TypeAlias


NDFloating: TypeAlias = NDArray[floating[Any]]
InputT: TypeAlias = Union[NDFloating, float]
Array: TypeAlias = NDArray[floating[Any]]
InputT: TypeAlias = Union[Array, float]


@dataclass(frozen=True)
class CosmologyWrapper(CosmologyWrapperAPI[NDFloating, InputT]):
class CosmologyWrapper(CosmologyWrapperAPI[Array, InputT]):
"""The Cosmology API wrapper for :mod:`classy`."""

cosmo: classy.Class
Expand Down
Loading

0 comments on commit 7853add

Please sign in to comment.