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

Fix condition #948

Merged
merged 3 commits into from
Jun 20, 2022
Merged

Fix condition #948

merged 3 commits into from
Jun 20, 2022

Conversation

andrewgait
Copy link
Contributor

@andrewgait andrewgait commented Jun 20, 2022

Fixes #949 and send_buffer_times setter error.

Previous code was giving

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

but I think in our case we're just checking what type of array we have so that the times get set correctly.

Tested by SpiNNakerManchester/IntegrationTests#123

@andrewgait andrewgait requested a review from rowleya June 20, 2022 09:39
@andrewgait andrewgait added the bug There is a fault with the code label Jun 20, 2022
@andrewgait andrewgait added this to the 7.0.0 milestone Jun 20, 2022
Copy link
Member

@rowleya rowleya left a comment

Choose a reason for hiding this comment

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

This likely fixes the numpy case i.e. if send buffer times is a numpy array.

@rowleya rowleya merged commit 91b187f into master Jun 20, 2022
@rowleya rowleya deleted the send_buffer_times_fix branch June 20, 2022 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug There is a fault with the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

This should be a FormatAdapter
2 participants