Raynest integration
Implementation of the sampler switch between cpnest
and raynest
.
The core implementation consists in letting LIGOVirgoModel
inheriting both model.Model
classes from the two samplers (here), and then remove the one that is not used (here) based on the selected sampler. The implementation has been tested on CIT cluster.
MacOS compatibility
Unfortunately, I was not able to set up an environment that works for both samplers together on a MacOS machine.
-
cpnest
is not compatible with MacOS native processorsarm64
forpython>=3.8
(see this issue) -
raynest
does not work on a simulatedx86_64
architecture (see the error below) -
python=3.7
is not available onconda
for MacOSarm64
Python 3.8.19 (default, Mar 20 2024, 15:00:34)
[Clang 14.0.6 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import raynest.model
zsh: illegal hardware instruction python
A possible solution could be to use a virtual environment to install python=3.7
with native arm64
architecture (see this guide).
The merge request will not be closed until a solution is found.