bd-j / prospector

Python code for Stellar Population Inference from Spectra and SEDs
http://prospect.readthedocs.io
MIT License
153 stars 71 forks source link

mod write_h5_header #293

Closed wangbingjie closed 11 months ago

wangbingjie commented 11 months ago

291

Two modifications in prospect/io/write_results.py:

  1. added a try / except clause
  2. added write_model_params argument in write_hdf5 for flexibility. If False, model_params = None before writing to the header.

Let me know if you have any other suggestions!

bd-j commented 11 months ago

Looks good, thanks!