Skip to content

Commit

Permalink
see migrating from PyTables 2 to 3, installable by anaconda. There ar…
Browse files Browse the repository at this point in the history
…e changes in openFile and getNodes
  • Loading branch information
alexlib committed Mar 24, 2018
1 parent ab2c8a2 commit 5cf008c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flowtracks/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,8 +807,8 @@ def trajectories_table(fname, first=None, last=None):
Returns:
trajects - a list of Trajectory objects, each trimmed to the frame range.
"""
outfile = tables.openFile(fname, mode='r')
table = outfile.getNode('/particles')
outfile = tables.open_file(fname, mode='r')
table = outfile.get_node('/particles')

query_string = ('(trajid == trid)')
if first is not None:
Expand Down

0 comments on commit 5cf008c

Please sign in to comment.