Skip to content

Commit 00d8e63

Browse files
committed
fixed error with tests
1 parent c90073a commit 00d8e63

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
from saibr import *
22
import glob
33
import numpy as np
4+
import os
45
import pytest
56

67
# Load images and ROIs
7-
cal_basepath = '../data/dataset1/n2'
8+
cal_basepath = os.path.dirname(os.path.abspath(__file__)) + '/../data/dataset1/n2'
89
cal_image_paths = glob.glob(cal_basepath + '/*.tif')
910
cal_roi_paths = glob.glob(cal_basepath + '/*.txt')
1011
cal_images = [load_image(p) for p in cal_image_paths]
1112
cal_rois = [np.loadtxt(p) for p in cal_roi_paths]
12-
print(len(cal_rois))
1313

1414
# Extract channels
1515
cal_images_gfp = [i[:, :, 0] for i in cal_images]

0 commit comments

Comments
 (0)