We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Some HST apertures are defined as circles. The Aperture.plot function doesn't know what to do with these:
Aperture.plot
cos_aperture = pysiaf.Siaf('hst').apertures['LNPSA'] cos_aperture.plot()
yields:
--------------------------------------------------------------------------- UnboundLocalError Traceback (most recent call last) Cell In[8], line 3 1 cos_aperture = pysiaf.Siaf('hst').apertures['LNPSA'] ----> 3 cos_aperture.plot() File ~/Dropbox (Personal)/Documents/software/git/pysiaf/pysiaf/aperture.py:666, in Aperture.plot(self, frame, label, ax, title, units, show_frame_origin, mark_ref, fill, fill_color, fill_alpha, label_rotation, **kwargs) 663 ax.set_xlabel('X pixels ({0})'.format(frame)) 664 ax.set_ylabel('Y pixels ({0})'.format(frame)) --> 666 x, y = self.corners(frame, rederive=False) 667 x2, y2 = self.closed_polygon_points(frame, rederive=False) 669 if units.lower() == 'arcsec': File ~/Dropbox (Personal)/Documents/software/git/pysiaf/pysiaf/aperture.py:1792, in HstAperture.corners(self, to_frame, rederive) 1789 y_Idl = np.array([self.v1y, self.v2y, self.v3y, self.v4y]) 1790 corners = SiafCoordinates(x_Idl, y_Idl, 'idl') -> 1792 return self.convert(corners.x, corners.y, corners.frame, to_frame) UnboundLocalError: cannot access local variable 'corners' where it is not associated with a value
The text was updated successfully, but these errors were encountered:
Oh I just realized this is a duplicate of #336 reported by @Witchblade101
Sorry, something went wrong.
No branches or pull requests
Some HST apertures are defined as circles. The
Aperture.plot
function doesn't know what to do with these:yields:
The text was updated successfully, but these errors were encountered: