metoppv / improver

IMPROVER is a library of algorithms for meteorological post-processing.
http://improver.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
101 stars 84 forks source link

amend_attributes can now add to an existing value, and add timestamps. #1973

Closed MoseleyS closed 7 months ago

MoseleyS commented 7 months ago

Addresses https://metoffice.atlassian.net/browse/EPPT-650

Updates amend_attributes method, used by standardise CLI, to allow attributes to be modified in these ways:

This allows us to update the history attribute of a cube and to append the current date-time and a string describing the process that has been applied.

Testing:

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (f77f534) 98.39% compared to head (5b5a7e4) 98.40%. Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1973 +/- ## ======================================= Coverage 98.39% 98.40% ======================================= Files 124 124 Lines 12059 12067 +8 ======================================= + Hits 11866 11874 +8 Misses 193 193 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.