From 35c8fd6b551e310ecb167a1eb032d73a8acac7ee Mon Sep 17 00:00:00 2001 From: Duncan Macleod Date: Wed, 20 Nov 2024 10:20:28 +0000 Subject: [PATCH] test: use numpy.longdouble instead of float128 float128 isn't available on macOS ARM64 --- test/validation_code/old_coinc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/validation_code/old_coinc.py b/test/validation_code/old_coinc.py index 4d150d64a31..a8eb869f8a5 100644 --- a/test/validation_code/old_coinc.py +++ b/test/validation_code/old_coinc.py @@ -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 @@ -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