Priesemann-Group / covid19_inference

Bayesian python toolbox for inference and forecast of the spread of the Coronavirus
GNU General Public License v3.0
73 stars 70 forks source link

Windows user strftime bug #49

Open semohr opened 4 years ago

semohr commented 4 years ago

For windows users plotting functions do not work with default rcParams.

As one can see here Windows does not support %-d. Which we use in our default rcParameters.

We have to change that or create a workaround for windows users.

jdehning commented 4 years ago

What does the - in %-d do? I would simply remove it, if it is not important...

semohr commented 4 years ago

The - removes the leading 0 if present. %#d does the same for windows but all of that is very operating system depending. We can just replace it with %d.

Not a big problem at all and easy to fix I just found it quite interesting. And it took us quite some time to find this bug.