Skip to content

Commit

Permalink
datadir gas giants
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholaswogan committed Oct 18, 2024
1 parent 48c5a59 commit 18ed4fa
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions photochem/extensions/gasgiants.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def __init__(self, planet_radius, planet_mass, P_ref, thermo_file):
class EvoAtmosphereGasGiant(EvoAtmosphere):

def __init__(self, mechanism_file, stellar_flux_file, planet_mass, planet_radius,
nz=100, photon_scale_factor=1.0, P_ref=1.0e6, thermo_file=None):
nz=100, photon_scale_factor=1.0, P_ref=1.0e6, thermo_file=None,
data_dir=None):
"""Initializes the code
Parameters
Expand All @@ -87,6 +88,9 @@ def __init__(self, mechanism_file, stellar_flux_file, planet_mass, planet_radius
Pressure level corresponding to the planet_radius, by default 1e6 dynes/cm^2
thermo_file : str, optional
Optionally include a dedicated thermodynamic file.
data_dir : str, optional
Path to the data directory containing photolysis cross sections and other data
needed to run the model
"""

# First, initialize photochemical model with dummy inputs
Expand All @@ -105,7 +109,8 @@ def __init__(self, mechanism_file, stellar_flux_file, planet_mass, planet_radius
mechanism_file,
f.name,
stellar_flux_file,
ff.name
ff.name,
data_dir
)

if thermo_file is None:
Expand Down

0 comments on commit 18ed4fa

Please sign in to comment.