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

C version of router compressor with bit field #80

Merged
merged 18 commits into from
Jun 3, 2020

Conversation

alan-stokes
Copy link
Contributor

added a default ordered dict and made the executable finder explode earlier.

@coveralls
Copy link

coveralls commented Apr 5, 2019

Pull Request Test Coverage Report for Build 761

  • 5 of 6 (83.33%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 91.515%

Changes Missing Coverage Covered Lines Changed/Added Lines %
spinn_utilities/default_ordered_dict.py 0 1 0.0%
Totals Coverage Status
Change from base Build 748: 0.01%
Covered Lines: 2060
Relevant Lines: 2251

💛 - Coveralls

Copy link
Member

@dkfellows dkfellows left a comment

Choose a reason for hiding this comment

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

The testing is well broken and this branch might need to have master merged to it too.

ef.get_executable_path("abc.aplx")
return False
except Exception:
return True
Copy link
Member

Choose a reason for hiding this comment

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

This is not how you assert that an exception happened!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

ef.get_executable_path("abc.aplx")
return False
except Exception:
return True
Copy link
Member

Choose a reason for hiding this comment

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

This is not how you assert that an exception happened!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

p = pbclass(2, None)
with pytest.raises(Exception):
Copy link
Member

Choose a reason for hiding this comment

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

This is (was) how you assert that an exception is thrown.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

reflected

@dkfellows
Copy link
Member

The early exploding executable finder is reasonable. I look forward to approving this PR once the testing is meaningful.

@dkfellows
Copy link
Member

(Default ordered dicts have gone in via separate PR, #81)

Copy link
Member

@Christian-B Christian-B left a comment

Choose a reason for hiding this comment

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

pending the changes Donal has requests ok by me.

Note this version of DefaultOrderedDict is python2 style only and will fail in python3.8

@alan-stokes
Copy link
Contributor Author

fixed ready for someone to merge

@alan-stokes alan-stokes requested a review from dkfellows May 9, 2019 09:35
Copy link
Member

@Christian-B Christian-B left a comment

Choose a reason for hiding this comment

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

DefaultOrderedDict already in master.
my version has the import fix for the collections.abc crap!

executable_finder.py should raise something better than generic exception.
Then test can check for the specific exception and not just pop

@dkfellows dkfellows added this to the 5.1.0 milestone Aug 12, 2019
@dkfellows dkfellows modified the milestones: 5.1.0, 6.0.0 Nov 22, 2019
@alan-stokes alan-stokes merged commit 950c1f7 into master Jun 3, 2020
@alan-stokes alan-stokes deleted the c_version_of_router_compressor_with_bit_field branch January 29, 2021 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants