diff --git a/ichor_core/ichor/core/files/points_directory.py b/ichor_core/ichor/core/files/points_directory.py index 7fb786e3..f38ad3a8 100644 --- a/ichor_core/ichor/core/files/points_directory.py +++ b/ichor_core/ichor/core/files/points_directory.py @@ -103,7 +103,7 @@ def _parse(self) -> None: # wrap the new directory as a PointDirectory instance and add to self # sort by the names of the directories (by the numbers in their name) # since the system name is always the same - self = self.sort(key=lambda x: x.path.name) + self.sort(key=lambda x: x.path.name) @property def raw_data(self) -> dict: diff --git a/ichor_core/ichor/core/files/points_directory_parent.py b/ichor_core/ichor/core/files/points_directory_parent.py index 35a7de58..620a1655 100644 --- a/ichor_core/ichor/core/files/points_directory_parent.py +++ b/ichor_core/ichor/core/files/points_directory_parent.py @@ -43,7 +43,7 @@ def _parse(self): # wrap the new directory as a PointDirectory instance and add to self # sort by the names of the directories (by the numbers in their name) # since the system name is always the same - self = self.sort(key=lambda x: x.path.name) + self.sort(key=lambda x: x.path.name) @property def raw_data(self) -> dict: