fathominfo / delphy-web

Other
5 stars 0 forks source link

bug fix: allow restart of a run on maple files #21

Closed mark-fathom closed 2 weeks ago

mark-fathom commented 2 weeks ago

When the user stops a run and either edits advanced parameters or sets a new sampling rate, we need to restart the run. This was broken for files in the new Maple format, including the default demo. This update fixes that.

fixes issue #15

Note that upon hitting pause, the delphy engine continues to iterate until the next sample is taken. Editing parameters (either advanced parameters or the steps per sample) during this time will raise an error. For that reason, we add a new state to the play button to indicate it is updating, and disable the parameters until the sample is taken.

There are several tests that should work.

Test 1:

Test 2:

Test 3:

Test 4: