Skip to content

Commit fac7cf6

Browse files
authored
add sleep before refresh (#45)
1 parent 4043aff commit fac7cf6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

swmr_tools/datasource.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ def read_frame(self, index, force_refresh=False):
289289
pos = self.get_pos(index, shape)
290290
except ValueError:
291291
# refresh dataset and try again
292+
sleep(1)
292293
refresh_dataset(ds)
293294

294295
shape = ds.shape

0 commit comments

Comments
 (0)