adds useless attrs suggested by DeepSeek

leaving this here as a memento that LLM's allucinate
This commit is contained in:
2026-05-05 12:11:27 +02:00
parent a278119be4
commit 7a871a9f6d

View File

@@ -688,8 +688,10 @@ def build_nexus_file(pld_fabrication, output_path, rheed_osc=None, heatmap_matri
heatmap.attrs["units"] = "a.u." heatmap.attrs["units"] = "a.u."
# this is of my own initiative. good??? # this is of my own initiative. good???
heatmap.attrs["interpretation"] = "spectrum" heatmap.attrs["interpretation"] = "spectrum"
# suggested by DeepSeek, useful? # suggested by DeepSeek, useful? probably not.
heatmap.attrs["suggested_colormap"] = "viridis" heatmap.attrs["suggested_colormap"] = "inferno"
heatmap.attrs["scale_min"] = 0.0
heatmap.attrs["scale_max"] = 1.0
return return
@@ -731,10 +733,10 @@ if __name__ == "__main__":
# if os.path.isfile("tests/LAO_16min50s_736C_STO.png"): # if PNG # if os.path.isfile("tests/LAO_16min50s_736C_STO.png"): # if PNG
img = Image.open("tests/LAO_16min50s_736C_STO.bmp").convert("L") img = Image.open("tests/LAO_16min50s_736C_STO.bmp").convert("L")
mx = np.array(img, dtype=np.uint8) mx = np.array(img, dtype=np.uint8)
normalized_mx = mx.astype(np.float32) / 255.0 # consider deleting??? mx = mx.astype(np.float32) / 255.0 # consider deleting???
build_nexus_file( build_nexus_file(
result, result,
output_path=f"output/sample-{sample_name}-nexus.h5", output_path=f"output/sample-{sample_name}-nexus.h5",
rheed_osc=rheed_osc, rheed_osc=rheed_osc,
heatmap_matrix=normalized_mx, heatmap_matrix=mx,
) )