Skip to content

Commit

Permalink
return model=None if dangerous=False
Browse files Browse the repository at this point in the history
  • Loading branch information
wangbingjie committed Nov 22, 2024
1 parent 8b197e6 commit b4ed6ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prospect/io/read_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ def results_from(filename, model_file=None, dangerous=True, **kwargs):
"""
# Read the basic chain, parameter, and run_params info
res, obs = read_hdf5(filename, **kwargs)

model = None

# Now try to instantiate the model object from the paramfile
if dangerous:
try:
Expand Down

0 comments on commit b4ed6ed

Please sign in to comment.