Skip to content

Commit

Permalink
added pbar when making new h5 file
Browse files Browse the repository at this point in the history
  • Loading branch information
darianyang committed Feb 28, 2024
1 parent 0c41189 commit af81e05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wedap/h5_pdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,8 @@ def make_new_h5(self):
Saves out a new h5 file of name self.H5save_out with the current
X/Y/Zname data into auxdata of h5 file with name of X/Y/Zsave_name.
"""
for iter in range(self.first_iter, self.last_iter + 1):
for iter in tqdm(range(self.first_iter, self.last_iter + 1, self.step_iter),
desc="Building new h5:", disable=self.no_pbar)
if self.Xsave_name:
self._get_data_array(self.Xname, self.Xindex, iter, self.H5save_out, self.Xsave_name)
if self.Ysave_name:
Expand Down

0 comments on commit af81e05

Please sign in to comment.