aboutsummaryrefslogtreecommitdiff
path: root/load_c_data.py
diff options
context:
space:
mode:
authorChristian C <cc@localhost>2026-02-16 19:33:19 -0800
committerChristian C <cc@localhost>2026-02-16 19:33:19 -0800
commit16d598d5272d745816c74745e524cc9898667f6c (patch)
treefc81d02c3d0770ade247f3a57ee18270fa52a502 /load_c_data.py
parent72693c6cca58ba5f17cbe072765978020b794c7a (diff)
Fix on some platformsHEADmaster
Diffstat (limited to 'load_c_data.py')
-rwxr-xr-xload_c_data.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/load_c_data.py b/load_c_data.py
index a3a905b..b692631 100755
--- a/load_c_data.py
+++ b/load_c_data.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3.11
+#!.venv/bin/python3
import numpy as np
from sys import argv
from matplotlib import pyplot as plt
@@ -18,7 +18,7 @@ if w <= 4:
WIDTH,HEIGHT = w,h
labels = data.reshape(WIDTH,HEIGHT)
-BASE="/home/physics/cunnichr/Data/HistologyArrays/HistologyArray00/"
+BASE="../Datasets/"
NAME = FILE_NAME[-len("HT-XX.bin"):-len(".bin")]
image = plt.imread(BASE + NAME + "/image.png")
print(FILE_NAME[:-len("bin")] + "tif", "\n", image.transpose(2,0,1).shape, len(np.unique(labels)))