Skip to content

Commit

Permalink
Speed up validating validating annotations with user fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Mar 7, 2023
1 parent 97381ec commit 0b12e6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
- Allow ICC correction to specify intent ([#1066](../../pull/1066))
- Make tile sources pickleable ([#1071](../../pull/1071))
- Extract scale information from more bioformats files ([#1074](../../pull/1074))
- Speed up validating validating annotations with user fields ([#1078](../../pull/1078))


### Bug Fixes
- The cache could reuse a class inappropriately ([#1070](../../pull/1070))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,8 @@ def _similarElementStructure(self, a, b, parentKey=None): # noqa
if k == 'id':
if not isinstance(b[k], str) or not self.idRegex.match(b[k]):
return False
elif parentKey == 'user':
continue
elif parentKey != 'label' or k != 'value':
if not self._similarElementStructure(a[k], b[k], k):
return False
Expand Down

0 comments on commit 0b12e6e

Please sign in to comment.