Skip to content

feat: use new ace url#79

Merged
sahiljhawar merged 1 commit into
mainfrom
update-ace-url
Jul 9, 2026
Merged

feat: use new ace url#79
sahiljhawar merged 1 commit into
mainfrom
update-ace-url

Conversation

@sahiljhawar

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings July 9, 2026 09:53
@sahiljhawar sahiljhawar merged commit 3183f7b into main Jul 9, 2026
2 of 3 checks passed
@sahiljhawar sahiljhawar deleted the update-ace-url branch July 9, 2026 09:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the ACE solar wind ingestion to pull daily source files from the new NASA/SoHO FTP URL and adjusts processing/tests to match the new filename conventions and file formats.

Changes:

  • Switched ACE source URL and moved to date-stamped source filenames for MAG/SWEPAM inputs.
  • Updated download_and_process to operate on a (start_time, end_time) interval and process per-day downloads.
  • Refreshed ACE unit tests to mock requests.get and validate multi-day downloads and derived fields.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
swvo/io/solar_wind/ace.py Switches ACE source URL + introduces date-templated source filenames and interval-based downloading/processing.
tests/io/solar_wind/test_ace.py Updates fixtures/mocks and assertions to match the new daily file format and download behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread swvo/io/solar_wind/ace.py
LABEL = "ace"

def download_and_process(self, request_time: datetime) -> None:
def download_and_process(self, start_time: datetime, end_time: datetime) -> None:
Comment thread swvo/io/solar_wind/ace.py
Comment on lines +83 to +86
start_time = enforce_utc_timezone(start_time)
end_time = enforce_utc_timezone(end_time)

if current_time - request_time > timedelta(hours=2):
logger.debug("We can only download and process ACE RT data for the last two hours!")
return
assert start_time < end_time, "Start time must be before end time!"
Comment thread swvo/io/solar_wind/ace.py
Comment on lines 73 to +74
AssertionError
If the request_time is in the future.
If the requested interval is invalid or extends into a future UTC date.
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 this pull request may close these issues.

2 participants