We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c90073a commit 00d8e63Copy full SHA for 00d8e63
1 file changed
tests/test_.py
@@ -1,15 +1,15 @@
1
from saibr import *
2
import glob
3
import numpy as np
4
+import os
5
import pytest
6
7
# Load images and ROIs
-cal_basepath = '../data/dataset1/n2'
8
+cal_basepath = os.path.dirname(os.path.abspath(__file__)) + '/../data/dataset1/n2'
9
cal_image_paths = glob.glob(cal_basepath + '/*.tif')
10
cal_roi_paths = glob.glob(cal_basepath + '/*.txt')
11
cal_images = [load_image(p) for p in cal_image_paths]
12
cal_rois = [np.loadtxt(p) for p in cal_roi_paths]
-print(len(cal_rois))
13
14
# Extract channels
15
cal_images_gfp = [i[:, :, 0] for i in cal_images]
0 commit comments