Commit a9c7211b authored by sjromuel's avatar sjromuel
Browse files

d

parent dcb65bb8
......@@ -100,10 +100,11 @@ class dbscan_clustering(BaseNetwork):
print('MRT: ', self.mrt)
def subtract_test_patients(self, img_list):
for test_patient in self.test_patients:
for pat in img_list:
if pat.startswith('P' + str(test_patient).zfill(2)):
img_list.remove(pat)
new_img_list =[]
for pat in img_list:
if not pat.startswith('P' + str(self.test_patients[0]).zfill(2)):
if not pat.startswith('P' + str(self.test_patients[1]).zfill(2)):
new_img_list.append(pat)
return img_list
def loadimg_frompatientslices(self, patientslice):
......
......@@ -99,10 +99,11 @@ class dbscan_clustering(BaseNetwork):
print('MRT: ', self.mrt)
def subtract_test_patients(self, img_list):
for test_patient in self.test_patients:
for pat in img_list:
if pat.startswith('P' + str(test_patient).zfill(2)):
img_list.remove(pat)
new_img_list =[]
for pat in img_list:
if not pat.startswith('P' + str(self.test_patients[0]).zfill(2)):
if not pat.startswith('P' + str(self.test_patients[1]).zfill(2)):
new_img_list.append(pat)
return img_list
def loadimg_frompatientslices(self, patientslice):
......
......@@ -99,10 +99,11 @@ class dbscan_clustering(BaseNetwork):
print('MRT: ', self.mrt)
def subtract_test_patients(self, img_list):
for test_patient in self.test_patients:
for pat in img_list:
if pat.startswith('P' + str(test_patient).zfill(2)):
img_list.remove(pat)
new_img_list =[]
for pat in img_list:
if not pat.startswith('P' + str(self.test_patients[0]).zfill(2)):
if not pat.startswith('P' + str(self.test_patients[1]).zfill(2)):
new_img_list.append(pat)
return img_list
def loadimg_frompatientslices(self, patientslice):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment