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

Ephemerids doesn't function #72

Closed
ziriuz84 opened this issue Apr 27, 2024 · 0 comments · Fixed by #73
Closed

Ephemerids doesn't function #72

ziriuz84 opened this issue Apr 27, 2024 · 0 comments · Fixed by #73
Assignees

Comments

@ziriuz84
Copy link
Owner

ziriuz84 commented Apr 27, 2024

Describe the bug
When I search for ephemerids of an object it crashes completely

To Reproduce

  1. Go to Object Ephemerids
  2. Insert a known object like 12P

Expected behavior
It gives ephemerids of object

Traceback (most recent call last):
  File "/home/sirio/Projects/asteroidpy/env/bin/asteroidpy", line 33, in <module>
    sys.exit(load_entry_point('AsteroidPy', 'console_scripts', 'asteroidpy')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sirio/Projects/asteroidpy/asteroidpy/__init__.py", line 24, in main
    interface.interface(config)
  File "/home/sirio/Projects/asteroidpy/asteroidpy/interface.py", line 511, in interface
    main_menu(config)
  File "/home/sirio/Projects/asteroidpy/asteroidpy/interface.py", line 496, in main_menu
    scheduling_menu(config)
  File "/home/sirio/Projects/asteroidpy/asteroidpy/interface.py", line 465, in scheduling_menu
    object_ephemeris_menu(config)
  File "/home/sirio/Projects/asteroidpy/asteroidpy/interface.py", line 564, in object_ephemeris_menu
    ephemeris = scheduling.object_ephemeris(config, object_name, step)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sirio/Projects/asteroidpy/asteroidpy/scheduling.py", line 534, in object_ephemeris
    str(object_name).upper(), location=location, step=step, number=30
                                                      ^^^^
UnboundLocalError: cannot access local variable 'step' where it is not associated with a value
@ziriuz84 ziriuz84 self-assigned this Apr 27, 2024
@ziriuz84 ziriuz84 linked a pull request Apr 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant