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
In this issue I propose that this be enforced when the WCS object is created or its pipeline modified.
Currently, when using the standard example from the [gWCS docs] modified to have two identical frames, it does not raise an exception: wcsobj = wcs.WCS([('det', det2sky), ('det', det2sky), ('sky', None)]). But the code does crash when attempting to evaluate forward transform:
In [19]: wcsobj(10,10)
---------------------------------------------------------------------------AttributeErrorTraceback (mostrecentcalllast)
<ipython-input-19-a8018916eccf>in<module>()
---->1wcsobj(10,10)
~/.../lib/python3.5/site-packages/gwcs/wcs.pyin__call__(self, *args, **kwargs)
242kwargs['fill_value'] =np.nan243-->244ifself.bounding_boxisnotNone:
245# Currently compound models do not attempt to combine individual model246# bounding boxes. Get the forward transform and assign the ounding_box to it~/.../lib/python3.5/site-packages/gwcs/wcs.pyinbounding_box(self)
456transform_0=self.get_transform(frames[0], frames[1])
457try:
-->458bb=transform_0.bounding_box459exceptNotImplementedError:
460returnNoneAttributeError: 'NoneType'objecthasnoattribute'bounding_box'
However, this 'bounding_box' error is not intuitive or directly pointing to the underlying issue.
The text was updated successfully, but these errors were encountered:
mcara
changed the title
Prevent creation ow WCS with or insertion of duplicate frames
Prevent creation of WCS with or insertion of duplicate frames
Sep 29, 2018
mcara
changed the title
Prevent creation of WCS with or insertion of duplicate frames
Prevent creation of WCS with (or insertion of) duplicate frames
Sep 29, 2018
In spacetelescope/jwst#2629 (comment) @nden said:
In this issue I propose that this be enforced when the
WCS
object is created or its pipeline modified.Currently, when using the standard example from the [
gWCS
docs] modified to have two identical frames, it does not raise an exception:wcsobj = wcs.WCS([('det', det2sky), ('det', det2sky), ('sky', None)])
. But the code does crash when attempting to evaluate forward transform:However, this
'bounding_box'
error is not intuitive or directly pointing to the underlying issue.The text was updated successfully, but these errors were encountered: