LALPulsar 3.1.1 failing python tests in conda builds
LALPulsar 3.1.1 is failing the bundled python test suite:
+ python -m pytest -ra -v test/python
======================================== test session starts =========================================
platform linux -- Python 3.9.7, pytest-6.2.5, py-1.11.0, pluggy-1.0.0 -- /home/duncan/opt/mambaforge/conda-bld/lalpulsar-split_1639491321410/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/bin/python
cachedir: .pytest_cache
rootdir: /home/duncan/opt/mambaforge/conda-bld/lalpulsar-split_1639491321410/test_tmp
collected 19 items
test/python/test_ReadSFDB.py::test_ReadSFDB PASSED [ 5%]
test/python/test_computePSD.py::test_ComputePSDandNormSFTPower PASSED [ 10%]
test/python/test_heterodyned_model.py::test_one[H1] PASSED [ 15%]
test/python/test_heterodyned_model.py::test_one[L1] PASSED [ 21%]
test/python/test_heterodyned_model.py::test_two PASSED [ 26%]
test/python/test_heterodyned_model.py::test_three[1] PASSED [ 31%]
test/python/test_heterodyned_model.py::test_three[2] PASSED [ 36%]
test/python/test_heterodyned_model.py::test_four FAILED [ 42%]
test/python/test_heterodyned_model.py::test_five PASSED [ 47%]
test/python/test_heterodyned_model.py::test_six FAILED [ 52%]
test/python/test_heterodyned_model.py::test_seven FAILED [ 57%]
test/python/test_python_imports.py::test_import[lalpulsar.NstarTools] PASSED [ 63%]
test/python/test_python_imports.py::test_import[lalpulsar.PulsarParametersWrapper] PASSED [ 68%]
test/python/test_python_imports.py::test_import[lalpulsar] PASSED [ 73%]
test/python/test_python_imports.py::test_import[lalpulsar.git_version] PASSED [ 78%]
test/python/test_python_imports.py::test_import[lalpulsar.lalpulsar] PASSED [ 84%]
test/python/test_python_imports.py::test_import[lalpulsar.simulateCW] PASSED [ 89%]
test/python/test_python_imports.py::test_import[lalpulsar.simulateHeterodynedCW] PASSED [ 94%]
test/python/test_simulateCW.py::test_fstatistic PASSED [100%]
============================================== FAILURES ==============================================
_____________________________________________ test_four ______________________________________________
def test_four():
parhet = PulsarParametersPy()
parhet['F'] = [123.4567, -9.876e-12] # set frequency
parhet['RAJ'] = lal.TranslateHMStoRAD('01:23:34.6') # set right ascension
parhet['DECJ'] = lal.TranslateDMStoRAD('-45:01:23.5') # set declination
pepoch = lal.TranslateStringMJDTTtoGPS('58000')
parhet['PEPOCH'] = pepoch.gpsSeconds + 1e-9*pepoch.gpsNanoSeconds
parhet['H0'] = 5.6e-26
parhet['COSIOTA'] = -0.2
parhet['PSI'] = 0.4
parhet['PHI0'] = 2.3
> parhet['BINARY'] = 'BT'
test/python/test_heterodyned_model.py:737:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <lalpulsar.PulsarParametersWrapper.PulsarParametersPy object at 0x7f035e17d5e0>, key = 'BINARY'
value = 'BT'
def __setitem__(self, key, value):
"""
Set the value of a key
"""
# if parameter exists remove it
if lalpulsar.PulsarCheckParam(self._pulsarparameters, key):
lalpulsar.PulsarRemoveParam(self._pulsarparameters, key)
if isinstance(value, float):
lalpulsar.PulsarAddREAL8Param(self._pulsarparameters, key, value)
elif isinstance(value, string_types):
> lalpulsar.PulsarAddStringParam(self._pulsarparameters, key, value)
E TypeError: in method 'PulsarAddStringParam', argument 3 of type 'CHAR const *'
../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/lib/python3.9/site-packages/lalpulsar/PulsarParametersWrapper.py:360: TypeError
______________________________________________ test_six ______________________________________________
def test_six():
parhet = PulsarParametersPy()
parhet['F'] = [123.4567, -9.876e-12] # set frequency
parhet['RAJ'] = lal.TranslateHMStoRAD('01:23:34.6') # set right ascension
parhet['DECJ'] = lal.TranslateDMStoRAD('-45:01:23.5') # set declination
pepoch = lal.TranslateStringMJDTTtoGPS('58000')
parhet['PEPOCH'] = pepoch.gpsSeconds + 1e-9*pepoch.gpsNanoSeconds
parinj = PulsarParametersPy()
parinj['F'] = [123.456789, -9.87654321e-12] # set frequency
parinj['RAJ'] = lal.TranslateHMStoRAD('01:23:34.5') # set right ascension
parinj['DECJ'] = lal.TranslateDMStoRAD('-45:01:23.4') # set declination
pepoch = lal.TranslateStringMJDTTtoGPS('58000')
parinj['PEPOCH'] = pepoch.gpsSeconds + 1e-9*pepoch.gpsNanoSeconds
> parinj['BINARY'] = 'BT'
test/python/test_heterodyned_model.py:910:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <lalpulsar.PulsarParametersWrapper.PulsarParametersPy object at 0x7f035e15abb0>, key = 'BINARY'
value = 'BT'
def __setitem__(self, key, value):
"""
Set the value of a key
"""
# if parameter exists remove it
if lalpulsar.PulsarCheckParam(self._pulsarparameters, key):
lalpulsar.PulsarRemoveParam(self._pulsarparameters, key)
if isinstance(value, float):
lalpulsar.PulsarAddREAL8Param(self._pulsarparameters, key, value)
elif isinstance(value, string_types):
> lalpulsar.PulsarAddStringParam(self._pulsarparameters, key, value)
E TypeError: in method 'PulsarAddStringParam', argument 3 of type 'CHAR const *'
../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/lib/python3.9/site-packages/lalpulsar/PulsarParametersWrapper.py:360: TypeError
_____________________________________________ test_seven _____________________________________________
def test_seven():
parhet = PulsarParametersPy()
parhet['F'] = [153.4567, -2.876e-11] # set frequency
parhet['RAJ'] = lal.TranslateHMStoRAD('04:23:34.6') # set right ascension
parhet['DECJ'] = lal.TranslateDMStoRAD('-05:01:23.5') # set declination
pepoch = lal.TranslateStringMJDTTtoGPS('55810')
parhet['PEPOCH'] = pepoch.gpsSeconds + 1e-9*pepoch.gpsNanoSeconds
parinj = PulsarParametersPy()
parinj['F'] = [153.456789, -2.87654321e-11] # set frequency
parinj['RAJ'] = lal.TranslateHMStoRAD('04:23:34.5') # set right ascension
parinj['DECJ'] = lal.TranslateDMStoRAD('-05:01:23.4') # set declination
pepoch = lal.TranslateStringMJDTTtoGPS('55810')
parinj['PEPOCH'] = pepoch.gpsSeconds + 1e-9*pepoch.gpsNanoSeconds
> parinj['BINARY'] = 'BT'
test/python/test_heterodyned_model.py:985:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <lalpulsar.PulsarParametersWrapper.PulsarParametersPy object at 0x7f035dfe7970>, key = 'BINARY'
value = 'BT'
def __setitem__(self, key, value):
"""
Set the value of a key
"""
# if parameter exists remove it
if lalpulsar.PulsarCheckParam(self._pulsarparameters, key):
lalpulsar.PulsarRemoveParam(self._pulsarparameters, key)
if isinstance(value, float):
lalpulsar.PulsarAddREAL8Param(self._pulsarparameters, key, value)
elif isinstance(value, string_types):
> lalpulsar.PulsarAddStringParam(self._pulsarparameters, key, value)
E TypeError: in method 'PulsarAddStringParam', argument 3 of type 'CHAR const *'
../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/lib/python3.9/site-packages/lalpulsar/PulsarParametersWrapper.py:360: TypeError
====================================== short test summary info =======================================
FAILED test/python/test_heterodyned_model.py::test_four - TypeError: in method 'PulsarAddStringPara...
FAILED test/python/test_heterodyned_model.py::test_six - TypeError: in method 'PulsarAddStringParam...
FAILED test/python/test_heterodyned_model.py::test_seven - TypeError: in method 'PulsarAddStringPar...
==================================== 3 failed, 16 passed in 3.55s ====================================
The build log is at https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=428018&view=results