Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package lalpulsar for openSUSE:Factory checked in at 2024-07-25 15:38:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lalpulsar (Old) and /work/SRC/openSUSE:Factory/.lalpulsar.new.1882 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lalpulsar" Thu Jul 25 15:38:53 2024 rev:10 rq:1189328 version:6.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/lalpulsar/lalpulsar.changes 2024-02-01 18:06:19.957143276 +0100 +++ /work/SRC/openSUSE:Factory/.lalpulsar.new.1882/lalpulsar.changes 2024-07-25 15:46:26.648635965 +0200 @@ -1,0 +2,9 @@ +Sat Jul 20 03:46:36 UTC 2024 - Atri Bhattacharya <[email protected]> + +- Update to version 6.1.0: + * No release notes. +- Add lalpulsar-scipy-1_14-compat.patch -- Account for name + changes of trapezoidal functions in scipy.integrate for scipy >= + 1.14 + +------------------------------------------------------------------- Old: ---- lalpulsar-6.0.6.tar.xz New: ---- lalpulsar-6.1.0.tar.xz lalpulsar-scipy-1_14-compat.patch BETA DEBUG BEGIN: New: * No release notes. - Add lalpulsar-scipy-1_14-compat.patch -- Account for name changes of trapezoidal functions in scipy.integrate for scipy >= BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lalpulsar.spec ++++++ --- /var/tmp/diff_new_pack.iSgKTH/_old 2024-07-25 15:46:27.684677668 +0200 +++ /var/tmp/diff_new_pack.iSgKTH/_new 2024-07-25 15:46:27.684677668 +0200 @@ -1,5 +1,5 @@ # -# spec file +# spec file for package lalpulsar # # Copyright (c) 2024 SUSE LLC # @@ -37,7 +37,7 @@ %define skip_python2 1 Name: %{pname}%{?psuffix} -Version: 6.0.6 +Version: 6.1.0 Release: 0 Summary: LSC Algorithm Pulsar Library License: GPL-2.0-or-later @@ -48,6 +48,8 @@ Patch1: lalpulsar-disable-test_ssbtodetector.patch # PATCH-FIX-UPSTREAM lalpulsar-fix-uninitialized-var.patch [email protected] -- Fix an uninitialised variable Patch2: lalpulsar-fix-uninitialized-var.patch +# PATCH-FIX-UPSTREAM lalpulsar-scipy-1_14-compat.patch [email protected] -- Account for name changes of trapezoidal functions in scipy.integrate for scipy >= 1.14 +Patch3: lalpulsar-scipy-1_14-compat.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module lal >= 7.1.0} BuildRequires: %{python_module numpy-devel >= 1.7} ++++++ lalpulsar-6.0.6.tar.xz -> lalpulsar-6.1.0.tar.xz ++++++ /work/SRC/openSUSE:Factory/lalpulsar/lalpulsar-6.0.6.tar.xz /work/SRC/openSUSE:Factory/.lalpulsar.new.1882/lalpulsar-6.1.0.tar.xz differ: char 25, line 1 ++++++ lalpulsar-fix-uninitialized-var.patch ++++++ --- /var/tmp/diff_new_pack.iSgKTH/_old 2024-07-25 15:46:27.736679761 +0200 +++ /var/tmp/diff_new_pack.iSgKTH/_new 2024-07-25 15:46:27.740679922 +0200 @@ -1,7 +1,7 @@ -Index: lalpulsar-6.0.1/bin/HoughFstat/HierarchicalSearch.c +Index: lalpulsar-6.1.0/bin/HoughFstat/HierarchicalSearch.c =================================================================== ---- lalpulsar-6.0.1.orig/bin/HoughFstat/HierarchicalSearch.c -+++ lalpulsar-6.0.1/bin/HoughFstat/HierarchicalSearch.c +--- lalpulsar-6.1.0.orig/bin/HoughFstat/HierarchicalSearch.c ++++ lalpulsar-6.1.0/bin/HoughFstat/HierarchicalSearch.c @@ -1256,7 +1256,7 @@ void SetUpSFTs( LALStatus *status, /** REAL8 timebase, tObs, deltaFsft; UINT4 k,numSFTby2; @@ -11,17 +11,17 @@ REAL8 doppWings, fMin, fMax; REAL8 startTime_freqLo, startTime_freqHi; -Index: lalpulsar-6.0.1/bin/GCT/HierarchSearchGCT.c +Index: lalpulsar-6.1.0/bin/GCT/HierarchSearchGCT.c =================================================================== ---- lalpulsar-6.0.1.orig/bin/GCT/HierarchSearchGCT.c -+++ lalpulsar-6.0.1/bin/GCT/HierarchSearchGCT.c -@@ -2048,7 +2048,7 @@ void SetUpSFTs( LALStatus *status, /** +--- lalpulsar-6.1.0.orig/bin/GCT/HierarchSearchGCT.c ++++ lalpulsar-6.1.0/bin/GCT/HierarchSearchGCT.c +@@ -2020,7 +2020,7 @@ void SetUpSFTs( LALStatus *status, REAL8 timebase, tObs, deltaFsft; - UINT4 k,numSFT; + UINT4 k, numSFT; LIGOTimeGPS tStartGPS, tEndGPS, refTimeGPS, tMidGPS, midTstackGPS, startTstackGPS, endTstackGPS; - SFTCatalogSequence catalogSeq; + SFTCatalogSequence catalogSeq = {}; - REAL8 midTseg,startTseg,endTseg; + REAL8 midTseg, startTseg, endTseg; BOOLEAN crc_check; ++++++ lalpulsar-scipy-1_14-compat.patch ++++++ --- python/lalpulsar/pulsarpputils.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) Index: lalpulsar-6.1.0/python/lalpulsar/pulsarpputils.py =================================================================== --- lalpulsar-6.1.0.orig/python/lalpulsar/pulsarpputils.py +++ lalpulsar-6.1.0/python/lalpulsar/pulsarpputils.py @@ -37,7 +37,7 @@ import struct import re import h5py -from scipy.integrate import cumtrapz +from scipy.integrate import cumulative_trapezoid from scipy.interpolate import interp1d try: @@ -899,7 +899,7 @@ def plot_posterior_hist( # if upper limit is needed then integrate posterior using trapezium rule if upperlimit != 0: - ct = cumtrapz(n, bins) + ct = cumulative_trapezoid(n, bins) # prepend a zero to ct ct = np.insert(ct, 0, 0) @@ -940,7 +940,7 @@ def upper_limit( # if upper limit is needed then integrate posterior using trapezium rule if upperlimit != 0: - ct = cumtrapz(n, bins) + ct = cumulative_trapezoid(n, bins) # prepend a zero to ct ct = np.insert(ct, 0, 0) @@ -1232,18 +1232,18 @@ def plot_2Dhist_from_file( # marginalise over y-axes and produce plots xmarg = [] for i in range(len(xbins)): - xmarg.append(np.trapz(histarr[:][i], x=ybins)) + xmarg.append(np.trapezoid(histarr[:][i], x=ybins)) # normalise - xarea = np.trapz(xmarg, x=xbins) + xarea = np.trapezoid(xmarg, x=xbins) xmarg = map(lambda x: x / xarea, xmarg) ymarg = [] for i in range(len(ybins)): - ymarg.append(np.trapz(np.transpose(histarr)[:][i], x=xbins)) + ymarg.append(np.trapezoid(np.transpose(histarr)[:][i], x=xbins)) # normalise - yarea = np.trapz(ymarg, x=ybins) + yarea = np.trapezoid(ymarg, x=ybins) ymarg = map(lambda x: x / yarea, ymarg) # plot x histogram @@ -1287,15 +1287,15 @@ def h0ul_from_prior_file(priorfile, ulva # marginalise over cos(iota) h0marg = [] for i in range(len(h0bins)): - h0marg.append(np.trapz(histarr[:][i], x=cibins)) + h0marg.append(np.trapezoid(histarr[:][i], x=cibins)) # normalise h0 posterior h0bins = h0bins - (h0bins[1] - h0bins[0]) / 2 - h0area = np.trapz(h0marg, x=h0bins) + h0area = np.trapezoid(h0marg, x=h0bins) h0margnorm = map(lambda x: x / h0area, h0marg) # get cumulative probability - ct = cumtrapz(h0margnorm, h0bins) + ct = cumulative_trapezoid(h0margnorm, h0bins) # prepend a zero to ct ct = np.insert(ct, 0, 0) @@ -1516,7 +1516,7 @@ def hist_norm_bounds(samples, nbins, low n = np.append(n, nbound) # now calculate area and normalise - area = np.trapz(n, x=bincentres) + area = np.trapezoid(n, x=bincentres) ns = np.array([]) for i in range(0, len(bincentres)):
