Skip to content

Commit 02037ad

Browse files
shazj99Zhengju Sha
andauthored
Get from_poscar_path only when from_poscar is true (#537)
Change-Id: I17774bee345634e4e72bd783e8112eefaaf9f0d3 Co-authored-by: Zhengju Sha <[email protected]>
1 parent 9dbac8d commit 02037ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpgen/data/gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ def out_dir_name(jdata) :
8080
from_poscar = False
8181
if 'from_poscar' in jdata :
8282
from_poscar = jdata['from_poscar']
83-
from_poscar_path = jdata['from_poscar_path']
8483

8584
if from_poscar:
85+
from_poscar_path = jdata['from_poscar_path']
8686
poscar_name = os.path.basename(from_poscar_path)
8787
cell_str = "%02d" % (super_cell[0])
8888
for ii in range(1,len(super_cell)) :

0 commit comments

Comments
 (0)