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
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
Cell In[19], line 1
----> 1 koffi.jpl_search_frame(image)
File ~/.conda/envs/kbmod/lib/python3.11/site-packages/koffi/koffi.py:216, in jpl_search_frame(image)
205 def jpl_search_frame(image):
206 """
207 Gets all known objects within the frame of a single FITS image from
208 JPL Horizons API.
(...)
214 the form [Name, SkyCoord].
215 """
--> 216 query_string = create_jpl_query_string(image)
217 if not query_string:
218 raise ValueError("WARNING: Insufficient data in image_metadata.")
File ~/.conda/envs/kbmod/lib/python3.11/site-packages/koffi/koffi.py:165, in create_jpl_query_string(image)
163 # Create a string of data for the observatory.
164 if image.obs_code:
--> 165 obs_str = "mpc-code=%s" % self.obs_code
166 else:
167 obs_str = "lat=%f&lon=%f&alt=%f" % (image.obs_lat, image.obs_long, image.obs_alt)
NameError: name 'self' is not defined
Before submitting
Please check the following:
I have described the situation in which the bug arose, including what code was executed, information about my environment, and any applicable data others will need to reproduce the problem.
I have included available evidence of the unexpected behavior (including error messages, screenshots, and/or plots) as well as a description of what I expected instead.
If I have a solution in mind, I have provided an explanation and/or pseudocode and/or task list.
The text was updated successfully, but these errors were encountered:
Bug report
running
koffi.jpl_search_frame(image)
returnsBefore submitting
Please check the following:
The text was updated successfully, but these errors were encountered: