Skip to content

Commit

Permalink
update bug with filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
srmnitc committed Oct 24, 2024
1 parent d4dab6c commit fd702d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions atomrdf/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd702d0

Please sign in to comment.