cyclops
cyclops copied to clipboard
Report export fails when there are no logged figures
Describe the bug
Currently, the ModelCardReport's export method fails if there are no logged figures in the datasets section.
To Reproduce
- Try calling export() without logging a plotly figure to the datasets section, but
log_datasetmethod is used.
Expected behavior
Without a logged figure, the other dataset information should still be rendered and the report should be exported.
Screenshots
Fails at cyclops/report/templates/model_report/macros.jinja:33
Version
- Latest - 0.2.9
Additional context
Add any other context about the problem here.