-
Notifications
You must be signed in to change notification settings - Fork 3
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
Remove 18 #248
Remove 18 #248
Conversation
.. note:: | ||
The processor_ids and link_ids parameters are only optional if a | ||
spinnaker_route is provided. If a spinnaker_route is provided | ||
the processor_ids and link_ids parameters are ignored. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A potential way to avoid this "multi-constructor" is instead to have a static method which is something like "def from_procs_and_links(processor_ids, link_ids)" which does the conversion and just calls the spinnaker_route constructor. That then makes it harder to do something inconsistent...
def __init__(self, processor_ids: Union[int, Iterable[int], None], | ||
link_ids: Union[int, Iterable[int], None], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't quite remember if we prefer Optional rather than Union[..., None], though if the comment below is taken into account, this would of course go away...
replaced by #250 |
These PRs remove some of the hard coded 18 Cores
MulticastRoutingEntry, FixedRouteEntry and MulticastRoutingTableByPartitionEntry now have a shared BaseMulticastRoutingEntry.
MAX_LINKS_PER_ROUTER = 6 moved to constants
Must be done at the same time as:
SpiNNakerManchester/SpiNNMan#395
SpiNNakerManchester/PACMAN#550
SpiNNakerManchester/SpiNNFrontEndCommon#1169
tested by:
SpiNNakerManchester/IntegrationTests#260