From b609fd13bf71188a8d7bbe5319a53f8c5be52198 Mon Sep 17 00:00:00 2001 From: Jeremy Leung Date: Wed, 13 Dec 2023 11:15:25 -0500 Subject: [PATCH] Fix tables import error in h5io --- src/westpa/core/h5io.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/westpa/core/h5io.py b/src/westpa/core/h5io.py index c4e08ada..a88cd1e0 100644 --- a/src/westpa/core/h5io.py +++ b/src/westpa/core/h5io.py @@ -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 @@ -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