InstituteforDiseaseModeling / covasim

COVID-19 Agent-based Simulator (Covasim): a model for exploring coronavirus dynamics and interventions
https://covasim.org
MIT License
254 stars 223 forks source link

Hanging comma on `plots` value in defaults.get_default_plots() causes `sim.plot(to_plot='seir')` to fail #383

Closed rbelew closed 2 years ago

rbelew commented 2 years ago

Describe the bug

Hanging comma here

makes plots become a tuple, and plotting.handle_to_plot() gets confused

To reproduce

For model issues:

import covasim as cv
sim = cv.Sim(pars={}) # Configure the simulation
sim.run() # Steps required to produce the behavior

sim.plot(to_plot='seir')

Expected behavior

Screenshots or outputs

Produces graph attached with comma removed

Platform (please complete the following information):

Additional context ARG_2-seir

cliffckerr commented 2 years ago

Fixed -- thanks @rbelew !