Skip to content

Commit 6799f02

Browse files
Fix for py310 (iterparse doesn't close before 313)
1 parent 625f785 commit 6799f02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ome_types_widget/widget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def update(self, ome: OME | str | None | dict) -> None:
120120
return
121121
try:
122122
if ome.endswith(".xml"):
123-
_ome = OME.from_xml(ome)
123+
_ome = OME.from_xml(Path(ome).read_bytes())
124124
elif ome.lower().endswith((".tif", ".tiff")):
125125
_ome = OME.from_tiff(ome)
126126
elif ome.lower().endswith(".nd2"):

0 commit comments

Comments
 (0)