Skip to content

Commit a60a115

Browse files
committed
add significance
1 parent 3cc835f commit a60a115

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

v2dl5/light_curves/data_reader.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ def _read_fluxes_from_ecsv_file(
171171
f["flux_ul"] = [flux if is_ul else -1.0 for flux, is_ul in zip(flux_ul, is_ul)]
172172
else:
173173
f["flux_ul"] = [-1.0 for _ in f["flux"]]
174+
if "significance" in table.colnames:
175+
f["significance"] = table["significance"].data.flatten().tolist()
174176
except KeyError:
175177
self._logger.error(f"Incomplete data file; key not found in {data_config['file_name']}")
176178
raise KeyError

0 commit comments

Comments
 (0)