Skip to content

Commit

Permalink
Make DDF names in target_name match expectations in opsim output
Browse files Browse the repository at this point in the history
  • Loading branch information
rhiannonlynne committed Jan 23, 2025
1 parent 1da7535 commit a09a0b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schedview/collect/opsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def read_ddf_visits(
visits : `pandas.DataFrame`
The visits and their parameters.
"""
ddf_field_names = tuple(ddf_locations().keys())
ddf_field_names = [f"DD:{field_name}" for field_name in ddf_locations().keys()]
# Note that this where clause is hard-coded for target_name (v4+)
# but other columns in query will be backwards-compatible.
constraint = f"target_name IN {tuple(field_name for field_name in ddf_field_names)}"
Expand Down

0 comments on commit a09a0b0

Please sign in to comment.