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

Add BuildingBlock.get_num_placers() #377

Merged
merged 3 commits into from
Jul 29, 2021
Merged

Conversation

lukasturcani
Copy link
Owner

@lukasturcani lukasturcani commented Jul 29, 2021

Related Issues: #376

Requested Reviewers: @andrewtarzia

A new method, BuildingBlock.get_num_placers() has been added. This
is necessary because sometimes the number of placer atoms is necessary,
for example, by unaligning vertices, which needs to check the number of
placer atoms, in order to determine if the unaligning vertex should be
used. Previously all the placer ids would have to be iterated though
with BuildingBlock.get_placer_ids(), which is both ugly and less
performant.

Related Issues: #376

A new method, `BuildingBlock.get_num_placers` has been added. This
is necessary because sometimes the number of placer atoms is necessary,
for example, by unaliging vertices, which needs to check the number of
placer atoms, in order to determine if the unaliging vertex should be
used. Previously all the placer ids would have to be iterated though
with `BuildingBlock.get_placer_ids()`, which is both ugly and less
performant.
@lukasturcani lukasturcani changed the title Add BuildingBlock.get_num_placers Add BuildingBlock.get_num_placers() Jul 29, 2021
Copy link
Collaborator

@andrewtarzia andrewtarzia left a comment

Choose a reason for hiding this comment

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

Perfect

@lukasturcani lukasturcani merged commit f3a8d18 into master Jul 29, 2021
@lukasturcani lukasturcani deleted the lukas/add-num-placer-ids branch July 29, 2021 13:13
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.

None yet

2 participants