Skip to content

Commit

Permalink
Do not keep the h5py to top level (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit Coste authored May 28, 2020
1 parent 81da222 commit e7b6e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_6_writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import numpy as np
from numpy.testing import assert_array_equal, assert_equal, assert_raises
from nose.tools import ok_
import h5py
from pathlib2 import Path

from morphio.mut import Morphology
Expand Down Expand Up @@ -75,6 +74,7 @@ def test_write_basic():
assert_array_equal(ImmutMorphology(os.path.join(tmp_folder, "test_write.swc")).points, expected)
assert_array_equal(ImmutMorphology(os.path.join(tmp_folder, "test_write.h5")).points, expected)

import h5py
with h5py.File(h5_out, 'r') as h5_file:
ok_('/perimeters' not in h5_file.keys())

Expand Down

0 comments on commit e7b6e2c

Please sign in to comment.