SHA256
1
0
forked from pool/lalinference

Compare commits

35 Commits

Author SHA256 Message Date
9819ec232c Accepting request 1227914 from science
OBS-URL: https://build.opensuse.org/request/show/1227914
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lalinference?expand=0&rev=14
2024-12-03 19:46:35 +00:00
672fa53b35 Add lalinference-swig-stringval-not-value.patch: For compatibility with swig 4.3.0, prefer 'stringval' before 'value' attribute (upstream commit 9dba245a).
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=33
2024-12-03 06:34:23 +00:00
5bf0d490c8 Accepting request 1201177 from science
OBS-URL: https://build.opensuse.org/request/show/1201177
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lalinference?expand=0&rev=13
2024-09-15 10:35:33 +00:00
fc8fe63a91 - Drop upstreamed patches:
* 0001-Replace-SafeConfigParser-with-ConfigParser.patch
  * lalinference-scipy-1_14-compat.patch

OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=31
2024-09-14 16:33:39 +00:00
e5f00ef0df Version update and numpy 2.0 compatibilty
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=30
2024-09-12 06:45:41 +00:00
01ac5a224e Accepting request 1189329 from science
OBS-URL: https://build.opensuse.org/request/show/1189329
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lalinference?expand=0&rev=12
2024-07-25 13:38:56 +00:00
fe63cb8176 Accepting request 1154137 from science
OBS-URL: https://build.opensuse.org/request/show/1154137
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lalinference?expand=0&rev=11
2024-03-01 22:39:46 +00:00
e698f123d6 Accepting request 1154131 from home:bnavigator:branches:science
- Add 0001-Replace-SafeConfigParser-with-ConfigParser.patch
  for Python 3.12 compatibility

OBS-URL: https://build.opensuse.org/request/show/1154131
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=26
2024-03-01 17:42:00 +00:00
d637d04347 Accepting request 1143214 from science
OBS-URL: https://build.opensuse.org/request/show/1143214
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lalinference?expand=0&rev=10
2024-02-01 17:05:45 +00:00
19b4203fab Accepting request 1140573 from home:badshah400:branches:science
Update to version 4.1.5:

OBS-URL: https://build.opensuse.org/request/show/1140573
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=24
2024-02-01 08:23:32 +00:00
f388ec3972 Accepting request 1089166 from science
OBS-URL: https://build.opensuse.org/request/show/1089166
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lalinference?expand=0&rev=9
2023-05-26 22:51:01 +00:00
d9bd291040 Accepting request 1088620 from home:badshah400:lal_update
- Update to version 4.1.3:

OBS-URL: https://build.opensuse.org/request/show/1088620
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=22
2023-05-26 09:09:15 +00:00
eed560a0a8 Accepting request 1066762 from science
OBS-URL: https://build.opensuse.org/request/show/1066762
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lalinference?expand=0&rev=8
2023-02-21 14:36:01 +00:00
913a31542f Accepting request 1064484 from home:badshah400:lal-python-py-fixes
Add python-py BuildRequires to fix tests that fail due to "No module named 'py._path'" errors.

OBS-URL: https://build.opensuse.org/request/show/1064484
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=20
2023-02-20 10:11:25 +00:00
bd0352a431 Accepting request 998929 from science
OBS-URL: https://build.opensuse.org/request/show/998929
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lalinference?expand=0&rev=7
2022-08-24 13:11:09 +00:00
9c632f2ca3 Accepting request 998926 from home:badshah400:branches:science
- Fix multibuild package names.

OBS-URL: https://build.opensuse.org/request/show/998926
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=18
2022-08-24 00:54:51 +00:00
7a713e3daa OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=17 2022-08-23 20:48:31 +00:00
5809083241 Accepting request 998347 from home:badshah400:branches:science
- Update to version 4.0.0.
- Drop lalinference-import-MutableMapping.patch: incorporated upstream.
- Drop BuildRequires on lalpulsar-devel and python-lalpulsar (indeed now lalpulsar depends on lalinference-devel).
- Update source URL.
- Update so version to match upstream.
- Re-organise list of BuildRequires to differentiate packages needed for building proper vs those needed for tests only.
- Tests can take a long time, split testing as part of %check into its own _multibuild flavour.
- Make %{name}-data a noarch package.
- New BuildRequires for tests: python-h5py.

