Skip to content

Commit cc467c4

Browse files
authored
Merge pull request #1 from langner/ramon
Merge with master add add deleted test back
2 parents a52289c + 58df190 commit cc467c4

File tree

8 files changed

+41174
-9
lines changed

8 files changed

+41174
-9
lines changed

DALTON/DALTON-2015/dalton_atombasis.out

+762
Large diffs are not rendered by default.

DALTON/DALTON-2015/dalton_intgrl.out

+712
Large diffs are not rendered by default.

GAMESS/Firefly8.1/benzene_am1.log

+584
Large diffs are not rendered by default.

GAMESS/Firefly8.1/naphtalene_t_0.out

+20,542
Large diffs are not rendered by default.

GAMESS/Firefly8.1/naphtalene_t_0_SP.out

+12,587
Large diffs are not rendered by default.

ORCA/ORCA2.9/qmspeedtest_hf.out

+5,925
Large diffs are not rendered by default.

regression.py

+54-9
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,29 @@ def testADF_ADF2013_01_stopiter_MoOCl4_sp_adfout(logfile):
131131
# len(logfile.data.scfvalues[0]) == 11
132132
assert not hasattr(logfile.data, "scfvalues")
133133

134+
def testADF_ADF2016_fa2_adf_out(logfile):
135+
"""This logfile, without symmetry, should get atombasis parsed."""
136+
assert hasattr(logfile.data, "atombasis")
137+
assert [b for ab in logfile.data.atombasis for b in ab] == list(range(logfile.data.nbasis))
138+
134139
# DALTON #
135140

141+
def testDALTON_DALTON_2015_dalton_atombasis_out(logfile):
142+
"""This logfile didn't parse due to the absence of a line in the basis
143+
set section.
144+
"""
145+
assert hasattr(logfile.data, "nbasis")
146+
assert logfile.data.nbasis == 37
147+
assert hasattr(logfile.data, "atombasis")
148+
149+
def testDALTON_DALTON_2015_dalton_intgrl_out(logfile):
150+
"""This logfile didn't parse due to the absence of a line in the basis
151+
set section.
152+
"""
153+
assert hasattr(logfile.data, "nbasis")
154+
assert logfile.data.nbasis == 4
155+
assert hasattr(logfile.data, "atombasis")
156+
136157
def testDALTON_DALTON_2015_stopiter_dalton_dft_out(logfile):
137158
"""Check to ensure that an incomplete SCF is handled correctly."""
138159
assert len(logfile.data.scfvalues[0]) == 8
@@ -155,6 +176,18 @@ def testGAMESS_Firefly8_0_stopiter_firefly_out(logfile):
155176
"""Check to ensure that an incomplete SCF is handled correctly."""
156177
assert len(logfile.data.scfvalues[0]) == 6
157178

179+
def testGAMESS_Firefly8_1_benzene_am1_log(logfile):
180+
"""Molecular orbitals were not parsed (cclib/cclib#228)."""
181+
assert hasattr(logfile.data, 'mocoeffs')
182+
183+
def testGAMESS_Firefly8_1_naphtalene_t_0_out(logfile):
184+
"""Molecular orbitals were not parsed (cclib/cclib#228)."""
185+
assert hasattr(logfile.data, 'mocoeffs')
186+
187+
def testGAMESS_Firefly8_1_naphtalene_t_0_SP_out(logfile):
188+
"""Molecular orbitals were not parsed (cclib/cclib#228)."""
189+
assert hasattr(logfile.data, 'mocoeffs')
190+
158191
# GAMESS #
159192

160193
def testGAMESS_GAMESS_US2008_N2_UMP2_out(logfile):
@@ -453,16 +486,22 @@ def testMolpro_Molpro2008_ch2o_molpro_casscf_out(logfile):
453486
assert logfile.data.mocoeffs[0][-2][0] == 0.0
454487
assert logfile.data.mocoeffs[0][0][-2] == 0.0
455488

489+
assert isinstance(logfile.data.nocoeffs, numpy.ndarray)
490+
assert isinstance(logfile.data.nooccnos, numpy.ndarray)
491+
assert logfile.data.nocoeffs.shape == logfile.data.mocoeffs[0].shape
492+
assert len(logfile.data.nooccnos) == logfile.data.nmo
493+
assert logfile.data.nooccnos[27] == 1.95640
494+
456495
def testMolpro_Molpro2012_CHONHSH_HF_STO_3G_out(logfile):
457-
"""Formatting of the basis function is slightly different than expected."""
458-
assert len(logfile.data.gbasis) == 7
459-
assert len(logfile.data.gbasis[0]) == 3 # C
460-
assert len(logfile.data.gbasis[1]) == 3 # N
461-
assert len(logfile.data.gbasis[2]) == 3 # O
462-
assert len(logfile.data.gbasis[3]) == 5 # S
463-
assert len(logfile.data.gbasis[4]) == 1 # H
464-
assert len(logfile.data.gbasis[5]) == 1 # H
465-
assert len(logfile.data.gbasis[6]) == 1 # H
496+
"""Formatting of the basis function is slightly different than expected."""
497+
assert len(logfile.data.gbasis) == 7
498+
assert len(logfile.data.gbasis[0]) == 3 # C
499+
assert len(logfile.data.gbasis[1]) == 3 # N
500+
assert len(logfile.data.gbasis[2]) == 3 # O
501+
assert len(logfile.data.gbasis[3]) == 5 # S
502+
assert len(logfile.data.gbasis[4]) == 1 # H
503+
assert len(logfile.data.gbasis[5]) == 1 # H
504+
assert len(logfile.data.gbasis[6]) == 1 # H
466505

