Closed HajimeKawahara closed 1 month ago
mdb.Tref
line_strength_ref_original
is line strength at T=Tref_original
self.line_strength_ref
(depending on self.Tref
) -> self.line_strength(Tref)
qr_interp(T)
-> qr_interp(T,Tref)
in MdbExomol
qr_interp(iso,T)
-> qr_interp(iso,T,Tref)
in MdbHitemp/Hitran
qr_interp_line(T)
-> qr_interp_line(T,Tref)
in MdbHitemp/Hitran
close with #515
description:
opa = OpaPremodit
usesmdb
, but since the temperature setting ofOpaPremodit
is used withinmdb
(specifically inchange_reference_temperature
). Originally, @KoHosokawa pointed that the multiple call ofopa
with the samemdb
changes the firstopa
. See the sample code #515 (but before this, we needed to define the__eq__
method #509).opacalc.py
when invoking
opa
multiple times with the samemdb
, the state ofopa
defined earlier gets altered.potential solution:
Modify the code so that
opa
does not altermdb
. Specifically, provideTref
externally fromopa
and use it to calculateline_strength_ref
andqt
. This way,Tref
is not stored in the internal state ofmdb
.i.e. more functional programming like mdb