OBS-URL: https://build.opensuse.org/request/show/998347
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=16
2022-08-23 20:48:10 +00:00
113e54de7d Accepting request 972871 from science
OBS-URL: https://build.opensuse.org/request/show/972871
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lalinference?expand=0&rev=6
2022-04-26 18:15:54 +00:00
86e1aaf0a0 Accepting request 972850 from home:jengelh:branches:science
- Resolve rpmlint report "liblalinference21.x86_64: E:
  shlib-policy-name-error SONAME: liblalinference.so.22, expected
  package suffix: 22"

OBS-URL: https://build.opensuse.org/request/show/972850
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=14
2022-04-26 12:18:55 +00:00
5da5debdd4 Accepting request 946914 from science
- Add lalinference-import-MutableMapping.patch -- lalinference.wrapper: Update import of MutableMapping; patch taken from upstream commit.
- Update to version 3.0.1.

OBS-URL: https://build.opensuse.org/request/show/946914
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lalinference?expand=0&rev=5
2022-01-17 21:33:59 +00:00
12e1f8fc22 Accepting request 946834 from home:badshah400:branches:science
Add lalinference-import-MutableMapping.patch -- lalinference.wrapper: Update import of MutableMapping; patch taken from upstream commit.

OBS-URL: https://build.opensuse.org/request/show/946834
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=13
2022-01-17 08:56:41 +00:00
9dc2d90c0c Accepting request 943582 from home:badshah400:branches:science
Update to version 3.0.1

OBS-URL: https://build.opensuse.org/request/show/943582
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=12
2022-01-10 23:51:28 +00:00
e6ad32f1d1 Accepting request 931954 from science
OBS-URL: https://build.opensuse.org/request/show/931954
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lalinference?expand=0&rev=4
2021-11-18 09:33:38 +00:00
7abf6220d0 Accepting request 931951 from home:dimstar:Factory
- Do not build for %ix86: lal is not available on this platform.

OBS-URL: https://build.opensuse.org/request/show/931951
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=11
2021-11-17 12:37:13 +00:00
d472fe8895 Accepting request 876076 from science
OBS-URL: https://build.opensuse.org/request/show/876076
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lalinference?expand=0&rev=3
2021-04-21 18:59:08 +00:00
a182833ed0 Accepting request 875554 from home:badshah400:branches:science
Update to version 2.0.7 (no release notes).

OBS-URL: https://build.opensuse.org/request/show/875554
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=9
2021-03-01 22:51:52 +00:00
3f3c0fd32a Accepting request 872557 from science
- Update requirements and fix provider for data package
- Update to version 2.0.6
  * no changelog
- Disable python2 bindings.
- Fix test for multi-version python.
- Disable building for python3.6 as astropy isn't supported for
  python < 3.7.
- Disable octave bindings, since octave >= 6 isn't supported.
- Implement %check section and run tests.
- Update to version 2.0.4:
  * Open HDF5 file in write mode when writing samples.
  * lalinference_pipe: Do not ENFORCE the use of a queue if it is
    specified in the .sub file.

OBS-URL: https://build.opensuse.org/request/show/872557
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lalinference?expand=0&rev=2
2021-02-16 08:19:23 +00:00
d45f146551 Accepting request 872533 from home:bnavigator:branches:science
Sorry, I apparently submitted an outdated revision earlier

- Update requirements and fix provider for data package

OBS-URL: https://build.opensuse.org/request/show/872533
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=7
2021-02-15 15:08:00 +00:00
09675c01b1 Accepting request 871654 from home:badshah400:branches:science
OBS-URL: https://build.opensuse.org/request/show/871654
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=6
2021-02-14 13:24:45 +00:00
0abbbab809 Accepting request 846241 from science
The LSC Algorithm Inference Library for gravitational wave data analysis.

OBS-URL: https://build.opensuse.org/request/show/846241
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lalinference?expand=0&rev=1
2020-11-13 17:57:54 +00:00
1e2677fd21 Accepting request 825820 from home:badshah400:branches:science
- Update to version 2.0.3:
  * No release notes.
- Update required version of lalsimulation to 2.2.0.

OBS-URL: https://build.opensuse.org/request/show/825820
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=4
2020-08-15 07:17:37 +00:00
bf0dd35590 Accepting request 822085 from home:badshah400:branches:science
* Update to version 2.0.1.
* Bump so number in shlib package name.
* Re-enable octave bindings: fixed upstream.
* Drop libtool from BuildRequires and do not run autoreconf before configure: these have not been needed since lalinference-build-octave44-with-swig3.patch was dropped.

OBS-URL: https://build.opensuse.org/request/show/822085
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=3
2020-07-21 18:34:43 +00:00
3d8296d679 Accepting request 818842 from home:badshah400:branches:science
- Disable octave support as compilation error with current swig.

