Skip to content

Commit

Permalink
Merge pull request #509 from MarkEverett/GSCHED-739
Browse files Browse the repository at this point in the history
Fix visibility_time format to match its value (both in seconds).
  • Loading branch information
stroncod authored Sep 30, 2024
2 parents a3765fb + 8fa4350 commit 0a1e7e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler/services/visibility/calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def calculate_visibility(obs: Observation,
# Calculate the visibility time, the ongoing summed remaining visibility time, and
# the remaining visibility fraction.
# If the denominator for the visibility fraction is 0, use a value of 0.
visibility_time = len(visibility_slot_idx) * time_slot_length
visibility_time = TimeDelta(len(visibility_slot_idx) * time_slot_length.to_value(u.s), format='sec')

visibility_snapshot = VisibilitySnapshot(visibility_slot_idx=visibility_slot_idx,
visibility_time=visibility_time)
Expand Down

0 comments on commit 0a1e7e0

Please sign in to comment.