Skip to content

Commit

Permalink
path thing
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Oct 17, 2023
1 parent 8cbaf32 commit 33382fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aiida_sssp_workflow/cli/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
"""CLI to inspect the results of the workflow"""
import json
from pathlib import Path

import click
import matplotlib.pyplot as plt
Expand Down Expand Up @@ -388,7 +389,8 @@ def inspect(node, output):
fontsize=10,
)
fig.subplots_adjust(top=0.92)
fig.savefig(f"{output}_convergence.pdf", bbox_inches="tight")
fpath = Path.cwd() / f"{output}_convergence.pdf"
fig.savefig(fpath.name, bbox_inches="tight")


if __name__ == "__main__":
Expand Down

0 comments on commit 33382fc

Please sign in to comment.