Skip to content

Commit

Permalink
Materializer test fix on Windows (#3238)
Browse files Browse the repository at this point in the history
* fixing the windows bug

* formatting

* remove the test

* adding the test back in
  • Loading branch information
bcdurak authored Dec 3, 2024
1 parent 94f3419 commit 3812ca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zenml/materializers/built_in_materializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def save_visualizations(self, data: Any) -> Dict[str, "VisualizationType"]:
# doesn't work for non-serializable types as they
# are saved as list of lists in different files
if _is_serializable(data):
return {self.data_path: VisualizationType.JSON}
return {self.data_path.replace("\\", "/"): VisualizationType.JSON}
return {}

def extract_metadata(self, data: Any) -> Dict[str, "MetadataType"]:
Expand Down

0 comments on commit 3812ca5

Please sign in to comment.