Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
593d18e
Added support for parsing TMDM from turbomole
oliver-s-lee Jun 24, 2022
8f02562
Added test for tubomole etmagdips
oliver-s-lee Jun 24, 2022
cca15f5
Clarified comment re. Turbomole TMDM units
oliver-s-lee Jun 24, 2022
b524458
Update changelog and bump version to v1.7.2
langner Jun 28, 2022
8eea1bc
Updated the unit conversion algorithm for Turbomole etmagdips
oliver-s-lee Jul 1, 2022
3903756
NWChem: copy over newest data inputs and outputs before running 7.0
berquist Jun 4, 2022
6e7f72a
NWChem: rename all input files from .nw extension to .in
berquist Jun 4, 2022
4596794
NWChem: bump memory for certain DFT jobs
berquist Jun 4, 2022
2f1f61c
NWChem: update with real 7.0 outputs
berquist Jun 4, 2022
1817e75
NWChem: SCF energy not needed to parse ZPVE
berquist Jul 2, 2022
ee9d8a9
Added fine structure constant from scipy
oliver-s-lee Jul 4, 2022
546ecf7
Merge pull request #1139 from oliver-s-lee/turbo-etmagdips
berquist Jul 4, 2022
5a3cf8b
Fixes pointed out by Eric
langner Jul 4, 2022
e9743c2
Update THANKS file from 1.6.1 to 1.7.2
langner Jul 5, 2022
a270c80
Updated with current core devs
langner Jul 5, 2022
f148cda
Merge pull request #1140 from langner/release-1.7.2
berquist Jul 8, 2022
592a871
Merge pull request #1144 from cclib/langner-patch-2
shivupa Jul 8, 2022
c1f211e
Extract rotational constants from Gaussian log files
amarkpayne Jul 21, 2021
b22cdf5
Extract molecular mass from Gausian log files
amarkpayne Jul 21, 2021
ec8290f
add new reference test for rotational constants method
berquist Jul 4, 2022
04a201c
save rotational constants as "rotcons"
berquist Jul 4, 2022
ebff98a
change "rotcons" to "rotconsts"
berquist Jul 4, 2022
d6c204e
rotconsts: tests
berquist Jul 4, 2022
85c2047
Gaussian: use append_attribute for rotconsts
berquist Jul 4, 2022
c4b41b7
Gaussian: handle no whitespace after 'Rotational constants (GHZ):'
berquist Jul 8, 2022
9638d8d
Gaussian: rotconsts never seems to contain asterisks
berquist Jul 11, 2022
333cbc6
Merge pull request #1146 from cclib/release-1.7.2
berquist Jul 12, 2022
3d80280
fix for symmetry detection in Gaussian with Ghost atoms
felixplasser Aug 30, 2022
c8ddb06
Added support for 'optstate' in gaussian parser
oliver-s-lee Sep 1, 2022
2f548b4
Added skip for de-excitations in the gaussian parser so the state-of-…
oliver-s-lee Sep 1, 2022
b3ca2ab
Added test for optstate
oliver-s-lee Sep 1, 2022
7d5d4b7
Add regression test
shivupa Sep 4, 2022
76d5aef
Merge pull request #1150 from felixplasser/fix-gau
berquist Sep 4, 2022
1093102
Merge pull request #1151 from oliver-s-lee/optstate
langner Sep 6, 2022
7e69cce
Merge pull request #1054 from amarkpayne/gaussian_rotcons
amandadumi Sep 6, 2022
e5a156c
Tests: break apart atomcharges tests per type
berquist Jun 5, 2022
48eb536
Gaussian: remove pointless testatomnos in testSPun
berquist Jun 5, 2022
59cf855
Psi4: fix parsing non-Mulliken charges for older versions
berquist Sep 11, 2022
b1ff2de
Jaguar: atomcharges were not printed in old unit tests
berquist Sep 11, 2022
b95b90c
Psi4: be explicit about which types of atomcharges are parsed
berquist Sep 15, 2022
ee323b9
Add files to compare
shivupa Sep 20, 2022
59bc668
Merge pull request #1152 from berquist/test-atomcharges
shivupa Sep 20, 2022
f9a0cfa
Tests: graduate atomic charge tests for all SPun
berquist Jun 6, 2022
6ff9ae6
NWChem: fix atomcharges flipped sign
berquist Jun 6, 2022
0028876
Tests: fix regressions broken by testing atomic charges for all SPun
berquist Sep 24, 2022
9a09d71
Merge pull request #19 from shivupa/shiv_nwchem
berquist Sep 24, 2022
41bc609
Stop testing Python 3.6
berquist Oct 23, 2022
a165ff0
Merge pull request #1159 from berquist/remove-py36
langner Oct 23, 2022
0a4b4be
install pyquante2 with Python 3 fixes
berquist Oct 25, 2022
b610f67
Test new image
shivupa Oct 25, 2022
bbcc367
install iodata when using requirements.txt
berquist Oct 25, 2022
11ec306
Merge pull request #1161 from shivupa/py37testedge
berquist Oct 25, 2022
cc8958a
docs: update minimum recommended version of Python from 3.4 to 3.7
berquist Oct 23, 2022
40b0460
docs: update release version links from 1.7 to 1.7.2
berquist Oct 23, 2022
df990e5
docs: update system package manager installation instructions
berquist Oct 23, 2022
e378350
Remove INSTALL that duplicates docs/sphinx/how_to_install.rst
berquist Oct 23, 2022
a44ad21
documentation build fixes
berquist Oct 1, 2022
7a0be4f
Merge pull request #1156 from berquist/nwchem-atomcharges-sign
berquist Oct 25, 2022
25cc539
Test: remove Python 2 leftovers
berquist Sep 25, 2022
ba303c6
Merge pull request #1158 from berquist/1154-documentation
langner Nov 1, 2022
bd2894a
Fixed Gaussian sometimes incorrectly recognising that a calulation do…
oliver-s-lee Nov 3, 2022
fd82ffd
Removed old code
oliver-s-lee Nov 3, 2022
f4a7612
Added check for old Gaussian version
oliver-s-lee Nov 3, 2022
b84a956
Merge pull request #1157 from berquist/remove-python2
berquist Nov 5, 2022
49f42ec
Merge pull request #1162 from oliver-s-lee/gauss-mocoeff
berquist Nov 8, 2022
805befb
Possible infinite loop?
shivupa Nov 15, 2022
d361e61
Restructure loop
shivupa Nov 30, 2022
cf5a344
add test decorator
shivupa Nov 30, 2022
8f2a40d
Skip problematic test for version
shivupa Nov 30, 2022
e29cc47
Use pytest skip
shivupa Dec 11, 2022
d68c626
Forgotten import
shivupa Dec 11, 2022
bd0066b
Merge pull request #1165 from shivupa/possible_inf_loop
amandadumi Dec 14, 2022
49b0cd6
Merge pull request #1160 from berquist/python-version-docs
berquist Dec 18, 2022
73b0769
Fix CI and increase Python version usage (#1175)
berquist Jan 19, 2023
544347c
Added basis set parsing for ORCA
oliver-s-lee Jan 6, 2023
0c97a57
Added metadata method for HF and DFT for ORCA
oliver-s-lee Jan 6, 2023
95d016f
Added metadata CCSD method for ORCA
oliver-s-lee Jan 6, 2023
02033b8
Merge pull request #1133 from berquist/1131-nwchem-7
berquist Jan 20, 2023
49c1473
Fixed another bug parsing mocoefficients with alpha/beta orbitals and…
oliver-s-lee Jan 5, 2023
c7c5536
Changed style of comparison line
oliver-s-lee Jan 11, 2023
0a25537
Find-and-replaced all instaces of inputfile.next() to next(inputfile)
oliver-s-lee Jan 12, 2023
04da33f
fileinput is now wrapped in a FileWrapper object
oliver-s-lee Jan 12, 2023
ac27de9
Merge pull request #1173 from oliver-s-lee/next-fix
berquist Jan 30, 2023
0b5f8b7
Merge pull request #1169 from oliver-s-lee/gauss-mocoeff
berquist Jan 30, 2023
ec3aee6
ORCA: test for basis set presence in metadata
berquist Jan 30, 2023
63bda1f
ORCA: older versions don't print basis sets used
berquist Jan 31, 2023
d96e9b3
Merge pull request #1170 from oliver-s-lee/orca-metadata
berquist Jan 31, 2023
f29e4cb
Added excited state symmetry to etsyms param for Orca TD-DFT (previou…
oliver-s-lee Nov 15, 2022
1f99535
Fixed ordering of parsed ORCA excited states
oliver-s-lee Nov 16, 2022
9718827
Fixed not normalising etsysms with gaussian
oliver-s-lee Nov 16, 2022
1ea8731
Added generic test for etsyms
oliver-s-lee Nov 16, 2022
78c363a
Added ORCA specific etsyms test
oliver-s-lee Nov 16, 2022
0f43bc7
Added Turbomole specific etsyms test
oliver-s-lee Nov 16, 2022
c20cb00
Improved behaviour of Orca parser when encountering missing multiplic…
oliver-s-lee Jan 20, 2023
e2fda70
Added parsing of Orca wall time and estimation of CPU time
oliver-s-lee Nov 16, 2022
b039c29
Added parsing of Turbomole wall and CPU times
oliver-s-lee Nov 16, 2022
5fe2a8b
Added ability to estimate wall-times in Gaussian when they are unavai…
oliver-s-lee Nov 16, 2022
796616a
Split long line
oliver-s-lee Nov 16, 2022
46c6e7f
Increased the specificity of Gaussian MP checks as a partial workarou…
oliver-s-lee Nov 7, 2022
705dc12
Added regression test for Ethane MP5
oliver-s-lee Feb 8, 2023
4563175
Added fix for parsing MP2 energies from older Gaussian versions
oliver-s-lee Feb 8, 2023
a3da5a6
Relaxed test for etsyms in older Orca versions where symmetry is not …
oliver-s-lee Feb 8, 2023
4b8b8f5
Fixed parsing multiple exited states from optimised excited state cal…
oliver-s-lee Feb 8, 2023
4bd2085
Forgot to add new test to unittests
oliver-s-lee Feb 8, 2023
f0ca744
Fixed regression tests for wall_time
oliver-s-lee Feb 9, 2023
c37bf86
switch to our fork of pyquante2
berquist Feb 13, 2023
e9ef81a
pyquante2 fork now brings in Cython properly
berquist Feb 14, 2023
f74faac
Merge pull request #1176 from berquist/pyquante2
shivupa Feb 17, 2023
3a3615b
Merge pull request #1167 from oliver-s-lee/timings
berquist Feb 18, 2023
3033cdb
Replaced 'attr'.append() with append_attribute()
oliver-s-lee Feb 27, 2023
d70c103
Removed old, unused line
oliver-s-lee Feb 27, 2023
9b8c6cb
Broke up long line
oliver-s-lee Feb 27, 2023
6a91290
Improved re-ording of ORCA excited states
oliver-s-lee Dec 21, 2022
decd096
Removed comment
oliver-s-lee Feb 27, 2023
1ad9aee
Merge pull request #1166 from oliver-s-lee/orca-td-symm
berquist Feb 27, 2023
07e47f1
Changed parsing of excited states in ORCA so spectrum data no-longer …
oliver-s-lee Jan 11, 2023
5f5c574
Changed number of parsed excited states in Orca ROCIS to correct number
oliver-s-lee Jan 11, 2023
c2621a3
Updated logic for parsing absorption spectra from ORCA. SOC-related s…
oliver-s-lee Mar 2, 2023
ee64a26
Updated comment before spectrum parsing section
oliver-s-lee Mar 2, 2023
f0ab763
Gaussian: regressions don't need to go in old_unittests in order to run
berquist Mar 3, 2023
408be0f
Gaussian: fix G16 MP5 test
berquist Mar 3, 2023
ee790e7
Merge pull request #1164 from oliver-s-lee/gauss-mp-criteria
berquist Mar 3, 2023
fdd3cce
use 'is not None' instead of '!= None'
berquist Mar 4, 2023
35d72b0
Merge pull request #1178 from berquist/991-is-operator
langner Mar 8, 2023
eb699bb
Removed duplicate line in testing
oliver-s-lee Mar 8, 2023
7941c39
Split long line
oliver-s-lee Mar 8, 2023
d529405
Removed old code
oliver-s-lee Mar 8, 2023
93b1226
Split long line
oliver-s-lee Mar 8, 2023
3cea5df
Merge pull request #1172 from oliver-s-lee/orca-soc
berquist Mar 8, 2023
8ddd4be
resolving rotconst conflict
amandadumi Mar 12, 2023
ee74048
uniform treatment for rotational attributes
amandadumi Mar 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/cclib_pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
container: ['shivupa/cclib-ci:py36', 'shivupa/cclib-ci:py37', 'shivupa/cclib-ci:py38']
container:
- 'shivupa/cclib-ci:py37-edge'
- 'shivupa/cclib-ci:py38-edge'
- 'shivupa/cclib-ci:py39-edge'
- 'shivupa/cclib-ci:py310-edge'
container:
image: ${{ matrix.container }}
defaults:
Expand All @@ -24,7 +28,7 @@ jobs:
git config --global --add safe.directory /__w/cclib/cclib
- name: Prepare conda environment
run: |
echo "/env/bin" >> $GITHUB_PATH
echo "/opt/conda/envs/cclib/bin" >> $GITHUB_PATH
- name: Install cclib
run: |
python -m pip install .
Expand Down
4 changes: 1 addition & 3 deletions ANNOUNCE
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
On behalf of the cclib development team, we are pleased to announce the release of cclib 1.7.1, which is now available for download from https://cclib.github.io. This is a major update to version 1.6.4 that drops support for Python 2, and includes several small improvements.

WARNING: Support for Python 2 is dropped in this version.
On behalf of the cclib development team, we are pleased to announce the release of cclib 1.7.2, which is now available for download from https://cclib.github.io. This is a minor release with several small changes and improvements.

cclib is an open source library, written in Python, for parsing and interpreting the results of computational chemistry packages. It currently parses output files from 15 different programs: ADF, DALTON, Firefly, GAMESS (US), GAMESS-UK, Gaussian, Jaguar, Molpro, MOLCAS, MOPAC, NWChem, ORCA, Psi, QChem and Turbomole.

Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
Changes in cclib-1.7.2

Features:
* Support vibfreqs, vibirs, etenergies, etsyms, etoscs and etsecs for NWChem (BenoitDamota)
* Support temperature, pressure, enthalpy, entropy, zpve and electronic_thermal_energy for NWChem (BenoitDamota)
* Better metadata support for point group detection
* Updated code and test file versions to QChem 5.4 and ORCA 5.0

Bugfixes:
* Fixed parsing mpenergies for optimization for Turbomole (Oliver Lee)
* Fixed ccenergies for Gaussian (Oliver Lee)
* Fixed oscillator strengths for ORCA (Felix Plasser)
* Fixed units of parsed MO energies for fchk

Changes in cclib-1.7.1

Features:
Expand Down
73 changes: 0 additions & 73 deletions INSTALL

This file was deleted.

29 changes: 25 additions & 4 deletions THANKS
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
Core developers:
Eric J. Berquist
Minsik Cho
Amanda Dumi
Felipe S. Schneider
Geoff Hutchison
Karol M. Langner
Noel M. O'Boyle (retired)
Adam L. Tenderholt
Shiv Upadhyay

Developers that have added at least ~1K SLOC:
Sagar Gaur
Oliver Lee
Sanjeed Schamnad
Kunal Sharma
Casper Steinmann
Expand All @@ -17,31 +22,41 @@ Nuno Bandeira -- for bug reporting
Björn Baumeier -- for bug reporting
Dermot Brougham -- for bug reporting
bwang2453 -- for patches and new features
Javier Cerezo -- for patches
Avril Coghlan -- for designing the cclib logo
Ramon Crehuet -- for new features
Michael D'Addario -- for fixes
Björn Dahlgren -- for bug reporting
Yafei Dai -- for bug reporting
Abhishek Dey -- for bug reporting
Matt Ernst -- for patches
Clyde Fare -- for bug reporting and patches
Elliot Farrar -- for fixes
froessler -- for cleanups
Christos Garoufalis -- for bug reporting
Alessandro Genova - for patches and fixes
Sagar Gaur -- for patches
glideht -- for bug reporting
Edward Holland -- for patches
Karen Hemelsoet -- for bug reporting
Ian Hovell -- for bug reporting
Julien Idé -- for bug reporting
csjacky -- for bug reporting
Peter St. John -- for patches
Russell Johnson -- for providing CCCBDB (NIST) logfiles
Jerome Kieffer -- for bug reporting
kuriba -- for patches
Cyrille Lavigne - for documentation
Greg Magoon -- for bug reporting and patches
Alex Maldonado -- for fixes
Scott McKechnie -- for bug reporting
mkrompiec -- for contributing test files
mwykes -- for bug reporting and patches
Alexis Otero-Calvis -- for bug reporting
Daniele Padula -- for patches
Rob Paton -- for creating and running Jaguar test jobs
Martin Peeks -- for patches
Waylon Peng -- for fixes and improvements
Mark Perri -- for patches
Felix Plasser -- for fixes, patches and contributing files
Martin Rahm -- for bug reporting
Peter Reinholdt - for patches
Expand All @@ -50,18 +65,24 @@ Jaime Rodríguez-Guerra - for patches
Tamilmani S -- for bug reporting
Melchor Sanchez -- for bug reporting
Alex Schild -- for ideas and contributing test files
Felipe S. S. Schneider - for fixes
Jen Schwartz -- for helping create and run Jaguar 6.0 test jobs
shijunang -- for patches
Chikashi Shinagawa -- for patches
simonaxelrod -- for fixes
Tiago Silva -- for bug reporting
James E T Smith -- for fixes
Pavel Solntsev -- for bug reporting
srtlg -- for fixes
Ben Stein -- for patches
Maxim Stolyarchuk - for patches
Adam Swanson -- for bug reporting
Joe Townsend -- for contributing multiple GAMESS files to test on
Shiv Upadhyay -- for patches and fixes
Chengju Wang -- for bug reporting
Andrew Warden -- for bug reporting
Andrew Warden -- for bug reportint
Hubert Weißmann -- for fixes
Dustin Wheeler -- for fixes
Samuel Wilson -- for bug reporting
Dave Z. -- for patches
Fedor Zhuravlev -- for patches

Please let us know if we have omitted someone from this list.
4 changes: 2 additions & 2 deletions cclib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (c) 2021, the cclib development team
# Copyright (c) 2022, the cclib development team
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
Expand All @@ -25,7 +25,7 @@
as well as example methods that take parsed data as input.
"""

__version__ = "1.7.1"
__version__ = "1.7.2"

from cclib import parser
from cclib import progress
Expand Down
8 changes: 8 additions & 0 deletions cclib/method/ddec.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,11 @@ def _converge_phi(self, phiA, superscript, atomi):
candidates_phi = [phiA]
candidates_bigphi = [bigphiA]

it_max = 200
curr_it = 0

while phiA <= 0:
curr_it += 1
# Iterative algorithm until convergence
# Refer to S101 in doi: 10.1039/c6ra04656h
if superscript == 1:
Expand All @@ -736,6 +740,10 @@ def _converge_phi(self, phiA, superscript, atomi):
candidates_phi.append(phiA)
candidates_bigphi.append(bigphiA)

if curr_it == it_max:
self.logger.info("Hit iteration max")
break

return candidates_phi, candidates_bigphi

def _parabolic_fit(self, pseudodensity, superscript, atomi):
Expand Down
28 changes: 14 additions & 14 deletions cclib/parser/adfparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def extract(self, inputfile, line):
# this with the previous block, if possible.
if line[:6] == "Create":
while line[:5] != "title" and "NO TITLE" not in line:
line = inputfile.next()
line = next(inputfile)

if line[1:10] == "Symmetry:":
info = line.split()
Expand Down Expand Up @@ -322,17 +322,17 @@ def extract(self, inputfile, line):

self.skip_line(inputfile, 'blank')

line = inputfile.next()
line = next(inputfile)
while line.strip():

colline = line
assert colline.split()[0] == "column"
columns = [int(i) for i in colline.split()[1:]]

rowline = inputfile.next()
rowline = next(inputfile)
assert rowline.strip() == "row"

line = inputfile.next()
line = next(inputfile)
while line.strip():

i = int(line.split()[0])
Expand All @@ -342,9 +342,9 @@ def extract(self, inputfile, line):
overlaps[k-1][i-1] = o
overlaps[i-1][k-1] = o

line = inputfile.next()
line = next(inputfile)

line = inputfile.next()
line = next(inputfile)

# Now all values should be parsed, and so no Nones remaining.
assert all([all([x is not None for x in ao]) for ao in overlaps])
Expand Down Expand Up @@ -954,23 +954,23 @@ def extract(self, inputfile, line):
# # There will be some text, followed by a line:
# # (power of) X Y Z R Alpha on Atom
# while not line[1:11] == "(power of)":
# line = inputfile.next()
# dashes = inputfile.next()
# blank = inputfile.next()
# line = inputfile.next()
# line = next(inputfile)
# dashes = next(inputfile)
# blank = next(inputfile)
# line = next(inputfile)
# # There will be two blank lines when there are no more atom types.
# while line.strip() != "":
# atoms = [int(i)-1 for i in line.split()[1:]]
# for n in range(len(atoms)):
# self.atombasis.append([])
# dashes = inputfile.next()
# line = inputfile.next()
# dashes = next(inputfile)
# line = next(inputfile)
# while line.strip() != "":
# indices = [int(i)-1 for i in line.split()[5:]]
# for i in range(len(indices)):
# self.atombasis[atoms[i]].append(indices[i])
# line = inputfile.next()
# line = inputfile.next()
# line = next(inputfile)
# line = next(inputfile)

if line[48:67] == "SFO MO coefficients":

Expand Down
6 changes: 3 additions & 3 deletions cclib/parser/daltonparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def extract(self, inputfile, line):

self.skip_lines(inputfile, ['d', 'b'])

line = inputfile.next()
line = next(inputfile)
self.symcounts = [int(c) for c in line.split(':')[1].split()]

self.symlabels = []
Expand All @@ -540,7 +540,7 @@ def extract(self, inputfile, line):

# If the number of orbitals for a symmetry is zero, the printout
# is different (see MP2 unittest logfile for an example).
line = inputfile.next()
line = next(inputfile)

if sc == 0:
assert "No orbitals in symmetry" in line
Expand All @@ -549,7 +549,7 @@ def extract(self, inputfile, line):
self.symlabels.append(line.split()[1])
self.skip_line(inputfile, 'blank')
for i in range(sc):
orbital = inputfile.next()
orbital = next(inputfile)

if "Starting in Wave Function Section (SIRIUS)" in line:
self.section = "SIRIUS"
Expand Down
5 changes: 3 additions & 2 deletions cclib/parser/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class ccData:
optstatus -- optimization status for each set of atomic coordinates (array[1])
polarizabilities -- (dipole) polarizabilities, static or dynamic (list of arrays[2])
pressure -- pressure used for Thermochemistry (float, atm)
rotconsts -- rotational constants (array[2], GHz)
scancoords -- geometries of each scan step (array[3], angstroms)
scanenergies -- energies of potential energy surface (list)
scannames -- names of variables scanned (list of strings)
Expand Down Expand Up @@ -166,8 +167,8 @@ class ccData:
"point_group": Attribute(str, 'symmetry point group', 'properties:rotational'),
"polarizabilities": Attribute(list, 'polarizabilities', 'N/A'),
"pressure": Attribute(float, 'pressure', 'properties'),
"roconst": Attribute(numpy.ndarray, 'rotational constants', 'properties:rotational'),
"rotemp": Attribute(numpy.ndarray, 'rotational temperatures', 'properties:rotational'),
"rotconsts": Attribute(numpy.ndarray, 'rotational constants', 'atoms:coords:rotconsts'),
"rottemp": Attribute(numpy.ndarray, 'rotational temperatures', 'properties:rotational'),
"s2_after_anni": Attribute(numpy.ndarray, 'S2 after annihilation', 'optimization'),
"s2_after_anni_fin": Attribute(float, 'S2 after annihilation', 'properties'),
"s2_before_anni": Attribute(numpy.ndarray, 'S2 before annihilation', 'optimization'),
Expand Down
4 changes: 2 additions & 2 deletions cclib/parser/gamessukparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,13 +721,13 @@ def extract(self, inputfile, line):
occupations = []

self.skip_line(inputfile, "blank")
line = inputfile.next()
line = next(inputfile)

while line.strip():
occupations += map(float, line.split())

self.skip_line(inputfile, "blank")
line = inputfile.next()
line = next(inputfile)

self.set_attribute('nooccnos', occupations)

Expand Down
Loading