Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
janssenhenning committed Jan 24, 2022
1 parent b2d5d2c commit 0e78e0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions masci_tools/io/parsers/tabulator/tabulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def _remove_collisions(self,
keypaths: list[tuple[tuple[str, ...], str]],
index: int = -2) -> list[tuple[tuple[str, ...], str]]:
"""
Disambigouate keypaths so that there are no key collisions. If there is a collision
Disambiguate keypaths so that there are no key collisions. If there is a collision
the key one level up is taken and combined with apoint
:param keypaths: Paths to investigate
Expand All @@ -182,7 +182,7 @@ def _remove_collisions(self,
continue

if abs(index) > len(paths[0]):
raise ValueError(f'Cannot disambigouate paths {paths}')
raise ValueError(f'Cannot disambiguate paths {paths}')

#Go up levels until they can be distinguished
unique_paths = self._remove_collisions([(path[:index], f'{path[index]}.{name}') for path in paths],
Expand Down

0 comments on commit 0e78e0d

Please sign in to comment.