You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
#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:
Operating system: MacOS 15
M1 chip
Python version: 3.12
Swig version: 4.2.1
Cmake version: 3.30.3
The text was updated successfully, but these errors were encountered:
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.
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:
The text was updated successfully, but these errors were encountered: