Skip to content

Commit

Permalink
Fix where the old day_obs import warning is issued from
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Aug 7, 2024
1 parent e1d8e94 commit 57c8956
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lsst/daf/butler/transfers/_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,8 @@ def __init__(self, stream: IO, registry: SqlRegistry):
warnings.warn(
"Constructing day_obs records with no timespans for "
"visit/exposure records that were exported before day_obs was a dimension. "
f"(instrument{plural}: {missing_offsets})"
f"(instrument{plural}: {missing_offsets})",
stacklevel=find_outside_stacklevel("lsst.daf.butler"),
)

# key is (dataset type name, run)
Expand Down

0 comments on commit 57c8956

Please sign in to comment.