I'm Sirio, an italian Web Developer, a nerd
ziriuz84 / asteroidpy Goto Github PK
View Code? Open in Web Editor NEWTool for Asteroid observation and analysis
License: GNU General Public License v3.0
Tool for Asteroid observation and analysis
License: GNU General Public License v3.0
The config file path is only for *nix OSes like Linux or MacOS. It can't be used for Windows path. Is there a library useful for it?
It will be a great help to configuration to download observatory coordinates when adding an MPC code to config file
Add a menu voice to obtain ephemeris of a given object
I've selected scheduling.py:observing_target_list(config,payload) for refactoring, which is a unit of 39 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
It'll be awesome to have a model of the horizon, so we can limit altitude differently in every direction
Describe the bug
When I search for ephemerids of an object it crashes completely
To Reproduce
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
I've selected scheduling.py:weather(config) for refactoring, which is a unit of 37 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
I've selected interface.py:observatory_config_menu(config) for refactoring, which is a unit of 33 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
Docstrings must be completed to try and configure Sphinx
I've selected interface.py:scheduling_menu(config) for refactoring, which is a unit of 64 lines of code and 7 branch points. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Simple Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
I've selected scheduling.py:observing_target_list(config,payload) for refactoring, which is a unit of 33 lines of code and 7 branch points. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Simple Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
It doesn't initialize artificial horizon values
DeltaT is not easy understandable in this form. Weather forecast API gives an init parameter to know when the time is starting
It's a good idea to use QTable in Observing target list for better performance and personalization.
https://docs.astropy.org/en/stable/table/
When I launch make html
in docs folder the output is like this
Running Sphinx v1.8.5
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 0 source files that are out of date
updating environment: [] 0 added, 1 changed, 0 removed
Downloading https://hpiers.obspm.fr/iers/bul/bulc/Leap_Second.dat
|==========================================================================================================================| 1.3k/1.3k (100.00%) 0s
Downloading https://www.ietf.org/timezones/data/leap-seconds.list [Done]
WARNING: IERSStaleWarning: leap-second file is expired. [astropy.utils.iers.iers]
WARNING: autodoc: failed to import module 'asteroidpy' from module 'asteroidpy'; the following exception was raised:
No module named 'astroquery'
WARNING: autodoc: failed to import module 'configuration' from module 'asteroidpy'; the following exception was raised:
No module named 'astroquery'
WARNING: autodoc: failed to import module 'interface' from module 'asteroidpy'; the following exception was raised:
No module named 'astroquery'
WARNING: autodoc: failed to import module 'scheduling' from module 'asteroidpy'; the following exception was raised:
No module named 'astroquery'
WARNING: autodoc: failed to import module 'asteroidpy'; the following exception was raised:
No module named 'astroquery'
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] modules
generating indices... genindex
writing additional pages... search
copying static files... done
copying extra files... done
dumping search index in English (code: en) ... done
dumping object inventory... done
build succeeded, 5 warnings.
The HTML pages are in build/html.
I've selected scheduling.py:observing_target_list(config) for refactoring, which is a unit of 81 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
Simply clean all documentation and add and configure Sphinx
I've selected scheduling.py:weather(config) for refactoring, which is a unit of 37 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
I've selected interface.py:observatory_config_menu(config) for refactoring, which is a unit of 33 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
Now Neocp coordinates are in decimal degrees. It's better if they are in H:M:S format
If I use Windows I don't have / but . I must consider it in file path
I've selected interface.py:scheduling_menu(config) for refactoring, which is a unit of 88 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
I've selected interface.py:main_menu(config) for refactoring, which is a unit of 16 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
It'll be awesome to have some GUI. I'm thinking to PySimpleGUI https://pysimplegui.readthedocs.io/en/latest/
It's very useful to know especially moon's ephemeris. Astroplan is good for this purpose
Until now the software asks for minimum altitude for neocp search. It's not needed because it gets artificial horizon as default
It will be very useful to add Twilight times to know when to operate. Maybe it's also useful Moon Phase, Moon rising and Moon set
I've selected interface.py:scheduling_menu(config) for refactoring, which is a unit of 16 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
When the program encounter network error it fails and crashes. I need some try-except to handle them without crashing
Until now AsteroidPy is a simple python script. It will be easier to install and use as a pip package
I've selected interface.py:observatory_config_menu(config) for refactoring, which is a unit of 33 lines of code and 6 branch points. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Simple Units of Code guideline rating! ๐
Here's the gist of this guideline:
You can find more info about this guideline in Building Maintainable Software. ๐
โน๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐ฒ next to them. The risk profile below the candidates signals (โ ) when it's enough! ๐
Good luck and happy coding! โจ ๐ฏ
README.md is really outdated and incomplete.
AsteroidPy is ready for translation, there are pot files and all important strings are translatable. But Gettext is not configured.
It will be awesome to add type hinting in all project
It's very useful to add Neocp velocity and direction to Neocp Confirmation list. They must be scraped from
https://www.minorplanetcenter.net/iau/NEO/toconfirm_tabular.html
or
https://newton.spacedys.com/neodys/include/neodys_cgi-bin/ephem_page.pl
AsteroidPy must be translated in Italian language
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.