From 2540bfbf8772ea4d50f80e868dcb07b3950dca59 Mon Sep 17 00:00:00 2001 From: linglp Date: Tue, 29 Aug 2023 15:13:07 -0400 Subject: [PATCH 1/2] add indentation --- schematic/store/synapse.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/schematic/store/synapse.py b/schematic/store/synapse.py index f66c417c0..7358f65c5 100644 --- a/schematic/store/synapse.py +++ b/schematic/store/synapse.py @@ -615,13 +615,13 @@ def fill_in_entity_id_filename(self, datasetId: str, manifest: pd.DataFrame) -> if dataset_files: new_files = self._get_file_entityIds(dataset_files=dataset_files, only_new_files=True, manifest=manifest) - # update manifest so that it contain new files - new_files = pd.DataFrame(new_files) - manifest = ( - pd.concat([manifest, new_files], sort=False) - .reset_index() - .drop("index", axis=1) - ) + # update manifest so that it contains new files + new_files = pd.DataFrame(new_files) + manifest = ( + pd.concat([manifest, new_files], sort=False) + .reset_index() + .drop("index", axis=1) + ) manifest = manifest.fillna("") return dataset_files, manifest From 64d407efc5c66a27630c53eb8209cc4548a4b756 Mon Sep 17 00:00:00 2001 From: linglp Date: Tue, 29 Aug 2023 15:13:53 -0400 Subject: [PATCH 2/2] edit comment --- schematic/store/synapse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schematic/store/synapse.py b/schematic/store/synapse.py index 7358f65c5..fac53b8f9 100644 --- a/schematic/store/synapse.py +++ b/schematic/store/synapse.py @@ -615,7 +615,7 @@ def fill_in_entity_id_filename(self, datasetId: str, manifest: pd.DataFrame) -> if dataset_files: new_files = self._get_file_entityIds(dataset_files=dataset_files, only_new_files=True, manifest=manifest) - # update manifest so that it contains new files + # update manifest so that it contains new dataset files new_files = pd.DataFrame(new_files) manifest = ( pd.concat([manifest, new_files], sort=False)