Skip to content

Commit

Permalink
change variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed May 8, 2024
1 parent f92b33b commit afea081
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions py/desiutil/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ def radec_to_desiname(target_ra, target_dec):
'tests': base_tests + [('RA not in range [0, 360)', lambda x: (x < 0) | (x >= 360))]},
'target_dec': {'data': target_dec,
'tests': base_tests + [('Dec not in range [-90, 90]', lambda x: (x < -90) | (x > 90))]}}
for i in inputs:
for message, check in inputs[i]['tests']:
if check(inputs[i]['data']).any():
raise ValueError(f"{message} detected in {i}!")
for coord in inputs:
for message, check in inputs[coord]['tests']:
if check(inputs[coord]['data']).any():
raise ValueError(f"{message} detected in {coord}!")

# Number of decimal places in final naming convention
precision = 4
Expand Down

0 comments on commit afea081

Please sign in to comment.