Open swaraj3026 opened 1 month ago
Hi @swaraj3026 This is unfortunately a known issue and several attempts to fix the bug did work yet. If you rely on the lenses, you probably best go back to an earlier python version (I think 3.6) and a Linux machine. There the tests for the lenses were running the longest. Otherwise we are working on a new implementation of the lenses but the project has no scheduled time frame.
Thank you for the information.
Regards Swaraj Pratim Sarmah Research Scholar *Department of Physics, *Dibrugarh University
Dibrugarh, 786004
Ph.No. +91 6000862959
On Tue, 19 Nov 2024 at 3:07 PM, Lukas Merten @.***> wrote:
Hi @swaraj3026 https://github.com/swaraj3026 This is unfortunately a known issue and several attempts to fix the bug did work yet. If you rely on the lenses, you probably best go back to an earlier python version (I think 3.6) and a Linux machine. There the tests for the lenses were running the longest. Otherwise we are working on a new implementation of the lenses but the project has no scheduled time frame.
— Reply to this email directly, view it on GitHub https://github.com/CRPropa/CRPropa3/issues/506#issuecomment-2485173546, or unsubscribe https://github.com/notifications/unsubscribe-auth/BLRTFE5R552HVFEYLWBVQJT2BMBE7AVCNFSM6AAAAABOYRRFWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBVGE3TGNJUGY . You are receiving this because you were mentioned.Message ID: @.***>
Shows this error in all the galactic lensing examples - "The kernel for file_name.ipynb appears to have died. It will restart automatically." For this code which is in the example section. Except this, all examples are running smoothly
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %matplotlib inline
import healpy import matplotlib.pyplot as plt
stack all maps
crMap = np.zeros(49152) for pid in M.getParticleIds(): energies = M.getEnergies(int(pid)) for i, energy in enumerate(energies): crMap += M.getMap(int(pid), energy * crpropa.eV )
plot maps using healpy
healpy.mollview(map=crMap, title='Unlensed') plt.savefig('unlensed_map.png') %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Apple Macbook Air: