Skip to content

Commit

Permalink
Merge pull request #1010 from dirac-institute/discoveryObservationId-…
Browse files Browse the repository at this point in the history
…bugfix

bugfix: remove code left by accident
  • Loading branch information
mschwamb committed Aug 30, 2024
2 parents c786a4a + 56372bf commit 6d2867b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/sorcha/modules/PPMiniDifi.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,6 @@ def linkObject(obsv, seed, maxdt_minutes, minlen_arcsec, window, nlink, p, night
discoveryChances = len(discNights)
discoverySubmissionDate = discNights[discIdx]

# find the first observation on the discovery date
i, j = np.searchsorted(night, [discoverySubmissionDate, discoverySubmissionDate + 1])
k = i + np.argmin(mjd[i:j])
discoveryObservationId = diaSourceId[k]

# find the first observation in the discovery window.
# we'll (somewhat arbitrarily) define this as the "asterisk" observation.
# in reality, we'll run precovery on linkages so the asterisk observation
Expand Down

0 comments on commit 6d2867b

Please sign in to comment.