ubermag / discretisedfield

Python package for the analysis and visualisation of finite-difference fields.
http://ubermag.github.io
BSD 3-Clause "New" or "Revised" License
18 stars 13 forks source link

Rename `mesh.points` -> `mesh.cells` #508

Closed swapneelap closed 11 months ago

github-actions[bot] commented 11 months ago

PR Analysis

How to use

To invoke the PR-Agent, add a comment using one of the following commands: /review [-i]: Request a review of your Pull Request. For an incremental review, which only considers changes since the last review, include the '-i' option. /describe: Modify the PR title and description based on the contents of the PR. /improve [--extended]: Suggest improvements to the code in the PR. Extended mode employs several calls, and provides a more thorough feedback. /ask \<QUESTION>: Pose a question about the PR. /update_changelog: Update the changelog based on the PR's contents.

To edit any configuration parameter from configuration.toml, add --config_path=new_value For example: /review --pr_reviewer.extra_instructions="focus on the file: ..." To list the possible configuration parameters, use the /config command.

codecov-commenter commented 11 months ago

Codecov Report

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

Comparison is base (a828938) 93.49% compared to head (a194301) 93.49%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #508 +/- ## ======================================= Coverage 93.49% 93.49% ======================================= Files 28 28 Lines 3027 3027 ======================================= Hits 2830 2830 Misses 197 197 ```

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

swapneelap commented 11 months ago

Should we add a deprecation warning for the 'points' attribute to guide users towards the new 'cells' attribute by re-adding the points property that returns the cells attribute and raises a DeprecationWarning as the bot says? @samjrholt @lang-m

samjrholt commented 11 months ago

Should we add a deprecation warning for the 'points' attribute to guide users towards the new 'cells' attribute by re-adding the points property that returns the cells attribute and raises a DeprecationWarning as the bot says? @samjrholt @lang-m

I would be in favour of using DeprecationWarning in general as it makes it easier for the users to transition.

lang-m commented 11 months ago

I would re-add points to make the transition easier. What we could consider however is raising an AttributeError with a meaningful message that points to cells (instead of just the warning). That is what we did for most breaking changes in the previous release. This is of course quite harsh but forces quick adoption of the new interface. Thoughts (also @fangohr)?

lang-m commented 11 months ago

/review -i

github-actions[bot] commented 11 months ago

Incremental PR Review

How to use

Instructions

To invoke the PR-Agent, add a comment using one of the following commands: /review: Request a review of your Pull Request. /describe: Update the PR title and description based on the contents of the PR. /improve [--extended]: Suggest code improvements. Extended mode provides a higher quality feedback. /ask \<QUESTION>: Ask a question about the PR. /update_changelog: Update the changelog based on the PR's contents. /add_docs: Generate docstring for new components introduced in the PR. /generate_labels: Generate labels for the PR based on the PR's contents. see the tools guide for more details.

To edit any configuration parameter from the configuration.toml, add --config_path=new_value. For example: /review --pr_reviewer.extra_instructions="focus on the file: ..." To list the possible configuration parameters, add a /config comment.