Skip to content

Commit

Permalink
Ensure add_bright_limits_columns adds all columns
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed May 6, 2024
1 parent 9b54c2e commit 808fc34
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/too/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,12 @@ def add_bright_limits_columns(
# Get a list of design modes.
design_modes: dict[str, DesignMode] = allDesignModes(database)

# Add all columns for all design modes and set to false for now.
targets = targets.with_columns(
**{f"bn_{dm}_valid": polars.lit(False) for dm in design_modes},
**{f"mag_lim_{dm}_valid": polars.lit(False) for dm in design_modes},
)

processed: list[polars.DataFrame] = []

# First we split the targets by observatory and sky_brightness_mode (bright or
Expand Down

0 comments on commit 808fc34

Please sign in to comment.