Skip to content

Commit

Permalink
use python 3.8 compatible typing
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwilby authored and tom-andersson committed Jul 7, 2024
1 parent 1b392f5 commit 02cbcb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deepsensor/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def predict(
aux_at_targets_override: Union[xr.Dataset, xr.DataArray] = None,
aux_at_targets_override_is_normalised: bool = False,
resolution_factor: int = 1,
pred_params: tuple[str] = ("mean", "std"),
pred_params: Tuple[str] = ("mean", "std"),
n_samples: int = 0,
ar_sample: bool = False,
ar_subsample_factor: int = 1,
Expand Down Expand Up @@ -274,7 +274,7 @@ def predict(
Whether the `aux_at_targets_override` coords are normalised.
If False, the DataProcessor will normalise the coords before passing to model.
Default False.
pred_params (tuple[str]):
pred_params (Tuple[str]):
Tuple of prediction parameters to return. The strings refer to methods
of the model class which will be called and stored in the Prediction object.
Default ("mean", "std").
Expand Down

0 comments on commit 02cbcb8

Please sign in to comment.