Skip to content

Commit ebff98a

Browse files
committed
change "rotcons" to "rotconsts"
see #256 (comment)
1 parent 04a201c commit ebff98a

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

cclib/parser/data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class ccData:
7575
optstatus -- optimization status for each set of atomic coordinates (array[1])
7676
polarizabilities -- (dipole) polarizabilities, static or dynamic (list of arrays[2])
7777
pressure -- pressure used for Thermochemistry (float, atm)
78-
rotcons -- rotational constants (array[2], GHz)
78+
rotconsts -- rotational constants (array[2], GHz)
7979
scancoords -- geometries of each scan step (array[3], angstroms)
8080
scanenergies -- energies of potential energy surface (list)
8181
scannames -- names of variables scanned (list of strings)
@@ -158,7 +158,7 @@ class ccData:
158158
"optstatus": Attribute(numpy.ndarray, 'status', 'optimization'),
159159
"polarizabilities": Attribute(list, 'polarizabilities', 'N/A'),
160160
"pressure": Attribute(float, 'pressure', 'properties'),
161-
"rotcons": Attribute(numpy.ndarray, 'rotational constants', 'atoms:coords:rotconsts'),
161+
"rotconsts": Attribute(numpy.ndarray, 'rotational constants', 'atoms:coords:rotconsts'),
162162
"scancoords": Attribute(numpy.ndarray, 'step geometry', 'optimization:scan'),
163163
"scanenergies": Attribute(list, 'PES energies', 'optimization:scan'),
164164
"scannames": Attribute(list, 'variable names', 'optimization:scan'),

cclib/parser/gaussianparser.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2261,15 +2261,15 @@ def extract_charges_spins(line,prop):
22612261
# Rotational constants (GHZ): ************ 12.73690 12.73690
22622262
# Note: rotational constant will be converted to wavenumber units (1/cm) to standardize across parsers
22632263
if line[:27] == ' Rotational constants (GHZ)':
2264-
if not hasattr(self, "rotcons"):
2265-
self.rotcons = []
2264+
if not hasattr(self, "rotconsts"):
2265+
self.rotconsts = []
22662266
splits = line.split()
22672267

22682268
# Determine if the molecule is linear and only has two constants
22692269
if '*' in line: # linear molecule
2270-
self.rotcons.append([0.0]+[float(splits[i]) for i in (-2, -1)])
2270+
self.rotconsts.append([0.0]+[float(splits[i]) for i in (-2, -1)])
22712271
else:
2272-
self.rotcons.append([float(splits[i]) for i in (-3, -2, -1)])
2272+
self.rotconsts.append([float(splits[i]) for i in (-3, -2, -1)])
22732273

22742274
# Extract Molecular Mass (in amu)
22752275
# Example:

cclib/parser/mopacparser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,14 @@ def extract(self, inputfile, line):
172172
if line[0:40] == ' ROTATIONAL CONSTANTS IN CM(-1)':
173173
blankline = inputfile.next()
174174
rotinfo = inputfile.next()
175-
if not hasattr(self, "rotcons"):
176-
self.rotcons = []
175+
if not hasattr(self, "rotconsts"):
176+
self.rotconsts = []
177177
broken = rotinfo.split()
178178
# leave the rotational constants in Hz
179179
a = float(broken[2])
180180
b = float(broken[5])
181181
c = float(broken[8])
182-
self.rotcons.append([a, b, c])
182+
self.rotconsts.append([a, b, c])
183183

184184
# Start of the IR/Raman frequency section.
185185
# Example:

0 commit comments

Comments
 (0)