Skip to content

Commit

Permalink
further optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoughlin committed Apr 27, 2024
1 parent 1d77cec commit 27c5539
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions gwemopt/segments.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,7 @@ def get_segments_tile(config_struct, radec, segmentlist, moon_radecs, airmass):
date_set = ephem.Date(0.0)
break

astropy_rise = Time(date_rise.datetime(), scale="utc")
astropy_set = Time(date_set.datetime(), scale="utc")

astropy_rise_mjd = astropy_rise.mjd
astropy_set_mjd = astropy_set.mjd

segment = segments.segment(astropy_rise_mjd, astropy_set_mjd)
segment = segments.segment(date_rise + MJD_TO_DJD, date_set + MJD_TO_DJD)
tilesegmentlist = tilesegmentlist + segments.segmentlist([segment])
tilesegmentlist.coalesce()

Expand Down

0 comments on commit 27c5539

Please sign in to comment.