Skip to content

Commit

Permalink
test: use numpy.longdouble instead of float128
Browse files Browse the repository at this point in the history
float128 isn't available on macOS ARM64
  • Loading branch information
duncanmmacleod committed Nov 20, 2024
1 parent 6b656e0 commit 0d1c9bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/validation_code/old_coinc.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,8 @@ def cluster_coincs(stat, time1, time2, timeslide_id, slide, window, argmax=numpy
else:
time = 0.5 * (time2 + time1)

tslide = timeslide_id.astype(numpy.float128)
time = time.astype(numpy.float128)
tslide = timeslide_id.astype(numpy.longdouble)
time = time.astype(numpy.longdouble)

span = (time.max() - time.min()) + window * 10
time = time + span * tslide
Expand Down Expand Up @@ -411,8 +411,8 @@ def cluster_coincs_multiifo(stat, time_coincs, timeslide_id, slide, window, argm
nifos_minusone = (num_ifos - numpy.ones_like(num_ifos))
time_avg = time_avg + (nifos_minusone * timeslide_id * slide)/num_ifos

tslide = timeslide_id.astype(numpy.float128)
time_avg = time_avg.astype(numpy.float128)
tslide = timeslide_id.astype(numpy.longdouble)
time_avg = time_avg.astype(numpy.longdouble)

span = (time_avg.max() - time_avg.min()) + window * 10
time_avg = time_avg + span * tslide
Expand Down

0 comments on commit 0d1c9bc

Please sign in to comment.