@@ -30,11 +30,11 @@ def gaussian_normalizesym(label):
3030 ans = label .replace ("U" , "u" ).replace ("G" , "g" )
3131 return ans
3232
33+
3334def orca_normalizesym (label ):
34- """ORCA does not require normalizing symmetry labels."""
35- return label
35+ """ORCA does not require normalizing symmetry labels."""
36+ return label
3637
37-
3838
3939def qchem_parse_orbital_energies_and_symmetries (file_handler ):
4040 """Parse the 'Orbital Energies (a.u.)' block appearing after SCF converges,
@@ -209,14 +209,10 @@ def ORCA(file_handler, ccdata) -> Optional[dict]:
209209 uses_symmetry = ccdata .parser_state ["uses_symmetry" ]
210210 if line [0 :16 ] == "ORBITAL ENERGIES" :
211211 file_handler .skip_lines (["d" , "text" , "text" ], virtual = True )
212- #constructed_mooccnos = [[]]
213- #constructed_moenergies = [[]]
214212 constructed_mosyms = [[]]
215213 line = file_handler .virtual_next ()
216214 while len (line ) > 20 : # restricted calcs are terminated by ------
217215 info = line .split ()
218- #mooccno = int(float(info[1]))
219- #moenergy = float(info[2])
220216 mosym = "A"
221217 if uses_symmetry :
222218 mosym = orca_normalizesym (info [4 ].split ("-" )[1 ])
@@ -226,25 +222,18 @@ def ORCA(file_handler, ccdata) -> Optional[dict]:
226222 # handle beta orbitals for UHF
227223 if line [17 :35 ] == "SPIN DOWN ORBITALS" :
228224 file_handler .skip_lines (["text" ], virtual = True )
229- #constructed_mooccnos.append([])
230- #constructed_moenergies.append([])
231225 constructed_mosyms .append ([])
232226 line = file_handler .virtual_next ()
233227 while len (line ) > 20 : # actually terminated by ------
234228 info = line .split ()
235- #mooccno = int(float(info[1]))
236- #moenergy = float(info[2])
237229 mosym = "A"
238230 if uses_symmetry :
239231 mosym = orca_normalizesym (info [4 ].split ("-" )[1 ])
240- #constructed_mooccnos[1].append(mooccno)
241- #constructed_moenergies[1].append(moenergy)
242232 constructed_mosyms [1 ].append (mosym )
243233 line = file_handler .virtual_next ()
244234 return {mosyms .__name__ : constructed_mosyms }
245235 return None
246236
247-
248237 @staticmethod
249238 def parse (file_handler , program : str , ccdata ) -> Optional [dict ]:
250239 constructed_data = None
0 commit comments