Closed stefsmeets closed 2 months ago
For testing the plots, in the absence of a full dataset, I would like to follow-up with a sample output dataset to work with, e.g. from proteus start --config inputs/default.toml
. The data can be hosted in a separate repo, and we can use the matplotlib.testing module to help regression test the outputs.
Hi @lsoucasse @nichollsh , this PR is ready. could you have a look at this PR and let me know what you think?
I changed all the plotting codes so that they have a consistent entry point (plot_xxx_entry
), so that they take a Proteus
object. There are no functional changes. All functions can still be invoked directly.
Other than that, most of the changes are of this kind:
if __name__ == '__main__'
block to entry.
This PR refactors the plots and exposes them through the CLI. The plots can also be invoked directly.
Example:
which is the equivalent of:
List all plots:
Closes #143
Todo
Tested:
Not tested (data not available, needs vulcan run):
Not available through CLI yet: