matrix no more normalized
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user