OBS-URL: https://build.opensuse.org/request/show/818842
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=2
2020-07-06 00:28:29 +00:00
2ca88deee7 Accepting request 810268 from home:badshah400:GW
NOTE: depends on sr#809705    The LSC Algorithm Inference Library for gravitational wave data analysis

OBS-URL: https://build.opensuse.org/request/show/810268
OBS-URL: https://build.opensuse.org/package/show/science/lalinference?expand=0&rev=1
2020-05-31 13:11:17 +00:00
8 changed files with 66 additions and 88 deletions

View File

@@ -1,45 +0,0 @@
From 2d0fca820c6258836d3caf0b87fb804ec94e48d4 Mon Sep 17 00:00:00 2001
From: Ben Greiner <code@bnavigator.de>
Date: Fri, 1 Mar 2024 18:04:16 +0100
Subject: [PATCH] Replace SafeConfigParser with ConfigParser
The rename and deprecation happened with Python 3.2 and SafeConfigParser
was removed in Python 3.12
diff --git a/lalinference/bin/lalinference_pipe.py b/lalinference/bin/lalinference_pipe.py
index 9dab7c6471..cb35c7dbba 100644
--- alalinference/bin/lalinference_pipe.py
+++ blalinference/bin/lalinference_pipe.py
@@ -211,7 +211,7 @@ if len(args)!=1:
inifile=args[0]
-cp=configparser.SafeConfigParser()
+cp=configparser.ConfigParser()
fp=open(inifile)
cp.optionxform = str
cp.readfp(fp)
diff --git a/lalinference/bin/lalinference_review_test.py b/lalinference/bin/lalinference_review_test.py
index a861dfd631..15dd66892f 100644
--- alalinference/bin/lalinference_review_test.py
+++ blalinference/bin/lalinference_review_test.py
@@ -6,7 +6,7 @@ import subprocess
import glob
import lalinference
-from six.moves.configparser import SafeConfigParser
+from configparser import ConfigParser
prefix=''
try:
@@ -101,7 +101,7 @@ except KeyError:
sys.exit()
def init_ini_file(file=args.ini_file):
- cp=SafeConfigParser()
+ cp=ConfigParser()
fp=open(file)
cp.optionxform = str
cp.readfp(fp)

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f16e47171aa680b3a229f8abdf61b758d3a27c5abdec4ed508fdfa7de10553ba
size 1007936

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9118ea5bae3fcd910cdf8cc3185404d0c0e366e58bedc68104e9e75119da357d
size 1000636

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:82578af17e68240c31da390c80985431af73f8cf2dab052089066f661aa976e2
size 1017360

View File

