Skip to content

Commit

Permalink
fixing python3 specific bug with intersubband_optical_transitions
Browse files Browse the repository at this point in the history
variables no longer escape list comprehension's scope in python3 so this
is causes an error!
  • Loading branch information
robochat committed Jul 17, 2018
1 parent 7936022 commit 60f6510
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion intersubband_optical_transitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,8 @@ def inv_eps_zz_multiplasmon2(results,transitions_table,linewidth,freqaxis,eps_z,
#y_y = linewidth(w_i) if callable(linewidth) else linewidth #(THz real?) guesstimate of transition broadening (written to get result as close as possible to other models)
#y_y = linewidth(np.sqrt(wy**2-Ry2/ff0)) if callable(linewidth) else linewidth #(THz real?) guesstimate of transition broadening (written to get result as close as possible to other models)

const_factor = 2.0/(eps0*tra['Lperiod']*1e-9)*(1e-12/h)**2
Lperiod = transitions_table[0]['Lperiod']
const_factor = 2.0/(eps0*Lperiod*1e-9)*(1e-12/h)**2

for i,(freq,eps_w_i) in enumerate(zip(freqaxis,eps_w)):
inv_eps_w_i = 1.0/eps_w_i
Expand Down

0 comments on commit 60f6510

Please sign in to comment.