Skip to content

Commit

Permalink
Fix MetadataOnly parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuhlich committed Jul 22, 2020
1 parent 959da6e commit 5dee304
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/ome_types/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ def element_decode(self, data, xsd_element, xsd_type=None, level=0): # type: ig
result["value"] = result.pop("$")
# FIXME: Work out a better way to deal with concrete extensions of
# abstract types.
if xsd_element.local_name == "Instrument":
if xsd_element.local_name == "MetadataOnly":
result = True
elif xsd_element.local_name == "Instrument":
light_sources = []
for _type in (
"laser",
Expand Down
2 changes: 0 additions & 2 deletions testing/test_autogen.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ def model(tmp_path_factory, request):

SHOULD_FAIL = {
"commentannotation",
"filter",
"hcs",
"mapannotation",
"metadata-only",
"spim",
"tagannotation",
"timestampannotation",
Expand Down

0 comments on commit 5dee304

Please sign in to comment.