Skip to content

Commit

Permalink
Fix tables import error in h5io
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyleung521 committed Dec 13, 2023
1 parent 56167ad commit b609fd1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/westpa/core/h5io.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import h5py
import numpy as np
import tables.exceptions
from numpy import index_exp

from mdtraj import Trajectory, join as join_traj
Expand Down Expand Up @@ -749,7 +748,7 @@ def scrub_data(self):
for node in ['log', 'restart', 'time', 'coordinates', 'pointer', 'cell_angles', 'cell_lengths']:
try:
self._remove_node('/', node, recursive=True)
except tables.exceptions.NoSuchNodeError:
except self.tables.exceptions.NoSuchNodeError:
pass
self._frame_index = 0
self.root._v_attrs.n_iter = 0
Expand Down

0 comments on commit b609fd1

Please sign in to comment.