Open gidili opened 5 years ago
I propose that optional params be showed in SciDash, and pre-filled with their defaults (https://github.com/scidash/neuronunit/blob/94f32028740ed9280fce725482a56bbc731c3773/neuronunit/tests/base.py#L51). If there is no default, they are left blank. The user should not be able to finish registering or editing the test until there are no blank fields.
I think the solution here is to make those parameters required in the UI (stuff like dt, tmax), right now they are optional because neuronunit is communicating to the UI they should be optional (we changed this as part of improving validation as before they were required on the UI).
But defensively we also should handle cases where these parameters are left blank and communicate back useful errors messages to the user while right now in this edge case (that we did not foresee ever happening during testing) the tests are remaining locked with no explanation to the user.