Skip to content

Conversation

@horoshiny
Copy link

@horoshiny horoshiny commented Jan 22, 2026

This PR improves the halo simulation script by fixing how simulation files are saved and making the save paths portable.
What changed:
-Save files with np.savez instead of object arrays- ensures images and axion masses are stored safely and consistently.
-Removed hardcoded Linux paths- uses project-relative paths so the code works on any system.
Testing:
-Verified files save correctly in the project folder with image and axion_mass.
-Verified folder creation works automatically if missing.

Hi! This is my first contribution to DeepLenseSim!

Any feedback is very welcome, happy to improve it!

Portable saving of simulation images with np.savez
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