From aa5c114b3bb8d4306f48ac6335448350df97e9a915a12d69f0b05fd61eefcbc8 Mon Sep 17 00:00:00 2001 From: PioApocalypse Date: Tue, 5 May 2026 12:15:57 +0200 Subject: [PATCH] matrix no more normalized --- src/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.py b/src/main.py index 9577305..3a5270e 100644 --- a/src/main.py +++ b/src/main.py @@ -689,9 +689,9 @@ def build_nexus_file(pld_fabrication, output_path, rheed_osc=None, heatmap_matri # this is of my own initiative. good??? heatmap.attrs["interpretation"] = "spectrum" # suggested by DeepSeek, useful? probably not. - heatmap.attrs["suggested_colormap"] = "inferno" - heatmap.attrs["scale_min"] = 0.0 - heatmap.attrs["scale_max"] = 1.0 + # heatmap.attrs["suggested_colormap"] = "inferno" + # heatmap.attrs["scale_min"] = 0.0 + # heatmap.attrs["scale_max"] = 1.0 return @@ -733,7 +733,7 @@ if __name__ == "__main__": # if os.path.isfile("tests/LAO_16min50s_736C_STO.png"): # if PNG img = Image.open("tests/LAO_16min50s_736C_STO.bmp").convert("L") mx = np.array(img, dtype=np.uint8) - mx = mx.astype(np.float32) / 255.0 # consider deleting??? + # mx = mx.astype(np.float32) / 255.0 # consider deleting??? build_nexus_file( result, output_path=f"output/sample-{sample_name}-nexus.h5",