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

jpl_search_frame isn't working #13

Open
3 tasks done
maxwest-uw opened this issue Apr 17, 2024 · 0 comments
Open
3 tasks done

jpl_search_frame isn't working #13

maxwest-uw opened this issue Apr 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@maxwest-uw
Copy link
Collaborator

Bug report
running koffi.jpl_search_frame(image) returns

---------------------------------------------------------------------------
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.
@maxwest-uw maxwest-uw added the bug Something isn't working label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant