Skip to content

Conversation

@dopplershift
Copy link
Member

@dopplershift dopplershift commented Nov 8, 2025

Description Of Changes

Fixes some random things I noticed while looking through items identified by GitHub's new code quality checker.

  • Make LegacyMapper call super().__init__(). It's not needed, but it's better behavior.
  • Simplify some example imports
  • Make use of built-in xarray Gini support directly in an example
  • Use get_test_data(..., as_file_obj=True) in more places where we're passing on to other libraries. It just clarifies things around who should be closing the file.

@dopplershift dopplershift requested a review from a team as a code owner November 8, 2025 00:51
@dopplershift dopplershift added the Type: Maintenance Updates and clean ups (but not wrong) label Nov 8, 2025
@dopplershift dopplershift removed the request for review from a team November 8, 2025 00:51
@dopplershift dopplershift added the Area: Examples Affects examples label Nov 8, 2025
@dopplershift dopplershift requested a review from dcamron November 8, 2025 00:51
@dopplershift dopplershift added the Area: IO Pertains to reading data label Nov 8, 2025
While calling the base __init__() isn't necessary, it's better practice
and doesn't hurt anything.
Simplifies things versus using GiniFile directly.
This clarifies ownership around who needs to close the file.
@dcamron dcamron merged commit 9a4901c into Unidata:main Dec 24, 2025
37 checks passed
@github-actions github-actions bot added this to the 1.8.0 milestone Dec 24, 2025
@dopplershift dopplershift deleted the cleanup branch December 29, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Examples Affects examples Area: IO Pertains to reading data Type: Maintenance Updates and clean ups (but not wrong)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants