Skip to content

Commit

Permalink
pytables api update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniele Paganelli committed Nov 9, 2016
1 parent 8677e3a commit fa2f5cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion misura/client/acquisition/acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ def post_file(self, filename):
"""Slot called when a misura file is opened for post-analysis."""
# TODO: migrate to the new SharedFile interface
filename = str(filename)
f = tables.openFile(filename, 'r')
f = tables.open_file(filename, 'r')
uid = str(f.root.summary.attrs.uid)
f.close()
r = self.post_uid(uid)
Expand Down
6 changes: 3 additions & 3 deletions misura/client/misura3/tests/test_m3import.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Convert(unittest.TestCase):
"""Verify conversion from Misura3 to Misura4 files. Windows-only!"""
def check_logging(self, op):
"""Check length and content of log reference"""
t = tables.openFile(op, mode='r')
t = tables.open_file(op, mode='r')
log = t.root.log[:]
t.close()
self.assertGreater(len(log), 4)
Expand Down Expand Up @@ -117,8 +117,8 @@ def test_0_data(self):
converter.get_outpath('00001S', force=True, keep_img=True)
op = converter.convert(max_num_images = 10)
self.assertTrue(op, 'Conversion Failed')
t = tables.openFile(op, mode='r')
n = filenode.openNode(t.root.conf)
t = tables.open_file(op, mode='r')
n = filenode.open_node(t.root.conf)
tree = pickle.loads(n.read())
measure = tree['hsm']['measure']['self']
self.assertEqual(measure['nSamples']['current'], 1)
Expand Down

0 comments on commit fa2f5cb

Please sign in to comment.