Spaces:
Runtime error
Runtime error
harishaseebat92
commited on
Commit
·
e2e1a8c
1
Parent(s):
dbdff89
EM SVE Log progress percentage
Browse files
utils/delta_impulse_generator.py
CHANGED
|
@@ -530,9 +530,12 @@ def run_sve(field, x, y, T, snapshot_time, nx, initial_state, impulse_pos, progr
|
|
| 530 |
else:
|
| 531 |
series_single.append(Field_value)
|
| 532 |
|
|
|
|
|
|
|
| 533 |
if progress_callback:
|
| 534 |
-
progress_callback(
|
|
|
|
| 535 |
|
| 536 |
-
|
| 537 |
|
| 538 |
return series_by_point if multi else series_single
|
|
|
|
| 530 |
else:
|
| 531 |
series_single.append(Field_value)
|
| 532 |
|
| 533 |
+
# Calculate and report progress
|
| 534 |
+
pct = (idx + 1) / total_frames * 100
|
| 535 |
if progress_callback:
|
| 536 |
+
progress_callback(pct)
|
| 537 |
+
_log(f"SVE Progress: {int(pct)}% (frame {idx + 1}/{total_frames})")
|
| 538 |
|
| 539 |
+
_log("Statevector Estimator simulation completed.")
|
| 540 |
|
| 541 |
return series_by_point if multi else series_single
|