Open mfacchinelli opened 2 weeks ago
I am guessing that we need to add end_date
to this list: https://github.com/IMAP-Science-Operations-Center/imap-data-access/blob/bde27e7b9c56fe5b2b613afa1f588eb28e0589fb/imap_data_access/cli.py#L96
If you add verbose logging you can also see that we aren't passing it to the API.
imap-data-access -v query --instrument mag --start-date 20240314 --end-date 20240315
INFO:imap_data_access.io:Querying data archive for {'instrument': 'mag', 'start_date': '20240314'} with url https://api.dev.imap-mission.com/query?instrument=mag&start_date=20240314
Thanks @greglucas, that was helpful! I've created #48 for the fix
Description of the issue
When using the CLI/Python APIs to request data for a specific time period, the end date does not seem to be respected.
Steps to reproduce the issue
In a shell terminal (or Python) run:
This returns:
which includes dates well past the cutoff.
Expected behavior (What should happen)
With the web APIs:
the end date is honored:
Actual behavior (What does happen)
See reproduction steps.
Code Snippet:
Additional notes, affected areas, and suggested fixes
No response