Skip to content

Commit 8156658

Browse files
committed
appease linter
1 parent 0c9aefa commit 8156658

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/.pylintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ good-names=i,
351351
dE_max,
352352
dE_dt,
353353
dE,
354+
dE_correction,
354355
_
355356

356357
# Good variable names regexes, separated by a comma. If names match any regex,
@@ -494,7 +495,7 @@ max-bool-expr=5
494495
max-branches=12
495496

496497
# Maximum number of locals for function / method body.
497-
max-locals=30
498+
max-locals=40
498499

499500
# Maximum number of parents for a class (see R0901).
500501
max-parents=7

code/pah_spec.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,15 @@ def generate_basis_spectra(
272272
temp_arr = np.linspace(0, 5e3, 10000) * u.K
273273
energy_arr = calc_pah_energy(grain_radius, temp_arr)
274274

275+
# Get the PAH fundmanetal mode energies (in order of increasing energy)
276+
nc = _calc_nc(grain_radius)
277+
nh = _calc_nh(nc)
278+
nm_cc_op = nc - 2 # total number of C-C out-of-plane modes, should match definitions in calc_pah_energies
279+
nm_cc_ip = 2 * (nc - 2) # total number of C-C in-plane modes
280+
_, pah_energy_modes = _calc_pah_energy_modes(
281+
temp_arr=temp_arr, nc=nc, nh=nh, nm_cc_ip=nm_cc_ip, nm_cc_op=nm_cc_op, return_modes=True
282+
)
283+
275284
basis_dict = {}
276285

277286
for lambda_abs in photon_wavelengths:
@@ -754,8 +763,8 @@ def _calc_pah_energy_modes(temp_arr, nc, nh, nm_cc_ip, nm_cc_op, return_modes=Fa
754763

755764
if return_modes:
756765
return energy_arr, emode_arr
757-
else:
758-
return energy_arr
766+
767+
return energy_arr
759768

760769

761770
def _calc_pah_cooling(lambda_abs, grain_radius, wavelength_arr, c_abs_arr, temp_arr, energy_arr):

0 commit comments

Comments
 (0)