Skip to content

Commit

Permalink
test saved np.array can be loaded properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
willgraf committed Jan 28, 2021
1 parent 363f121 commit c73cdeb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deepcell_tracking/utils_test.py
Expand Up @@ -125,6 +125,12 @@ def test_save_trks(self):
utils.save_trks(filename, lineage, X, y)
assert os.path.isfile(filename)

# test saved tracks can be loaded
loaded = utils.load_trks(filename)
assert loaded['lineages'] == lineage
np.testing.assert_array_equal(X, loaded['X'])
np.testing.assert_array_equal(y, loaded['y'])

finally:
try:
shutil.rmtree(tempdir) # delete directory
Expand Down

0 comments on commit c73cdeb

Please sign in to comment.