Skip to content

Commit

Permalink
Merge pull request #121 from QCoDeS/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
jenshnielsen authored Nov 26, 2024
2 parents 7f3aba5 + 49a84b7 commit 1ed3f7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
args: ['--fix=no']
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: 'v0.7.4'
rev: 'v0.8.0'
hooks:
- id: ruff
types_or: [python, pyi, jupyter, toml]
Expand Down
9 changes: 6 additions & 3 deletions src/qcodes_loop/loops.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,9 +838,12 @@ def _run_loop(self, first_delay=0, action_indices=(),

for i, value in enumerate(self.sweep_values):
if self.progress_interval is not None:
tprint('loop %s: %d/%d (%.1f [s])' % (
self.sweep_values.name, i, imax, time.time() - t0),
dt=self.progress_interval, tag='outerloop')
elapsed_time = time.time() - t0
tprint(
f"loop {self.sweep_values.name}: {i}/{imax} ({elapsed_time:.1f} [s])",
dt=self.progress_interval,
tag="outerloop",
)
if i:
tprint(
f"Estimated finish time: {time.asctime(time.localtime(t0 + ((time.time() - t0) * imax / i)))}",
Expand Down

0 comments on commit 1ed3f7b

Please sign in to comment.