From 6587413bd16352c1181a0544cb5b26c18c2f2bb4 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Tue, 28 Jan 2020 15:51:43 -0600 Subject: [PATCH] Some PEP8 fixes in photon.py --- openmc/data/photon.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/openmc/data/photon.py b/openmc/data/photon.py index a63dd4f263..32ed3010a4 100644 --- a/openmc/data/photon.py +++ b/openmc/data/photon.py @@ -22,9 +22,9 @@ from .function import Tabulated1D # Constants -MASS_ELECTRON_EV = 0.5109989461e6 # Electron mass energy -PLANCK_C = 1.2398419739062977e4 # Planck's constant times c in eV-Angstroms -FINE_STRUCTURE = 137.035999139 # Inverse fine structure constant +MASS_ELECTRON_EV = 0.5109989461e6 # Electron mass energy +PLANCK_C = 1.2398419739062977e4 # Planck's constant times c in eV-Angstroms +FINE_STRUCTURE = 137.035999139 # Inverse fine structure constant CM_PER_ANGSTROM = 1.0e-8 # classical electron radius in cm R0 = CM_PER_ANGSTROM * PLANCK_C / (2.0 * pi * FINE_STRUCTURE * MASS_ELECTRON_EV) @@ -33,7 +33,7 @@ R0 = CM_PER_ANGSTROM * PLANCK_C / (2.0 * pi * FINE_STRUCTURE * MASS_ELECTRON_EV) _SUBSHELLS = [None, 'K', 'L1', 'L2', 'L3', 'M1', 'M2', 'M3', 'M4', 'M5', 'N1', 'N2', 'N3', 'N4', 'N5', 'N6', 'N7', 'O1', 'O2', 'O3', 'O4', 'O5', 'O6', 'O7', 'O8', 'O9', 'P1', 'P2', 'P3', 'P4', - 'P5', 'P6', 'P7', 'P8', 'P9', 'P10', 'P11','Q1', 'Q2', 'Q3'] + 'P5', 'P6', 'P7', 'P8', 'P9', 'P10', 'P11', 'Q1', 'Q2', 'Q3'] _REACTION_NAME = { 501: ('Total photon interaction', 'total'), @@ -871,10 +871,10 @@ class IncidentPhoton(EqualityMixin): for j in range(k): # Cubic spline interpolation in log energy and linear DCS - cs = CubicSpline(logx, y[:,j]) + cs = CubicSpline(logx, y[:, j]) # Get scaled DCS values (millibarns) on new energy grid - dcs[:,j] = cs(log_energy) + dcs[:, j] = cs(log_energy) _BREMSSTRAHLUNG[i]['dcs'] = dcs