Skip to content

Commit

Permalink
store calc_path
Browse files Browse the repository at this point in the history
  • Loading branch information
maurov committed Jul 31, 2024
1 parent ba49716 commit a1f7934
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion larch/xrd/struct2xas.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,13 @@ def __init__(
else:
self.parent_path = parent_path
self.folders = structure_folders()
self.calc_path = None
self.njob = 0
self.jobs = []
self.tmpl_fdmnes = None
self.tmpl_feff = None
self.tmpl_sbatch = None
logger.info(
logger.debug(
f"Frames: {self.nframes}, Absorbing sites: {self.nabs_sites}. (Indexes for frames and abs_sites start at 0)"
)

Expand Down Expand Up @@ -856,6 +857,7 @@ def make_input_fdmnes(
)
job.path = calc_path
self.outdir = os.path.join(parent_path, calc_path)
self.calc_path = calc_path

if template is None:
template = os.path.join(
Expand Down Expand Up @@ -1096,6 +1098,7 @@ def make_input_feff(
)
job.path = calc_path
self.outdir = os.path.join(parent_path, calc_path)
self.calc_path = calc_path

if template is None:
template = os.path.join(
Expand Down

0 comments on commit a1f7934

Please sign in to comment.