Skip to content

Commit

Permalink
Merge pull request #206 from jadball/colfile_fixes
Browse files Browse the repository at this point in the history
Resurrect tests for columnfile.py, correct np.int
  • Loading branch information
jonwright authored Jan 24, 2024
2 parents cea535c + 1f52918 commit deb6644
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ImageD11/columnfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def removerows( self, column_name, values, tol = 0 ):
"""
col = self.getcolumn( column_name )
if tol <= 0: # integer comparisons
col = col.astype( np.int )
col = col.astype( int )
mskfun = lambda x, val, t: x == val
else: # floating point
mskfun = lambda x, val, t: np.abs( x - val ) < t
Expand Down
3 changes: 2 additions & 1 deletion test/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"test_sparse_image",
"test_cImageD11",
"gv_general.test_gv_general",
"testcolumnfile",
"test_columnfile",
"test_put_incr",
"testscale",
"test_ubito",
Expand All @@ -32,6 +32,7 @@
"test_compress_duplicates",
"eps_sig.test_eps",
"test_finite_strain",
"test_stress"
]

if "all" in sys.argv:
Expand Down
File renamed without changes.

0 comments on commit deb6644

Please sign in to comment.