Skip to content

Commit

Permalink
types(mock): Set dtype arg to get right types
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob-Stevens-Haas committed Feb 18, 2024
1 parent 69a65b6 commit 5369b2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ addopts = '-m "not slow"'
markers = ["slow"]

[tool.mypy]
files = ["src/gen_experiments/__init__.py"]
files = ["src/gen_experiments/__init__.py", "src/gen_experiments/utils.py"]

[[tool.mypy.overrides]]
module="auto_ks.*"
Expand Down
4 changes: 2 additions & 2 deletions src/gen_experiments/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from .utils import SINDyTrialData

this_module = importlib.import_module(__name__)
BORING_ARRAY = np.ones((2, 2))
BORING_ARRAY = np.ones((2, 2), dtype=float)

Scores = Mapping[str, float]

Expand Down Expand Up @@ -51,7 +51,7 @@ def run(
# "coefficients": boring_array,
"feature_names": ["1"],
"input_features": ["x", "y"],
"t_train": np.arange(0, 1, 1),
"t_train": np.arange(0, 1, 1, dtype=float),
"x_train": BORING_ARRAY,
"x_true": BORING_ARRAY,
"smooth_train": BORING_ARRAY,
Expand Down

0 comments on commit 5369b2d

Please sign in to comment.