File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ def _parse_shielding(self):
398398 shield_idxs = []
399399 shield_atoms = []
400400 shields = []
401-
401+ collect_idx = False # changed
402402 for line in self .data ["out" ].split ("\n " ):
403403 if " SHIELDING" in line :
404404 shield_idxs = [int (x ) for x in line .split ()[2 :]]
Original file line number Diff line number Diff line change @@ -906,9 +906,12 @@ def finish(self):
906906 cosmo = False
907907 geomfiles = sorted ([x for x in outfiles if x .endswith (".xyz" )])
908908 outfiles = sorted ([x for x in outfiles if not x .endswith (".xyz" )])
909- if "cosmo.xyz" in geomfiles :
910- geomfiles = [i for i in geomfiles if i != "cosmo.xyz" ]
909+
910+ print ('FILES' , geomfiles ) #changed cosmo.xyz
911+ if os .path .join (self .temp_dir , "cosmo.xyz" ) in geomfiles : #changed cosmo.xyz
912+ geomfiles = [i for i in geomfiles if i != os .path .join (self .temp_dir , "cosmo.xyz" )]
911913 cosmo = True
914+ print ("COSMO" , cosmo ) #changed cosmo.xyz
912915
913916 # Enumerate geometry files
914917 result ["xyz" ] = OrderedDict ()
@@ -927,7 +930,7 @@ def finish(self):
927930
928931 # Parse cosmo.xyz
929932 if cosmo is True :
930- with open ("cosmo.xyz" , "r" ) as f :
933+ with open (os . path . join ( self . temp_dir , "cosmo.xyz" ) , "r" ) as f : #changed cosmo.xyz
931934 contents = f .read ()
932935 result ["cosmo" ] = contents
933936
You can’t perform that action at this time.
0 commit comments