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

add arg to the config_schema.yml file for gzipped and hook up in run_stardis #116

Merged
merged 2 commits into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
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
5 changes: 2 additions & 3 deletions stardis/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ def run_stardis(config_fname, tracing_lambdas_or_nus):
if config.model.type == "marcs":
from stardis.io.model.marcs import read_marcs_model

# FIX THIS BY ADDING AN OPTIONAL GZIPPED ARGUMENT TO THE CONFIG
raw_marcs_model = read_marcs_model(
config.model.fname, gzipped=False
) # Need to add gzipped to config
config.model.fname, gzipped=config.model.gzipped
)
stellar_model = raw_marcs_model.to_stellar_model(
adata, final_atomic_number=config.model.final_atomic_number
)
Expand Down
4 changes: 4 additions & 0 deletions stardis/config_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ properties:
- marcs
fname:
type: string
gzipped:
type: boolean
default: false
final_atomic_number:
type: number
multipleOf: 1
default: 30

required:
- type
- fname
Expand Down
Loading