Skip to content

Commit

Permalink
Allow floats as int_param_xo in main() (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
berland authored Feb 24, 2021
1 parent b28b183 commit 18db81e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pyscal/pyscalcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,14 @@ def pyscal_main(

if int_param_go is not None and int_param_wo is None:
raise ValueError("Don't use int_param_go alone, only int_param_wo")
if (int_param_wo is not None and len(int_param_wo) > 1) or (
int_param_go is not None and len(int_param_go) > 1
if (
int_param_wo is not None
and isinstance(int_param_wo, list)
and len(int_param_wo) > 1
) or (
int_param_go is not None
and isinstance(int_param_go, list)
and len(int_param_go) > 1
):
warnings.warn(
"SATNUM specific interpolation parameters are deprecated in "
Expand Down

0 comments on commit 18db81e

Please sign in to comment.