Skip to content

Conversation

ESadek-MO
Copy link
Contributor

@ESadek-MO ESadek-MO commented Feb 28, 2025

🚀 Pull Request

Description

Added some convenience enums to quickplot, to supplement #6247.

from iris.quickplot import Classification

qplt.contour(cube, footer=Classification.official_sensitive)
iplot.show()

Which offers more consistency than:

qplt.contour(cube, footer="Official-Sensitive")
iplot.show()

Copy link

codecov bot commented Feb 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.78%. Comparing base (010389c) to head (24e5f6a).
Report is 85 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6346   +/-   ##
=======================================
  Coverage   89.78%   89.78%           
=======================================
  Files          90       90           
  Lines       23548    23554    +6     
  Branches     4391     4391           
=======================================
+ Hits        21143    21149    +6     
  Misses       1662     1662           
  Partials      743      743           

☔ 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.

Copy link
Contributor

@trexfeathers trexfeathers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iris/docs/src/conf.py

Lines 201 to 211 in 8fa0cdb

# sphinx.ext.autodoc configuration --------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#confval-autodoc_default_options
autodoc_default_options = {
"members": True,
"member-order": "alphabetical",
"undoc-members": True,
"private-members": False,
"special-members": False,
"inherited-members": True,
"show-inheritance": True,
}

-    "inherited-members": True
+    # Enums are most valuable when documented as concisely as possible.
+    "inherited-members": "Enum,IntEnum,ReprEnum,StrEnum",

https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#directive-option-autoclass-inherited-members

@trexfeathers trexfeathers self-assigned this Feb 28, 2025
@trexfeathers trexfeathers merged commit ed45606 into SciTools:main Feb 28, 2025
21 checks passed
ukmo-ccbunney added a commit to ukmo-ccbunney/iris that referenced this pull request Feb 28, 2025
* upstream/main:
  Faster dimension lookup for derived coordinates (SciTools#6337)
  Unpin dask 2 (SciTools#6342)
  added classification enums to qp (SciTools#6346)
  Add castable check for valid_range, valid_min, valid_max. (SciTools#6343)
  Pin Sphinx below 8.2 (SciTools#6344)
  Add a text feature to quickplot (SciTools#6333)
@scitools-ci scitools-ci bot removed this from 🚴 Peloton Mar 29, 2025
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.

2 participants