Skip to content

Commit

Permalink
Fix formatting of empty data ID query explanation.
Browse files Browse the repository at this point in the history
The logs were accidentally committed without line breaks.
  • Loading branch information
kfindeisen committed Aug 29, 2024
1 parent c68239a commit 43d65ed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions python/lsst/pipe/base/all_dimensions_quantum_graph_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,14 +532,14 @@ def log_failure(self, log: LsstLogAdapter) -> None:
# put these args in an easier-to-reconstruct equivalent form
# so they can read it more easily and copy and paste into
# a Python terminal.
buffer.write(f" dimensions={list(self.query_args['dimensions'].names)},")
buffer.write(f" dataId={dict(self.query_args['dataId'].required)},")
buffer.write(f" dimensions={list(self.query_args['dimensions'].names)},\n")
buffer.write(f" dataId={dict(self.query_args['dataId'].required)},\n")

Check warning on line 536 in python/lsst/pipe/base/all_dimensions_quantum_graph_builder.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/pipe/base/all_dimensions_quantum_graph_builder.py#L535-L536

Added lines #L535 - L536 were not covered by tests
if self.query_args["where"]:
buffer.write(f" where={repr(self.query_args['where'])},")
buffer.write(f" where={repr(self.query_args['where'])},\n")

Check warning on line 538 in python/lsst/pipe/base/all_dimensions_quantum_graph_builder.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/pipe/base/all_dimensions_quantum_graph_builder.py#L538

Added line #L538 was not covered by tests
if "datasets" in self.query_args:
buffer.write(f" datasets={list(self.query_args['datasets'])},")
buffer.write(f" datasets={list(self.query_args['datasets'])},\n")

Check warning on line 540 in python/lsst/pipe/base/all_dimensions_quantum_graph_builder.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/pipe/base/all_dimensions_quantum_graph_builder.py#L540

Added line #L540 was not covered by tests
if "collections" in self.query_args:
buffer.write(f" collections={list(self.query_args['collections'])},")
buffer.write(f" collections={list(self.query_args['collections'])},\n")

Check warning on line 542 in python/lsst/pipe/base/all_dimensions_quantum_graph_builder.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/pipe/base/all_dimensions_quantum_graph_builder.py#L542

Added line #L542 was not covered by tests
finally:
# If an exception was raised, write a partial.
log.error(buffer.getvalue())
Expand Down

0 comments on commit 43d65ed

Please sign in to comment.