Skip to content

Conversation

@forman
Copy link
Member

@forman forman commented Feb 12, 2024

  • The configuration setting attrs can now be used to define dynamically
    computed dataset attributes using the syntax {{ expression }}.

    Example:

    permit_eval: true
    attrs:
      title: HROC Ocean Colour Monthly Composite
      time_coverage_start: {{ lower_bound(ds.time) }}
      time_coverage_end: {{ upper_bound(ds.time) }}
  • Introduced new configuration setting attrs_update_mode that controls
    how dataset attributes are updated.

Closes #59
Closes #60

@codecov
Copy link

codecov bot commented Feb 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (29cab0b) 99.83% compared to head (b695007) 99.85%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #61      +/-   ##
==========================================
+ Coverage   99.83%   99.85%   +0.01%     
==========================================
  Files          25       26       +1     
  Lines        1220     1371     +151     
==========================================
+ Hits         1218     1369     +151     
  Misses          2        2              

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

@forman forman self-assigned this Feb 13, 2024
@forman forman marked this pull request as ready for review February 16, 2024 17:13
@forman forman merged commit f31a5aa into main Feb 19, 2024
@forman forman deleted the forman-60-custom_attrs branch February 19, 2024 13:23
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.

Define custom dataset attributes Specify operation for target attributes

2 participants