Pachka / mwss-App

RRShiny application to run stochastic epidemiological simulations for nosocomial spread in structured healthcare settings
GNU General Public License v3.0
0 stars 0 forks source link

0 value crashing the app #1

Open qleclerc opened 1 year ago

qleclerc commented 1 year ago

Si le "average duration of the whole screening process" dans l'intervention "Impelement a screening area..." est mis à 0, l'appli crash et se ferme automatiquement.

Résolution suggérée: ne pas mettre cette valeur en réactif, afficher une erreur pour prévenir l'utilisateur que la valeur de 0 n'est pas valide.

Pachka commented 1 year ago

idea to resolve: if 0 turn to 1 and add pop up window to alert: https://deanattali.com/blog/shinyalert-package/

test in cours

laura-didomenico commented 1 year ago

Same issue found in the subpage "epidemiological parameters", when we set the average duration of the time spent in each compartment, arrows allow to go down at zero and then the app crashes.

phenriot commented 1 year ago

Initialization : sick leave duration. App crashes when equal to 0. Find a way to constraint the lower bound or trigger a warning or automatically replace by 1.

phenriot commented 1 year ago

Emplacement des issues a modifier: ligne 1018 build_gdata

qleclerc commented 1 year ago

@Pachka can this issue be closed?

Pachka commented 1 year ago

We should keep it until the expert version is merged to recheck effect of all inputs to 0