diff options
| author | Christian Cunningham <cc@local.lan> | 2026-02-16 19:33:19 -0800 |
|---|---|---|
| committer | Christian Cunningham <cc@local.lan> | 2026-02-16 19:33:19 -0800 |
| commit | c4abc6fd218963eb1862181e1e70aedad4aef52e (patch) | |
| tree | fc81d02c3d0770ade247f3a57ee18270fa52a502 /load_c_data.py | |
| parent | 69406994a70e15a2978fd1ad4e35f40db2af468b (diff) | |
Fix on some platforms
Diffstat (limited to 'load_c_data.py')
| -rwxr-xr-x | load_c_data.py | 4 |
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))) |
