Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify _create_mip() #438

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Simplify _create_mip() #438

wants to merge 1 commit into from

Conversation

dstansby
Copy link
Contributor

This improves the implementation of _create_mip() by:

  • Removing the axes return. This isn't needed, because axes is never modified within the function. This simplifies the return type.
  • Add an AxesType alias that can be used across writer.py to prevent having to redefine the type in lots of function signatures
  • Add a docstring to _create_mip()

Copy link

codecov bot commented Feb 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.45%. Comparing base (f7096b0) to head (8fccb2a).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #438   +/-   ##
=======================================
  Coverage   85.45%   85.45%           
=======================================
  Files          13       13           
  Lines        1540     1540           
=======================================
  Hits         1316     1316           
  Misses        224      224           

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

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.

1 participant