Skip to content

Commit

Permalink
Update trollsched/satpass.py
Browse files Browse the repository at this point in the history
Co-authored-by: Panu Lahtinen <[email protected]>
  • Loading branch information
adybbroe and pnuu authored Dec 2, 2024
1 parent 2b1e276 commit dfebf59
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions trollsched/satpass.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
def create_pass(satname, instrument, starttime, endtime, tle_filename=None):
"""Create a satellite pass given a start and an endtime."""
tle = tlefile.Tle(satname, tle_file=tle_filename)
cpass = Pass(satname, starttime, endtime, instrument=instrument, tle1=tle.line1, tle2=tle.line2)
return cpass
return Pass(satname, starttime, endtime, instrument=instrument, tle1=tle.line1, tle2=tle.line2)

class SimplePass:
"""A pass: satellite, risetime, falltime, (orbital)."""
Expand Down

0 comments on commit dfebf59

Please sign in to comment.