Data-Science-Brigade / modelo-epidemiologico-sc

Bayesian epidemiological model, with a focus on the state of Santa Catarina and its micro and macroregions. https://arxiv.org/abs/2104.01133
MIT License
2 stars 1 forks source link

🐛 Allow single region runs + Some Bugfixes #27

Closed jonjoncardoso closed 3 years ago

jonjoncardoso commented 3 years ago

Changes

How to validate this PR

NataliaDelCoco commented 3 years ago

Realizei testes com run_model, run_regions, run_health_regions e run_state_and_one_region.R em modos DEBUG e DEVELOP. Em todos os casos, obtive o mesmo erro:

Error in exit("Allowed locations not implemented yet") : could not find function "exit"
Calls: run_model_with_opt
Execution halted
jonjoncardoso commented 3 years ago

Realizei testes com run_model, run_regions, run_health_regions e run_state_and_one_region.R em modos DEBUG e DEVELOP. Em todos os casos, obtive o mesmo erro:

Error in exit("Allowed locations not implemented yet") : could not find function "exit"
Calls: run_model_with_opt
Execution halted

Hmmmm, talvez eu tenha esquecido de mudar algo nos scripts. Checo amanhã primeira coisa pela manhã

jonjoncardoso commented 3 years ago

@NataliaDelCoco tenta rodar de novo, dessa vez com esse script novo dedicado a single-regionsm (commit https://github.com/Data-Science-Brigade/modelo-epidemiologico-sc/commit/3c859924fc5930edda788573b027d1a7359bb941) ?

Rscript run_single_region.R -m FULL -r "2021-06-07"
NataliaDelCoco commented 3 years ago

Agora funcionou direitinho!