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

Lightcurve error: Parameter scan points for 4FGL J0334.3+3920::Prefactor include infinite value. #627

Open
nyctophile-aayu opened this issue Dec 27, 2024 · 0 comments

Comments

@nyctophile-aayu
Copy link

Hi I am getting the similar issue for 10 day binning.

Error:

2024-12-09 14:40:04 INFO lightcurve_659145600_660009600 GTBinnedAnalysis.write_xml(): Writing /home/draco/Ayush/since_beginning/RDG/4C+39.12/659145600,733622405/data/lightcurve_659145600_660009600/base_01.xml...
2024-12-09 14:40:04 INFO lightcurve_659145600_660009600 GTBinnedAnalysis.write_xml(): Writing /home/draco/Ayush/since_beginning/RDG/4C+39.12/659145600,733622405/data/lightcurve_659145600_660009600/base_02.xml...
2024-12-09 14:40:04 INFO lightcurve_659145600_660009600 GTBinnedAnalysis.write_xml(): Writing /home/draco/Ayush/since_beginning/RDG/4C+39.12/659145600,733622405/data/lightcurve_659145600_660009600/base_03.xml...
Joint fit ['4FGL J0423.9+4150']
2024-12-09 14:40:05 WARNING lightcurve_659145600_660009600 GTAnalysis.profile_norm(): Source model for source 4FGL J0334.3+3920 has no counts in ROI
2024-12-09 14:40:05 WARNING lightcurve_659145600_660009600 GTAnalysis.profile_norm(): Upper limit not found. Refitting normalization.```

RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/draco/miniforge3/envs/fermipy/lib/python3.9/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/home/draco/miniforge3/envs/fermipy/lib/python3.9/site-packages/fermipy/lightcurve.py", line 181, in _process_lc_bin
fit_results = _fit_lc(gta, name, **kwargs)
File "/home/draco/miniforge3/envs/fermipy/lib/python3.9/site-packages/fermipy/lightcurve.py", line 59, in _fit_lc
gta.fit()
File "/home/draco/miniforge3/envs/fermipy/lib/python3.9/site-packages/fermipy/gtanalysis.py", line 3074, in fit
self.update_source(name, reoptimize=config['reoptimize'])
File "/home/draco/miniforge3/envs/fermipy/lib/python3.9/site-packages/fermipy/gtanalysis.py", line 4106, in update_source
sd = self.get_src_model(name, paramsonly, reoptimize, npts,
File "/home/draco/miniforge3/envs/fermipy/lib/python3.9/site-packages/fermipy/gtanalysis.py", line 4264, in get_src_model
lnlp = self.profile_norm(name, savestate=True,
File "/home/draco/miniforge3/envs/fermipy/lib/python3.9/site-packages/fermipy/gtanalysis.py", line 2472, in profile_norm
o = self.profile(name, parName,
File "/home/draco/miniforge3/envs/fermipy/lib/python3.9/site-packages/fermipy/gtanalysis.py", line 2684, in profile
raise RuntimeError(
RuntimeError: Parameter scan points for 4FGL J0334.3+3920::Prefactor include infinite value.
"""

The above exception was the direct cause of the following exception:

RuntimeError Traceback (most recent call last)
Cell In[11], line 2
1 # Generate a lightcurve freeing sources within 3 deg of the source of interest
----> 2 lc = gta.lightcurve('4C +39.12', binsz=86400.*10.0, free_radius=3.0, multithread=True, nthread=10) # Bin size 86400.*7.0 means 7 day binning

File ~/miniforge3/envs/fermipy/lib/python3.9/site-packages/fermipy/lightcurve.py:290, in LightCurve.lightcurve(self, name, **kwargs)
286 config = schema.create_config(config, **kwargs)
288 self.logger.info('Computing Lightcurve for %s' % name)
--> 290 o = self.make_lc(name, **config)
291 filename = utils.format_filename(self.workdir, 'lightcurve',
292 prefix=[config['prefix'],
293 name.lower().replace(' ', '
')])
295 o['file'] = None

File ~/miniforge3/envs/fermipy/lib/python3.9/site-packages/fermipy/lightcurve.py:451, in LightCurve._make_lc(self, name, **kwargs)
448 flux_const = None
449 for i, time in enumerate(zip(times[:-1], times[1:])):
--> 451 next_fit = next(mapo)
453 #delete temporary data products
454 if not kwargs.get('save_bin_data', False):

File ~/miniforge3/envs/fermipy/lib/python3.9/multiprocessing/pool.py:870, in IMapIterator.next(self, timeout)
868 if success:
869 return value
--> 870 raise value

RuntimeError: Parameter scan points for 4FGL J0334.3+3920::Prefactor include infinite value.

Code:
lc = gta.lightcurve('4C +39.12', binsz=86400.*10.0, free_radius=3.0, multithread=True, nthread=10) #616

Please suggest some resolution soon.

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

No branches or pull requests

1 participant