You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a bug when the user specifies a simulation run function (e.g. stop_when_fields_decayed) and iPython is in the current python environment. The issue is related to the Jupyter notebook progress bar update #1078.
Traceback (most recent call last):
File "test_converge.py", line 51, in <module>
sim.run(until=mp.stop_when_fields_decayed(50, mp.Ez, mp.Vector3(), 1e-6))
File "/$$meep_python_filepath$$/simulation.py", line 2249, in run
self._run_until(until, step_funcs)
File "/$$meep_python_filepath$$/simulation.py", line 1498, in _run_until
self.progress.value = t0 + stop_time
UnboundLocalError: local variable 't0' referenced before assignment
As the error indicates, t0 is not properly defined:
There's a bug when the user specifies a simulation run function (e.g.
stop_when_fields_decayed
) and iPython is in the current python environment. The issue is related to the Jupyter notebook progress bar update #1078.Here's a simple test script:
Which throws the following error:
As the error indicates,
t0
is not properly defined:meep/python/simulation.py
Lines 1497 to 1499 in 5e48aa2
Travis probably didn't catch this since iPython isn't part of the yaml file build instructions.
The text was updated successfully, but these errors were encountered: