From b4ed6edceaed133a572c3b56274bf50d4adf25e2 Mon Sep 17 00:00:00 2001 From: Bingjie Wang Date: Fri, 22 Nov 2024 09:55:17 -0500 Subject: [PATCH] return model=None if dangerous=False --- prospect/io/read_results.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prospect/io/read_results.py b/prospect/io/read_results.py index c4dd3e5c..386a25a5 100644 --- a/prospect/io/read_results.py +++ b/prospect/io/read_results.py @@ -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: