Skip to content

Issue 1362 int types#1393

Merged
orbeckst merged 3 commits intodevelopfrom
issue-1362-int_types
Jun 14, 2017
Merged

Issue 1362 int types#1393
orbeckst merged 3 commits intodevelopfrom
issue-1362-int_types

Conversation

@richardjgowers
Copy link
Member

@richardjgowers richardjgowers commented Jun 12, 2017

Fixes (partially) #1362
Supercedes #1391

Changes made in this Pull Request:

PR Checklist

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

@richardjgowers
Copy link
Member Author

@rathann if you want you can add your name to AUTHORS to get some credit for your work

@richardjgowers
Copy link
Member Author

Oh, and don't squash this so we keep both authors

Copy link
Member

@kain88-de kain88-de left a comment

Choose a reason for hiding this comment

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

LGTM besides one small comment

"""32 bit compat tests

Tests for making sure that integer arrays used for indexing
use `np.intp`
Copy link
Member

Choose a reason for hiding this comment

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

maybe add here that np.intp is a platform independent type for indexing in numpy.

@richardjgowers richardjgowers added this to the 0.16.x milestone Jun 12, 2017
@orbeckst
Copy link
Member

@kain88-de (#1393 (comment)) maybe you or @richardjgowers (or I) can add @rathann to the authors? He cannot push to this branch and would need a PR against this PR...

@rathann can you please provide the information for packages/AUTHORS (namely, your full name if you want to be listed with it, otherwise any handle that you'd like to use) as a comment on this PR so that one of us can quickly add you?

rathann and others added 3 commits June 13, 2017 14:31
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
- Added tests for 32 bit index support
- added @rathann to AUTHORS
@orbeckst
Copy link
Member

@rathann can you please provide the information for packages/AUTHORS (namely, your full name if you want to be listed with it, otherwise any handle that you'd like to use) as a comment on this PR so that one of us can quickly add you?

I found your name in the submitter email and I am adding you to AUTHORS. Welcome as a MDAnalysis contributor (you'll also get a GitHub invite).

@orbeckst orbeckst force-pushed the issue-1362-int_types branch from 829f33b to eed7761 Compare June 13, 2017 21:39
@orbeckst
Copy link
Member

I rebased against develop and added @rathann to AUTHORS.

@rathann
Copy link
Contributor

rathann commented Jun 13, 2017

Thank you!

@orbeckst orbeckst merged commit 6e6aa9d into develop Jun 14, 2017
@orbeckst orbeckst deleted the issue-1362-int_types branch June 14, 2017 00:03
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants