Skip to content

Commit

Permalink
Update validate-recipes.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bberkeyU authored Nov 26, 2024
1 parent f69cf67 commit a8de309
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/validate-recipes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:
if exp < 1 or exp > 84:
raise ValueError("Number out of range")
state['exposure'] = child.split()[1]
execpt:
except:
warning.write(f"{parent} {{ {child} }} has invalid exposure time\n")
if "cover" in child:
if child.split()[1] in ["in","out"]:
Expand All @@ -146,15 +146,15 @@ jobs:
if 'filter' not in state or state['filter'] != child.split()[1]:
hardwareTime = hardwareTime + 25
state['filter'] = int(child.split()[1])
execpt:
except:
warning.write(f"{parent} {{ {child} }} invalid prefilter\n")
if "calret" in child:
try:
float(child.split()[1])
if 'calret' not in state or state['calret'] != child.split()[1]:
hardwareTime = hardwareTime + 5
state['calret'] = child.split()[1]
execpt:
except:
warning.write(f"{parent} {{ {child} }} should be degrees\n")

if "calpol" in child:
Expand All @@ -163,7 +163,7 @@ jobs:
if 'calpol' not in state or state['calpol'] not in child:
hardwareTime = hardwareTime + 5
state['calpol'] = child.split()[1]
execpt:
except:
warning.write(f"{parent} {{ {child} }} should be degrees\n")
if "calib" in child:
if 'calib' not in state or state['calib'] not in child:
Expand Down

0 comments on commit a8de309

Please sign in to comment.