Cannot use pyseobnr in custom lal installation
This is an error first observed by @eleanor.hamilton.
When installing lal from source and pip installing pyseobnr, SimInspiralFD
does not work anymore with the SEOBNRv5 models. This used to work when we did the nrvswaveformmismatcheso4a study.
To do a fresh installation and reproduce the error you can use this environment.yml and this test.py and follow the steps:
conda env create -f environment.yml
conda activate v5-test
pip install pyseobnr
cd lalsuite; ./00boot
cd ../; cd build;
../lalsuite/configure --prefix=$CONDA_PREFIX --disable-all-lal --enable-lalsimulation;
make -j; make install
Running the python script gives
XLAL Error - initialize (LALSimInspiralGeneratorPython.c:18): Python generator not implemented
XLAL Error - initialize (LALSimInspiralGeneratorPython.c:18): Invalid argument
XLAL Error - XLALCreateSimInspiralGenerator (LALSimInspiral.c:426): Internal function call failed: Invalid argument
XLAL Error - XLALSimInspiralChooseFDWaveform (LALSimInspiral.c:846): Check failed: generator
XLAL Error - XLALSimInspiralChooseFDWaveform (LALSimInspiral.c:846): Internal function call failed: Invalid argument
Traceback (most recent call last):
File "/home/cecilio.garcia-quiros/projects/v5test/test.py", line 9, in <module>
hp, hc = lalsimulation.SimInspiralFD(
I tried with current master 6e9d6e13, with the commit that used to work for the nrmismatches f7925145, and with the released commit in conda 6d939723, but none worked.
Downgrading to python3.9 didn't work either.
Note that if I install lalsuite with conda install -c conda-forge lalsuite
, as indicated in pyseobnr, everything works, it is only when installing lal from source.
Has anybody experienced a similar problem / knows what could be the error? @geraint.pratten @jolien-creighton @hector.estelles @antoni.ramos-buades @serguei.ossokine