alsnhll / SEIR_COVID19

SEIR model for COVID-19 infection, including different clinical trajectories of infection
194 stars 105 forks source link

Error: `hmax' must be a non-negative value #1

Closed Deleetdk closed 4 years ago

Deleetdk commented 4 years ago

If the Initial # infected: slider is set tot 1000, then the Capacity tab produces this result.

Screenshot from 2020-03-16 20-30-54

Screenshot from 2020-03-16 20-30-58

Reading from 'COVID19 Parameters'
Range "'Hospital capacity'"
New names:
* `` -> ...6
Note: Using an external vector in selections is ambiguous.
ℹ Use `all_of(V)` instead of `V` to silence this message.
ℹ See <https://tidyselect.r-lib.org/reference/faq-external-vector.html>.
This message is displayed once per session.
Warning in max(abs(diff(times))) :
  no non-missing arguments to max; returning -Inf
Warning: Error in checkInput: `hmax' must be a non-negative value
  104: stop
  103: checkInput
  102: lsoda
  101: ode
  100: GetSpread_SEIR [/media/truecrypt1/Projects/SEIR_COVID19/COVID19seir/server.R#49]
   99: renderPlotly [/media/truecrypt1/Projects/SEIR_COVID19/COVID19seir/server.R#493]
   98: func
   95: func
   82: origRenderFunc
   81: output$plotCap
    1: runApp
alsnhll commented 4 years ago

Fixed - I think this was a problem with the ODE solver when the time to integrate for was zero. Thanks for pointing this out