Skip to content

ENH: ASOS code has been refactored using AI - #1050

Merged
AdamTheisen merged 1 commit into
ARM-DOE:mainfrom
AdamTheisen:asos_ai
Aug 20, 2026
Merged

ENH: ASOS code has been refactored using AI#1050
AdamTheisen merged 1 commit into
ARM-DOE:mainfrom
AdamTheisen:asos_ai

Conversation

@AdamTheisen

@AdamTheisen AdamTheisen commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

When testing out some new ideas, I came across issues with the ASOS code where it showed errors for large requests. After putting the errors into ChatGPT, it narrowed it down to the asos.py code in ACT. There were some recent updates to the mesonet API that we use that cause these requests to be rejected.

I utilized ChatGPT to refactor and streamline the code, adding new tests as well. I have reviewed the codes, tested them, and ensure the original unit tests pass before adding in more tests. This new version does improve the time and efficiency of the original unit tests.

  • Closes ASOS Call Updates Needed #1049
  • Tests added
  • Documentation reflects changes
  • PEP8 Standards or use of linter
  • Xarray Dataset or DataArray variable naming follows 'ds' or 'da' naming

@AdamTheisen
AdamTheisen requested a review from zssherman as a code owner August 13, 2026 20:23
@zssherman

Copy link
Copy Markdown
Collaborator

@AdamTheisen Sounds good! I'll give this a review, might take a bit as its alot of changes

@AdamTheisen

Copy link
Copy Markdown
Collaborator Author

Agreed and no rush! The way we had was good but this code has a lot more checks and functionality

@zssherman zssherman closed this Aug 18, 2026
@zssherman zssherman reopened this Aug 18, 2026
@zssherman

zssherman commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

@AdamTheisen This looks good to me! Feel free to merge

@AdamTheisen
AdamTheisen merged commit 6b6223f into ARM-DOE:main Aug 20, 2026
22 of 31 checks passed
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.

ASOS Call Updates Needed

2 participants