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

Reuse points between shapes #839

Merged
merged 4 commits into from
May 10, 2021
Merged

Reuse points between shapes #839

merged 4 commits into from
May 10, 2021

Conversation

RemDelaporteMathurin
Copy link

@RemDelaporteMathurin RemDelaporteMathurin commented May 10, 2021

Proposed changes

This fixes #751

Types of changes

What types of changes does your code introduce to the Paramak?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Code refactoring
  • Documentation Update (if none of the other choices apply)
  • New tests

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • Pep8 applied
  • Unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

@codecov
Copy link

codecov bot commented May 10, 2021

Codecov Report

Merging #839 (fc0b0a9) into develop (79c2a04) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #839   +/-   ##
========================================
  Coverage    94.67%   94.67%           
========================================
  Files           75       75           
  Lines         5390     5393    +3     
========================================
+ Hits          5103     5106    +3     
  Misses         287      287           
Impacted Files Coverage Δ
paramak/shape.py 97.86% <100.00%> (+<0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 79c2a04...fc0b0a9. Read the comment docs.

@shimwell
Copy link
Collaborator

Thanks Remi, this avoids modifying the input points so that they can be reused. This covers one of the problems with points which is really helpful. Happy to merge this if there are not objections.

@shimwell shimwell merged commit 361a7d0 into develop May 10, 2021
@shimwell shimwell deleted the reuse_points_between_shapes branch May 10, 2021 12:01
@RemDelaporteMathurin RemDelaporteMathurin linked an issue May 28, 2021 that may be closed by this pull request
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.

points are not reusable between Shapes
2 participants