Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package/MDAnalysis/core/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def __init__(self, *args):
ix, u = args

# indices for the objects I hold
self._ix = np.asarray(ix, dtype=np.int64)
self._ix = np.asarray(ix, dtype=np.intp)
self._u = u
self._cache = dict()

Expand Down
6 changes: 3 additions & 3 deletions package/MDAnalysis/core/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ def make_downshift_arrays(upshift, nparents):
counter += 1
# If parent is skipped, eg (0, 0, 2, 2, etc)
while counter != upshift[order[x:y][0]]:
downshift.append(np.array([], dtype=np.int))
downshift.append(np.array([], dtype=np.int64))
counter += 1
downshift.append(np.sort(np.array(order[x:y], copy=True, dtype=np.int)))
downshift.append(np.sort(np.array(order[x:y], copy=True, dtype=np.int64)))
# Add entries for childless parents at end of range
while counter < (nparents - 1):
downshift.append(np.array([], dtype=np.int))
downshift.append(np.array([], dtype=np.int64))
counter += 1
# Add None to end of array to force it to be of type Object
# Without this, a rectangular array gets squashed into a single array
Expand Down
3 changes: 2 additions & 1 deletion testsuite/MDAnalysisTests/analysis/test_psa.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ def test_symmetry(self):
for a given Hausdorff metric, h.'''
forward = self.h(self.path_1, self.path_2)
reverse = self.h(self.path_2, self.path_1)
self.assertEqual(forward, reverse)
# lower precision on 32bit
assert_almost_equal(forward, reverse, decimal=15)

def test_hausdorff_value(self):
'''Test that the undirected Hausdorff
Expand Down