Skip to content

Commit

Permalink
now that we are here, also corrected the path registry bug in the rdf…
Browse files Browse the repository at this point in the history
… tool
  • Loading branch information
Jgmedina95 committed Aug 8, 2024
1 parent fbdb63e commit 7e0a9c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mdagent/tools/base_tools/analysis_tools/rdf_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ def _run(self, **input):
Log_id=trajectory_id,
)
fig_id = self.path_registry.get_fileid(plot_name, type=FileType.FIGURE)

plt.savefig(f"{self.path_registry.ckpt_figures}/rdf_{trajectory_id}.png")
file_path = f"{self.path_registry.ckpt_figures}/rdf_{trajectory_id}.png"
plt.savefig(file_path)
self.path_registry.map_path(
fig_id,
plot_name,
file_path,
description=f"RDF plot for the trajectory file with id: {trajectory_id}",
)
plt.close()
Expand Down

0 comments on commit 7e0a9c9

Please sign in to comment.