From fd702d0b38ddb58efbd9c1f361498f9bb7b9cab9 Mon Sep 17 00:00:00 2001 From: Sarath Date: Thu, 24 Oct 2024 14:24:38 +0200 Subject: [PATCH] update bug with filepath --- atomrdf/graph.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/atomrdf/graph.py b/atomrdf/graph.py index e47741f..4ef2600 100644 --- a/atomrdf/graph.py +++ b/atomrdf/graph.py @@ -916,6 +916,8 @@ def archive(self, package_name, format="turtle", compress=True, add_simulations= # now go through each sample, and copy the file, at the same time fix the paths for sample in self.sample_ids: filepath = self.value(URIRef(f"{sample}_Position"), CMSO.hasPath).toPython() + #filepath has to fixed with the correct prefix as needed + filepath = os.path.join(self.structure_store, os.path.basename(filepath)) shutil.copy(filepath, structure_store) # now we have to remove the old path, and fix new