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 int type in asserts in TestDownshiftArrays #1410

Merged
merged 10 commits into from
Jun 19, 2017
Merged

fix int type in asserts in TestDownshiftArrays #1410

merged 10 commits into from
Jun 19, 2017

Conversation

rathann
Copy link
Contributor

@rathann rathann commented Jun 19, 2017

Partially fixes #1362 .

Changes made in this Pull Request:

  • fix int type in asserts in TestDownshiftArrays (missed in eed7761)

PR Checklist

  • Tests?
  • Docs?
  • CHANGELOG updated?
  • Issue raised/referenced?

Not sure what I broke when syncing my fork to upstream, but it's showing 10 commits instead of 1 now. :(

rathann and others added 10 commits June 9, 2017 11:45
This fixes ERRORs and FAILs in the testsuite on 32bit:

TypeError: Cannot cast array data from dtype('int64') to dtype('int32') according to the rule 'safe'

and

assert_(out[0].dtype == np.int64)
  File "/usr/lib/python2.7/site-packages/numpy/testing/utils.py", line 92, in assert_
    raise AssertionError(smsg)
AssertionError
Removed TestCase usage
- Added tests for 32 bit index support
- added @rathann to AUTHORS
Groups (AtomGroup, ResidueGroup, SegmentGroup) cannot be stored in sets
or used as dict key if they are not hashable. In python 3, the __hash__
method is not defined implicitly anymore when a class has a __eq__ method.

Fixes #1397
@richardjgowers richardjgowers merged commit 1f36502 into MDAnalysis:develop Jun 19, 2017
@orbeckst orbeckst mentioned this pull request Jun 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError/AssertionError test failures on i686 and armv7hl due to dtype being int32 instead of int64
3 participants