467506
def testMolpro_Molpro2012_dvb_gopt_unconverged_out(logfile):
468507
"""An unconverged geometry optimization to test for empty optdone (see #103 for details)."""
@@ -548,6 +587,12 @@ def testORCA_ORCA2_9_job_out(logfile):
548587
"""
549588
assert all([abs(sum(v)-1.0) < 0.0001 for k, v in logfile.data.atomspins.items()])
550589

590+
def testORCA_ORCA2_9_qmspeedtest_hf_out(logfile):
591+
"""Check precision of SCF energies (cclib/cclib#210)."""
592+
energy = logfile.data.scfenergies[-1]
593+
expected = -17542.5188694
594+
assert abs(energy - expected) < 10**-6
595+
551596
def testORCA_ORCA3_0_dvb_gopt_unconverged_out(logfile):
552597
"""An unconverged geometry optimization to test for empty optdone (see #103 for details)."""
553598
assert hasattr(logfile.data, 'optdone') and not logfile.data.optdone

regressionfiles.txt

+8
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,24 @@ ADF/ADF2013.01/stopiter_dvb_un_sp.adfout
3333
ADF/ADF2013.01/stopiter_dvb_un_sp_c.adfout
3434
ADF/ADF2013.01/stopiter_MoOCl4-sp.adfout
3535
ADF/ADF2014.01/dvb_gopt_b_fullscf.out
36+
ADF/ADF2016/fa2.adf.out
3637
DALTON/DALTON-2013/C_bigbasis.aug-cc-pCVQZ.out
3738
DALTON/DALTON-2013/b3lyp_energy_dvb_sp_nosym.out
3839
DALTON/DALTON-2013/dvb_sp_hf_nosym.out
3940
DALTON/DALTON-2013/sp_b3lyp_dvb.out
4041
DALTON/DALTON-2013/td_b3lyp_dvb.out
42+
DALTON/DALTON-2015/dalton_atombasis.out
43+
DALTON/DALTON-2015/dalton_intgrl.out
4144
DALTON/DALTON-2015/stopiter_dalton_dft.out
4245
DALTON/DALTON-2015/stopiter_dalton_hf.out
4346
GAMESS/Firefly7.1/firefly-FailStationary.out
4447
GAMESS/Firefly7.1/triazole_tddft_c1_b3lyp_631Gdp_sp.out
4548
GAMESS/Firefly8.0/dvb_gopt_a_unconverged.out
4649
GAMESS/Firefly8.0/h2o.log
4750
GAMESS/Firefly8.0/stopiter_firefly.out
51+
GAMESS/Firefly8.1/benzene_am1.log
52+
GAMESS/Firefly8.1/naphtalene_t_0.out
53+
GAMESS/Firefly8.1/naphtalene_t_0_SP.out
4854
GAMESS/GAMESS-US2003/bv6010sup1molecule_4.inp.cml_.log
4955
GAMESS/GAMESS-US2004/exam01.out
5056
GAMESS/GAMESS-US2004/ex.out
@@ -237,6 +243,7 @@ ORCA/ORCA2.8/dvb_td.out
237243
ORCA/ORCA2.9/job.out
238244
ORCA/ORCA2.9/PCB_1_122.out
239245
ORCA/ORCA2.9/prova.out
246+
ORCA/ORCA2.9/qmspeedtest_hf.out
240247
ORCA/ORCA3.0/benzene_td_singlets.out
241248
ORCA/ORCA3.0/CuI-MePY2-CH3CN_optxes.out
242249
ORCA/ORCA3.0/dvb_gopt_unconverged.out
@@ -267,6 +274,7 @@ QChem/QChem4.2/dvb_gopt_unconverged.out
267274
QChem/QChem4.2/dvb_sp_multipole_10.out
268275
QChem/QChem4.2/dvb_sp_omp.out
269276
QChem/QChem4.2/dvb_sp_unconverged.out
277+
QChem/QChem4.2/opt_ZZZZ_+1.000.out
270278
QChem/QChem4.2/print_frgm_false_opt.out
271279
QChem/QChem4.2/print_frgm_true_opt.out
272280
QChem/QChem4.2/print_frgm_false_sp.out

0 commit comments

Comments
 (0)