Skip to content

Instantly share code, notes, and snippets.

@cdeil
Created September 22, 2019 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdeil/53057a588522e1fe8ec521214d67606f to your computer and use it in GitHub Desktop.
Save cdeil/53057a588522e1fe8ec521214d67606f to your computer and use it in GitHub Desktop.
__________________________________________________________________________ test_datasets_to_io ___________________________________________________________________________
gammapy/cube/fit.py:773: in update
position=self.model.position, width=width
gammapy/maps/wcsnd.py:704: in cutout
mode=mode,
../../../software/anaconda3/envs/gammapy-dev/lib/python3.7/site-packages/astropy/nddata/utils.py:686: in __init__
return_position=True)
../../../software/anaconda3/envs/gammapy-dev/lib/python3.7/site-packages/astropy/nddata/utils.py:211: in extract_array
shape, position, mode=mode)
../../../software/anaconda3/envs/gammapy-dev/lib/python3.7/site-packages/astropy/nddata/utils.py:106: in overlap_slices
raise NoOverlapError('Arrays do not overlap.')
E astropy.nddata.utils.NoOverlapError: Arrays do not overlap.
During handling of the above exception, another exception occurred:
gammapy/modeling/tests/test_serialize_yaml.py:106: in test_datasets_to_io
datasets = Datasets.from_yaml(filedata, filemodel)
gammapy/modeling/datasets.py:166: in from_yaml
constructor = dict_to_datasets(data_list, components)
gammapy/modeling/serialize.py:148: in __init__
self.update_dataset(dataset, components, bkg_name, model_names)
gammapy/modeling/serialize.py:161: in update_dataset
dataset.model = SkyModels(models)
gammapy/cube/fit.py:227: in model
evaluator.update(self.exposure, self.psf, self.edisp, self._geom)
gammapy/cube/fit.py:777: in update
f"Position {self.model.position!r} of model component is outside the image boundaries."
E ValueError: Position <SkyCoord (ICRS): (ra, dec) in deg
E (0., 0.)> of model component is outside the image boundaries. Please check the starting values or position parameter boundaries of the model.
=========================================================== 1 failed, 5 passed, 26 deselected in 2.66 seconds ============================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment