Skip to content

Commit c1a53ad

Browse files
committed
[format] Fix broken revmap lookup
The format.revmap method was always returning the 'name' it was checking the reversed map against and not only when it was actually in the keys of the reversed map.
1 parent 206cbba commit c1a53ad

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

odml/format.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ def revmap(self, name):
8282
else:
8383
for k, val in self._map.items():
8484
self._rev_map[val] = k
85-
return self._rev_map.get(name, name)
85+
86+
return self._rev_map.get(name)
8687

8788
def __iter__(self):
8889
""" Iterates each python property name """

0 commit comments

Comments
 (0)