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

ValueError: Maximum allowed size exceeded while making SED #581

Open
Adinimal opened this issue Apr 10, 2024 · 2 comments
Open

ValueError: Maximum allowed size exceeded while making SED #581

Adinimal opened this issue Apr 10, 2024 · 2 comments
Labels

Comments

@Adinimal
Copy link

Adinimal commented Apr 10, 2024

Describe the bug
A clear and concise description of what the bug is. What data are you using and how was it obtained?
I am using Fermi-LAT data of a source 4FGLJ0649.5-3139. During period MJD 55718-55802, I am getting this error while trying to generate the SED (rom 100 MeV to 300 GeV). While for other periods, I did not have any issue. It would be helpful if anyone could suggest what I could do differently or what might be the issue here. Thanks!

NOTE: This is for fermipy bug reports and not for questions about data analysis or issues with fermitools.

To Reproduce

Please provide enough information for someone else to reporoduce this bug. That means e.g. a script + (links to) necessary files + any command line options, or an ipython notebook or something similar.

Expected behavior
A clear and concise description of what you expected to happen.

Log files
Add log files or copy & paste the entire output on the terminal or jupyer notebook cell.
This is the error:
Traceback (most recent call last):
File "/var/spool/slurmd/job43387301/slurm_script", line 327, in
main(sys.argv)
File "/var/spool/slurmd/job43387301/slurm_script", line 168, in main
sed = gta.sed(srcname, make_plots=True)
File "/sdf/home/../miniforge3/envs/fermipy/lib/python3.9/site-packages/fermipy/sed.py", line 108, in sed
self._plotter.make_sed_plots(o, **config)
File "/sdf/home/../miniforge3/envs/fermipy/lib/python3.9/site-packages/fermipy/plotting.py", line 1287, in make_sed_plots
p.plot(showlnl=True)
File "/sdf/home/../miniforge3/envs/fermipy/lib/python3.9/site-packages/fermipy/plotting.py", line 874, in plot
return SEDPlotter.plot_sed(self.sed, showlnl, **kwargs)
File "/sdf/home/../miniforge3/envs/fermipy/lib/python3.9/site-packages/fermipy/plotting.py", line 866, in plot_sed
SEDPlotter.plot_lnlscan(sed, **kwargs)
File "/sdf/home/../miniforge3/envs/fermipy/lib/python3.9/site-packages/fermipy/plotting.py", line 705, in plot_lnlscan
fluxEdges = np.arange(fmin, fmax, 0.01)
ValueError: Maximum allowed size exceeded

Environment (please complete the following information):

  • OS: (e.g. MacOS Monterey version 12.3.1)
  • Output of uname -a: Linux sdfiana009 4.18.0-372.32.1.el8_6.x86_64
  • fermipy version 1.2.0

Additional context
Add any other context about the problem here.

@omodei
Copy link
Member

omodei commented May 17, 2024

Hi! Can you try the same with ferry 1.2.2 installed via pypi. Also, can you send us a script that we can run to reproduce the error?

@omodei
Copy link
Member

omodei commented May 17, 2024

@ndilalla suggested also to try to ask for more memory when submitting to slurm at SLAC. It might be that the default is too small.

@omodei omodei added the SED label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants