nens / threedi-api-qgis-client

3Di Models & Simulations plugin
https://plugins.lizard.net/
Other
2 stars 0 forks source link

Simulation wizard: users cannot enable using saved states #461

Closed leendertvanwolfswinkel closed 1 year ago

leendertvanwolfswinkel commented 1 year ago

User:

"I ran a simulation in which I write a saved state (https://api.3di.live/v3/simulations/125425/events/). This also seems to have been successfully written (see URL).

Now, however, I want to start a new simulation with that saved state, but I cannot click this at initial conditions, because this option is grayed out, see screenshot."

Simulation ID: 125425 Schematisation "sgravendeel" (id 6678) Revision 25 (id 47897) Organisation: Nelen & Schuurmans Consultancy

Related issue: #357

image

leendertvanwolfswinkel commented 1 year ago

The events of the simulation that the simulation template refers to contains savedstates and initial_savedstate. The savedstates are the states that have been saved during this simulation. We do not need them here. The initial_savedstate is the saved state that was used to initialize the model at the start of this simulation. We do need that one.

We also need the list of saved states available for the threedimodel that is used in the simulation template.

To do's:

leendertvanwolfswinkel commented 1 year ago

@ldebek Tested, please merge :)