Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Final scan plot failing for cascades #7

Open
mlincett opened this issue Jun 2, 2022 · 3 comments
Open

Final scan plot failing for cascades #7

mlincett opened this issue Jun 2, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@mlincett
Copy link
Contributor

mlincett commented Jun 2, 2022

Sometimes the final plot fails for cascades (today's example run00136692.evt000006590287.HESE).

<class 'ValueError'>
arange: cannot compute length
<traceback object at 0x7fd6224d18c0>
@mlincett
Copy link
Contributor Author

mlincett commented Jun 2, 2022

A couple for tracebacks (two unrelated failing modes) thank to @clagunas :

File "/cvmfs/icecube.opensciencegrid.org/users/followup/metaprojects/combo-realtime/trunk/build/lib/icecube/skymap_scanner/create_plot_zoomed.py", line 643, in loop_over_plots
  create_plot_zoomed(eventID, state_dict, outdir, syst, ra, dec, radius, log_func, upload_func, final_channels)
 File "/cvmfs/icecube.opensciencegrid.org/users/followup/metaprojects/combo-realtime/trunk/build/lib/icecube/skymap_scanner/create_plot_zoomed.py", line 384, in create_plot_zoomed
  healpy.graticule(dpar=2, dmer=2, force=True) 
 File "/cvmfs/icecube.opensciencegrid.org/py3-v4.1.0/RHEL_7_x86_64/lib/python3.7/site-packages/healpy/visufunc.py", line 1387, in graticule
  ax.graticule(dpar=dpar, dmer=dmer, coord=coord, local=local, **kwds)
 File "/cvmfs/icecube.opensciencegrid.org/py3-v4.1.0/RHEL_7_x86_64/lib/python3.7/site-packages/healpy/projaxes.py", line 549, in graticule
  phi_list = np.around(np.arange(mmin, mmax + 0.5 * dmer, dmer) / dmer) * dmer
ValueError: arange: cannot compute length
File "/cvmfs/icecube.opensciencegrid.org/users/followup/metaprojects/combo-realtime/trunk/build/lib/icecube/skymap_scanner/create_plot_zoomed.py", line 643, in loop_over_plots
    create_plot_zoomed(eventID, state_dict, syst, ra, dec, radius, log_func, upload_func, final_channels)
  File "/cvmfs/icecube.opensciencegrid.org/users/followup/metaprojects/combo-realtime/trunk/build/lib/icecube/skymap_scanner/create_plot_zoomed.py", line 522, in create_plot_zoomed
    new_pixels = fixpixnumber(nside, pixels)
  File "/cvmfs/icecube.opensciencegrid.org/users/followup/metaprojects/combo-realtime/trunk/build/lib/icecube/skymap_scanner/create_plot_zoomed.py", line 518, in fixpixnumber
    pix_fixed = healpy.ang2pix(nside, th_fixed, phi_o)
  File "/cvmfs/icecube.opensciencegrid.org/py3-v4.1.0/RHEL_7_x86_64/lib/python3.7/site-packages/healpy/pixelfunc.py", line 481, in ang2pix
    return pixlib._ang2pix_ring(nside, theta, phi)
MemoryError: Unable to allocate array with shape (12582912,) and data type int64

@ric-evans ric-evans added the bug Something isn't working label Jun 9, 2022
@ric-evans
Copy link
Member

@tianluyuan @mlincett do we know if this is still happening?

@mlincett
Copy link
Contributor Author

I think this can be moved to skymap-scanner-tools and we will take it from there. Probably some refactoring of the plotting routines is in order anyway.

@mlincett mlincett transferred this issue from icecube/skymap_scanner May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants