Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

absorptionCoefficient_Generic: allow initialization of Xsect with other datatype than float #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hapi/hapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -35376,7 +35376,7 @@ def absorptionCoefficient_Generic(Components=None,SourceTables=None,partitionFun
WavenumberWingHW=None,WavenumberGrid=None,
Diluent={},LineMixingRosen=False,
profile=None,calcpars=None,exclude=set(),
DEBUG=None):
DEBUG=None, initial_Xsect=None):

# Throw exception if profile or calcpars are empty.
if profile is None: raise Exception('user must provide the line profile function')
Expand Down Expand Up @@ -35423,7 +35423,7 @@ def absorptionCoefficient_Generic(Components=None,SourceTables=None,partitionFun
#Omegas = arange(OmegaRange[0],OmegaRange[1],OmegaStep)
Omegas = arange_(OmegaRange[0],OmegaRange[1],OmegaStep) # fix
number_of_points = len(Omegas)
Xsect = zeros(number_of_points)
Xsect = zeros(number_of_points) if initial_Xsect is None else initial_Xsect

# reference temperature and pressure
T_ref_default = __FloatType__(296.) # K
Expand Down