Skip to content

Commit

Permalink
fixed error with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmbland committed Aug 8, 2023
1 parent c90073a commit 00d8e63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
from saibr import *
import glob
import numpy as np
import os
import pytest

# Load images and ROIs
cal_basepath = '../data/dataset1/n2'
cal_basepath = os.path.dirname(os.path.abspath(__file__)) + '/../data/dataset1/n2'
cal_image_paths = glob.glob(cal_basepath + '/*.tif')
cal_roi_paths = glob.glob(cal_basepath + '/*.txt')
cal_images = [load_image(p) for p in cal_image_paths]
cal_rois = [np.loadtxt(p) for p in cal_roi_paths]
print(len(cal_rois))

# Extract channels
cal_images_gfp = [i[:, :, 0] for i in cal_images]
Expand Down

0 comments on commit 00d8e63

Please # to comment.