Skip to content

feat: Add override to UserMetadata#683

Merged
sandorkertesz merged 6 commits into
developfrom
feat/Improve-UserMetadata
May 1, 2025
Merged

feat: Add override to UserMetadata#683
sandorkertesz merged 6 commits into
developfrom
feat/Improve-UserMetadata

Conversation

@HCookie

@HCookie HCookie commented Apr 24, 2025

Copy link
Copy Markdown
Member

Update UserMetadata

  • Add override method
    • Complete deep copy
  • Add dump

Allows

from earthkit.data.utils.metadata.dict import UserMetadata

metadata = UserMetadata({'shortName':'2t'})
metadata.override(shortName = 'msl')

HCookie added 2 commits April 24, 2025 16:18
- Add override method
   - Complete deep copy
- Add dump
@HCookie HCookie requested a review from sandorkertesz April 24, 2025 16:21
@HCookie HCookie self-assigned this Apr 24, 2025
@HCookie HCookie changed the title feat: Update UserMetadata feat: Add override to UserMetadata Apr 24, 2025
@codecov-commenter

codecov-commenter commented Apr 24, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.01%. Comparing base (c80c8db) to head (64ec255).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #683      +/-   ##
===========================================
+ Coverage    90.99%   91.01%   +0.01%     
===========================================
  Files          162      162              
  Lines        12363    12385      +22     
  Branches       605      609       +4     
===========================================
+ Hits         11250    11272      +22     
  Misses         932      932              
  Partials       181      181              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread src/earthkit/data/utils/metadata/dict.py Outdated
Comment thread tests/array_fieldlist/test_array_field_usermetadata.py Outdated
@sandorkertesz

Copy link
Copy Markdown
Collaborator

@HCookie, many thanks for adding these features backed with proper testing! Once the code is updated with the latest develop it can be merged.

@sandorkertesz sandorkertesz merged commit 5dd3946 into develop May 1, 2025
126 checks passed
@sandorkertesz sandorkertesz deleted the feat/Improve-UserMetadata branch May 1, 2025 12:49
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.

3 participants