JanaLasser / uni_SEIRX

MIT License
2 stars 0 forks source link

About the run_model(params) function #2

Open 517474174 opened 1 year ago

517474174 commented 1 year ago

Hello! I'm sorry to bother you, but when I was testing the code, I found that the transmissions returned by the "run_model(params)" function in the "data_creation_function" script are Empty DataFrame. I checked the code and found no reason. How should I adjust the code? Thank you for your contribution to the field of infectious diseases, and wish you a happy life!

JanaLasser commented 1 year ago

This could be the case if no transmissions occurred in the model run. Did you check if there are actually transmissions happening? It might help to run the model with the "verbosity" model parameter set to 2. This will produce text output of all transmissions that happen during the model run.

517474174 commented 1 year ago

Sorry! I tried to set "verbosity" to 2, and I got an empty data frame. I don't know how to correct it. Figure 1 shows the network generated by my test, and Figure 2 shows the result of my test of the "run_model" function. Thank you for your help.

---- Replied Message ---- | From | Jana @.> | | Date | 06/07/2023 00:33 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [JanaLasser/uni_SEIRX] About the run_model(params) function (Issue #2) |

This could be the case if no transmissions occurred in the model run. Did you check if there are actually transmissions happening? It might help to run the model with the "verbosity" model parameter set to 2. This will produce text output of all transmissions that happen during the model run.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

JanaLasser commented 1 year ago

can you check if your simulation actually produces any transmissions? With verbosity=2, it should produce a lot of text telling you about transmissions as the occur.