From 0fc85f7de0c5bbdf1cc917225d1ff4f09174f039 Mon Sep 17 00:00:00 2001 From: James Beilsten-Edmands <30625594+jbeilstenedmands@users.noreply.github.com> Date: Mon, 16 Nov 2026 10:49:35 +0000 Subject: [PATCH 1/2] osc width bugfix for ssx --- dx2/scan.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dx2/scan.cxx b/dx2/scan.cxx index 1b55d40..3921c29 100644 --- a/dx2/scan.cxx +++ b/dx2/scan.cxx @@ -66,7 +66,7 @@ json Scan::to_json() const { json properties; properties["oscillation"] = oscillation_array; if (oscillation_array.size() == 1) { - properties["oscillation_width"] = 0; + properties["oscillation_width"] = {0.0,}; } scan_data["properties"] = properties; // FIXME for dials compatibility, do we need exposure times and epochs arrays, From 952f134730f77b1e04d8730ffefba185609fb569 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Nov 2026 10:52:32 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- dx2/scan.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dx2/scan.cxx b/dx2/scan.cxx index 3921c29..d205a02 100644 --- a/dx2/scan.cxx +++ b/dx2/scan.cxx @@ -66,7 +66,9 @@ json Scan::to_json() const { json properties; properties["oscillation"] = oscillation_array; if (oscillation_array.size() == 1) { - properties["oscillation_width"] = {0.0,}; + properties["oscillation_width"] = { + 0.0, + }; } scan_data["properties"] = properties; // FIXME for dials compatibility, do we need exposure times and epochs arrays,