@@ -1,30 +0,0 @@
Index: lalinference-4.1.6/bin/cbcBayesMCMC2pos.py
===================================================================
--- lalinference-4.1.6.orig/bin/cbcBayesMCMC2pos.py
+++ lalinference-4.1.6/bin/cbcBayesMCMC2pos.py
@@ -156,8 +156,8 @@ def downsample_and_evidence(data_hdf5, d
ebetas2 = np.concatenate((betas[::2], [0.0]))
elogls2 = np.concatenate((logls[::2], [logls[::2][-1]]))
- evidence = -si.trapz(elogls, ebetas)
- evidence2 = -si.trapz(elogls2, ebetas2)
+ evidence = -si.trapezoid(elogls, ebetas)
+ evidence2 = -si.trapezoid(elogls2, ebetas2)
posterior_samples['chain_log_evidence'] = evidence
posterior_samples['chain_delta_log_evidence'] = np.absolute(evidence - evidence2)
Index: lalinference-4.1.6/bin/cbcBayesThermoInt.py
===================================================================
--- lalinference-4.1.6.orig/bin/cbcBayesThermoInt.py
+++ lalinference-4.1.6/bin/cbcBayesThermoInt.py
@@ -86,8 +86,8 @@ positional arguments:
ebetas2 = np.concatenate((betas[::2], [0.0]))
elogls2 = np.concatenate((logls[::2], [logls[::2][-1]]))
- evidence = -si.trapz(elogls, ebetas)
- evidence2 = -si.trapz(elogls2, ebetas2)
+ evidence = -si.trapezoid(elogls, ebetas)
+ evidence2 = -si.trapezoid(elogls2, ebetas2)
devidence = np.abs(evidence - evidence2)

View File

@@ -0,0 +1,33 @@
From 9dba245ab3692ecf691247a442704f13c075ed34 Mon Sep 17 00:00:00 2001
From: Karl Wette <karl.wette@ligo.org>
Date: Thu, 24 Oct 2024 18:06:30 +1100
Subject: [PATCH] common/swig/generate_swig_iface.py: prefer "stringval" before
"value" attribute
- As of SWIG 4.3.0 "value" attribute contains quote characters
- "stringval" attribute appears to still contain the raw string
---
common/swig/generate_swig_iface.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/common/swig/generate_swig_iface.py b/common/swig/generate_swig_iface.py
index 530b026d5d..eaee2d41ce 100644
--- a/common/swig/generate_swig_iface.py
+++ b/common/swig/generate_swig_iface.py
@@ -195,9 +195,11 @@ class SwigSymbols(object):
"""Parse a swiglal macro
"""
cdecl_name = get_swig_attr(cdecl, 'name')
- cdecl_value = get_swig_attr(cdecl, 'value')
+ cdecl_value = get_swig_attr(cdecl, 'stringval')
if not cdecl_value:
- raise ValueError("cdecl '{}' has no value".format(cdecl_name))
+ cdecl_value = get_swig_attr(cdecl, 'value')
+ if not cdecl_value:
+ raise ValueError("cdecl '{}' has no value".format(cdecl_name))
macro = re.sub(r'\s', '', cdecl_value)
if cdecl_name == '__swiglal__':
if macro in clear_macros:
--
GitLab

View File

@@ -1,3 +1,22 @@
-------------------------------------------------------------------
Mon Dec 2 15:18:22 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
- Add lalinference-swig-stringval-not-value.patch: For
compatibility with swig 4.3.0, prefer 'stringval' before 'value'
attribute (upstream commit 9dba245a).
-------------------------------------------------------------------
Thu Sep 12 17:40:21 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
- Drop upstreamed patches:
* 0001-Replace-SafeConfigParser-with-ConfigParser.patch
* lalinference-scipy-1_14-compat.patch
-------------------------------------------------------------------
Wed Sep 11 18:26:12 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 4.1.7 (no release notes).
-------------------------------------------------------------------
Sat Jul 20 03:44:05 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>

View File

@@ -1,5 +1,5 @@
#
# spec file
# spec file for package lalinference
#
# Copyright (c) 2024 SUSE LLC
#
@@ -32,7 +32,7 @@
%bcond_with octave
Name: %{pname}%{?psuffix}
Version: 4.1.6
Version: 4.1.7
Release: 0
Summary: LSC Algorithm Inference Library
License: GPL-2.0-or-later
@@ -41,10 +41,8 @@ URL: https://wiki.ligo.org/Computing/DASWG/LALSuite
Source: https://software.igwn.org/sources/source/lalsuite/%{pname}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM lalinference-printf-data-type-consistency.patch badshah400@gmail.com -- Cast data passed to printf from size_t to long to make it consistent with the format "%li"; this fixes build failures on i586
Patch0: lalinference-printf-data-type-consistency.patch
# PATCH-FIX-UPSTREAM 0001-Replace-SafeConfigParser-with-ConfigParser.patch sent to duncan.macleod@ligo.org by code@bnavigator.de
Patch1: 0001-Replace-SafeConfigParser-with-ConfigParser.patch
# PATCH-FIX-UPSTREAM lalinference-scipy-1_14-compat.patch badshah400@gmail.com -- Account for name changes of trapezoidal functions in scipy.integrate for scipy >= 1.14
Patch3: lalinference-scipy-1_14-compat.patch
# PATCH-FIX-UPSTREAM
Patch1: https://git.ligo.org/lscsoft/lalsuite/-/commit/9dba245ab3692ecf691247a442704f13c075ed34.patch#/lalinference-swig-stringval-not-value.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module numpy-devel >= 1.7}
BuildRequires: fdupes
@@ -137,6 +135,7 @@ BuildArch: noarch
%description -n %{name}-data
This package provides the data files for lalinference.
%if %{with octave}
%package -n octave-lalinference
Summary: Octave bindings for LAL Inference
Group: Productivity/Scientific/Physics
@@ -152,9 +151,14 @@ Requires: octave-lalsimulation
%description -n octave-lalinference
This package provides the necessary files for using LAL Inference with octave.
%endif
%prep
%autosetup -p1 -n %{pname}-%{version}
# Upstream commits are -p1 against the full lalsuite, but -p2 against individual lal* pkgs
# Patch0 is not upstream and uses -p1, so we have a mix of -p1 and -p2 patches
%autosetup -N -n %{pname}-%{version}
%patch -P0 -p1
%patch -P1 -p2
%build
%{python_expand # Necessary to run %%configure with all python flavors