-
Notifications
You must be signed in to change notification settings - Fork 1
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
Object detection controller #19
Conversation
new file: forcedphot/odc.py new file: forcedphot/query_args.txt
new file: tests/forcedphot/test_odc.py
modified: tests/forcedphot/ephemeris/test_data_loader.py modified: tests/forcedphot/test_odc.py
…000_2024-06-30_23-59-00.000.ecsv
modified: src/forcedphot/ephemeris/horizons_interface.py modified: src/forcedphot/ephemeris/miriade_interface.py modified: src/forcedphot/odc.py modified: tests/forcedphot/ephemeris/test_ephemeris_client.py modified: tests/forcedphot/ephemeris/test_horizons_interface.py modified: tests/forcedphot/ephemeris/test_miriade_interface.py
modified: src/forcedphot/ephemeris/ephemeris_client.py modified: src/forcedphot/odc.py modified: tests/forcedphot/ephemeris/test_data_loader.py modified: tests/forcedphot/test_odc.py
modified: tests/forcedphot/test_odc.py
Thank you for your contribution to ssoforcedphot, a LINCC Framework package! 🌌 This checklist is meant to remind pull request reviewers of some common things to look for.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove all the commented out code, save it to another branch if you want to save it for future use.
--ecsv: | ||
Path to ECSV file containing input data. | ||
|
||
--csv: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should give more info on how the csv file should be set up. Based on the test file, it looks like the column headers are named the specific args? But I may be wrong here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the tests/forcedphot/ephemeris/data folder, I added a template_ephemeris.ecsv file that can be used as a template.
src/forcedphot/query_args.txt
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if used for tests, should be moved a data directory in tests
or if it's being used as an example, it should probably still go elsewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are absolutely right, I moved it to the tests/forcedphot/ephemeris/data folder.
service selection, target specification, time range settings, input file | ||
handling, and various service configurations. | ||
|
||
Command-line Arguments: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The filter(s) a user wants to query should be an argument for all but the ephemeris service. It should be able to receive a single filter or list of filters (e.g., [g,r])
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this argument was left out. I have included it.
It's not connected to anything at the moment, but as soon as the image service is up and running, it will be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a filter argument and move query_args.txt
modified: src/forcedphot/ephemeris/horizons_interface.py modified: src/forcedphot/ephemeris/miriade_interface.py modified: src/forcedphot/odc.py new file: tests/forcedphot/ephemeris/data/query_args.txt new file: tests/forcedphot/ephemeris/data/query_args2.txt new file: tests/forcedphot/ephemeris/data/template_ephemeris.ecsv
I just made some small changes as the conda command in README.md wasn't working for me and there was a typo in odc.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this all works nicely for the current task of retrieving ephemerides for a given object(s). At some point in the future it would be good to have more documentation on exactly how CLI arguments such as --target-type relates to the Horizons/Miriade query. I had comments on the CLI arguments relating to other aspects of the package (issue #13) but I think this can be merged now and these other details sorted when they are being worked on
Change Description
I have created the objection detection controller (odc) which brings together and manages the various subsystems, such as the ephemeris service, the image service, etc.
Currently it only manages the ephemeris service via command line interface.