Skip to content

Commit

Permalink
make the additional_info the light_curve_data object has be a diction…
Browse files Browse the repository at this point in the history
…ary, instead of a list of values
  • Loading branch information
Haille committed Nov 21, 2024
1 parent a98f549 commit 5674831
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resspect/fit_lightcurves.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,9 @@ def _sample_fit(
else:
light_curve_data.sntype = 'other'
light_curve_data.sample = type
light_curve_data.additional_info = []
light_curve_data.additional_info = {}
for info in additional_info:
light_curve_data.additional_info.append(obj_dic[info])
light_curve_data.additional_info[info] = obj_dic[info]
light_curve_data.fit_all()

return light_curve_data
Expand Down

0 comments on commit 5674831

Please sign in to comment.