Skip to content

Commit

Permalink
Merge branch 'main' into 1636-hidden-xray-vision-dependency-is-still-…
Browse files Browse the repository at this point in the history
…not-dealt-with-anywhere
  • Loading branch information
stan-dot committed May 20, 2024
2 parents 000b5f0 + a17729f commit b727657
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/bluesky/callbacks/olog.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ def start(self, doc):
)
)
olog_status = self.client.log(document_content, logbooks=self.logbook)

logger.debug(

Check warning on line 193 in src/bluesky/callbacks/olog.py

View check run for this annotation

Codecov / codecov/patch

src/bluesky/callbacks/olog.py#L193

Added line #L193 was not covered by tests
"client.log returned %s", olog_status
"client.log returned %s", olog_status # noqa: UP031
) # NOTE this is for logging calls efficiency
super().start(doc)
2 changes: 1 addition & 1 deletion src/bluesky/callbacks/tiled_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def _ensure_sres_backcompat(self, sres: StreamResource) -> StreamResource:
if ("mimetype" not in sres.keys()) and ("spec" not in sres.keys()):
raise RuntimeError("StreamResource document is missing a mimetype or spec")
else:
sres["mimetype"] = sres.get("mimetype", MIMETYPE_LOOKUP[sres["spec"]])
sres["mimetype"] = sres.get("mimetype") or MIMETYPE_LOOKUP[sres.get("spec")]
if "parameters" not in sres.keys():
sres["parameters"] = sres.pop("resource_kwargs", {})
if "uri" not in sres.keys():
Expand Down

0 comments on commit b727657

Please sign in to comment.