Skip to content

Commit

Permalink
bugfix to deal with None entries
Browse files Browse the repository at this point in the history
  • Loading branch information
simeonreusch committed Dec 22, 2022
1 parent 8536099 commit 4ba98ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ztflc/forcephotometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ def run_forcefit(
if bar is not None:
bar.update(index_count)

self._data_forcefit = pd.DataFrame(dataout_list)
dataout_final = [i for i in dataout_list if i is not None]

self._data_forcefit = pd.DataFrame(dataout_final)
if store:
self.store()

Expand Down

0 comments on commit 4ba98ec

Please sign in to comment.