Skip to content

Commit b4e7196

Browse files
Update to_sigma.py (#17)
1 parent 392cee4 commit b4e7196

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

profiles/to_sigma.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ def split_profiles(self, sigmavals, num_profiles):
497497
"""
498498

499499
if num_profiles == 1:
500-
sigma_nhb = [(s,a) for s,a in zip(sigmavals, df['area / A^2'])]
500+
sigma_nhb = [(s,a) for s,a in zip(sigmavals, self.df['area / A^2'])]
501501
sigma_OH = None
502502
sigma_OT = None
503503
elif num_profiles == 3:
@@ -547,6 +547,7 @@ def get_outputs(self):
547547
# will be evaluated, -0.025 to 0.025, in increments of 0.001
548548
bin_width = 0.001
549549
sigmas = np.arange(-0.025, 0.025+0.0001, bin_width) # [e/A^2]
550+
meta = self.get_meta()
550551

551552
if self.num_profiles == 1:
552553
psigmaA = weightbin_sigmas(self.sigma_nhb, sigmas)
@@ -569,8 +570,6 @@ def get_outputs(self):
569570
psigmaA_nhb = psigmaA_nhb + psigmaA_hb*(1-P_hb)
570571

571572
dispersion_flag = 'NHB'
572-
573-
meta = self.get_meta()
574573

575574
# Determine dispersion flag for the molecule
576575
if self.is_water:

0 commit comments

Comments
 (0)