Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/value-wizard' into value-wizard
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Mar 15, 2024
2 parents 21b7ba1 + f429ec1 commit ce5a7f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/api/res.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ def res(
if uncert is None:
uncert = []

if sigfigs is not None and decimal_places is not None:
raise ValueError(
"You can't set both sigfigs and decimal places at the same time. "
"Please choose one or the other."
)

# Parse user input
name_res = parsers.parse_name(name)
value_res = parsers.parse_value(value)
Expand Down

0 comments on commit ce5a7f1

Please sign in to comment.