Skip to content

Conversation

JackB-Ansys
Copy link
Collaborator

image

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jan 30, 2025
Copy link

codecov bot commented Jan 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.06%. Comparing base (c66b154) to head (6c47066).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #465      +/-   ##
==========================================
+ Coverage   88.01%   88.06%   +0.04%     
==========================================
  Files          24       24              
  Lines        3689     3703      +14     
==========================================
+ Hits         3247     3261      +14     
  Misses        442      442              
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JackB-Ansys
Copy link
Collaborator Author

I think this example is ready to be merged now

Copy link
Contributor

@james-packer james-packer left a comment

Choose a reason for hiding this comment

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

Just a few minor queries.


from copy import deepcopy

# sphinx_gallery_thumbnail_path = 'images/adaptive_templates/IPM_rounded.png'
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think the sphinx image path should be in the middle of the imports, can it be moved above or below please?

# :width: 600pt


def corners_to_round(region_to_round, other_regions):
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a comment about what this does. I think it's finding the points in region_to_round that aren't in other_regions, but it would be useful to explain this.

# Keep pocket properties but replace pocket entities with magnet entities
if type(magnets) == list:
magnets_utd = deepcopy(magnets[0])
magnets_utd.unite(magnets[1])
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is assuming that if magnets is a list, it contains exactly 2 items. Is this always true? A comment to explain the logic here might help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants