f-hamidlab / nuclearpy

MIT License
0 stars 0 forks source link

Segmentator error finding the directory #27

Open Marcel-Salier opened 2 years ago

Marcel-Salier commented 2 years ago

Hi Fursham,

I tried to start segmenting new images and I got problems finding the directory:

That is the path: path = "F:\Soumya\GOOD STAININGS\new images\D14 T29+187 BLEBB DGFPB3lamB"

And this the error: ngs = ngt.Segmentador(path, outdir = None, analyse_all=False)


OSError Traceback (most recent call last) Input In [9], in <cell line: 1>() ----> 1 ngs = ngt.Segmentador(path, outdir = None, analyse_all=False)

File c:\users\bb_lab\documents\github2\ng_tools\ngtools\segmentation.py:1147, in Segmentador.init(self, indir, outdir, analyse_all, resolution) 1145 self.path_read = indir 1146 else: -> 1147 raise OSError(f"{indir} does not exists") 1149 # automatically detect supported file types 1150 extensions = list(set([os.path.splitext(f)[1] for f in listdir(self.path_read) if isfile(join(self.path_read, f))]))

OSError: F:\Soumya\GOOD STAININGS ew images\D14 T29+187 BLEBB DGFPB3lamB does not exists

Marcel-Salier commented 2 years ago

Solved, for no reason new images directory was not accepted. I moved them and now is working!