Skip to content

Fixed installation bug causing Galsim libraies to not be correctly li…#27

Merged
CMacM merged 1 commit intomainfrom
gsinterface_bug
Mar 4, 2026
Merged

Fixed installation bug causing Galsim libraies to not be correctly li…#27
CMacM merged 1 commit intomainfrom
gsinterface_bug

Conversation

@CMacM
Copy link
Owner

@CMacM CMacM commented Mar 4, 2026

An unreliable installation route was causing improper linkage of the BATSim C++ layer to the Galsim C++ API. This was casuing BATSim C++ functions not to recognise Galsim's C++ classes when passed through Python.

To address this, I have added a new installation path using Conda which will build and install BATSim and all its dependencies through Conda forge, as the Galsim C++ library file is pre-built in the Conda version and Conda handles the linkage cleaner.

I have also updated the README.md to give more detailed instructions on how to carry out and editable install and what may go wrong in the process.

Finally, I added a unit test to verify the C++ layer is working, so issues can be identified at installation.

The regular install path should now provide a realiably working BATSim. The development install path is a bit more finicky, but hopefully the added details can help users identify what may be causing issues.

I plan to add a pip-only install path in future, but this is more complex as it requires the Galsim C++ library file to be manually built and linked.

…nked when BATSim is built. Updated readme with conda-preferred installation instructions and added unit test to ensure linkage was successful.
@CMacM CMacM merged commit dbf45a3 into main Mar 4, 2026
1 check passed
@CMacM CMacM deleted the gsinterface_bug branch March 4, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant