diff --git a/pepys_import/core/store/data_store.py b/pepys_import/core/store/data_store.py index 7ef3dc335..d0265e3bb 100644 --- a/pepys_import/core/store/data_store.py +++ b/pepys_import/core/store/data_store.py @@ -1940,6 +1940,10 @@ def split_platform(self, platform_id, set_percentage=None) -> bool: percent_per_iteration = 100.0 / len(datafile_ids) objects = self._get_comments_and_sensors_of_platform(platform) + + i = 0 + percent_per_iteration = 100.0 / len(datafile_ids) + for key, values in datafile_ids.items(): time, measurement_objects = values["time"], values["objects"] new_platform = self.add_to_platforms(