Galen Seilis
09/28/2023, 7:35 PMcatalog.yml
and the file in the file path exists b/c I ran the pipeline.
scatter_fte_vs_volume:
type: matplotlib.MatplotlibWriter
filepath: data/08_reporting/scatter_fte_vs_volume.png
save_args:
format: png
dpi: 300
When I try to load the image in a Jupyter notebook using the catalog using catalog.datasets.scatter_fte_vs_volume.load()
I get what is probably a hexadecimal number representing the file in some way. Is there a clean Kedro way to load these sorts of images using the catalog, or should I write an explicit plt.imread
to the png
file containing the plot?Erwin
09/28/2023, 7:40 PMGalen Seilis
09/28/2023, 7:41 PMErwin
09/28/2023, 7:46 PMGalen Seilis
09/28/2023, 7:48 PMNok Lam Chan
09/28/2023, 9:15 PMGalen Seilis
09/28/2023, 9:25 PMNok Lam Chan
09/29/2023, 10:16 AMdef _save(
self, data: Union[plt.figure, List[plt.figure], Dict[str, plt.figure]]
)
so should the _load
method return a plt.figure
? Feel free to open an issue to discuss this and better if you want to patch this with a PRMatplotlibWriter
but not Dataset.
kedro-datasets: Rename MatplotlibWriter to MatplotlibDatasetJuan Luis
09/29/2023, 1:55 PMMatplotlibDataset
to save/load figures , rather than the raw PNG filespickle
the figure, at least