import django
import seriesbrowser
import os
import random
import re
import pickle
import sys

from seriesbrowser.models import Laboratory
from seriesbrowser.models import LabelMethod
from seriesbrowser.models import ImageMethod
from seriesbrowser.models import SectioningPlane

lab = Laboratory(name='Mitra')
lab.save()

for plane in ('Sagittal', 'Coronal', 'Tranverse'):
	sp = SectioningPlane(desc=plane)
	sp.save()

for label in ('Nissl', 'Fluorescent', 'IHC'):
	lm = LabelMethod(name=label)
	lm.save()

for field in ('Brightfield', 'Fluorescent'):
	im = ImageMethod(name=field)
	im.save()
Beispiel #2
0
      #errorf.write('Error !!!! ' + sline + '\n' )
      #traceback.print_exc()

#errorf.write('@@@@@@@@@@@@@@')
 
lab_m = Laboratory(name='mitralab')
lab_m.save()

sp_s= SectioningPlane(desc='Sagittal')
sp_s.save()
sp_c = SectioningPlane(desc='Coronal')
sp_c.save()
sp_h = SectioningPlane(desc='Horizontal')
sp_h.save()

lm_n = LabelMethod(name='Nissl')
lm_n.save()
lm_f = LabelMethod(name='Flourescent')
lm_f.save()
lm_ihc = LabelMethod(name='IHC')
lm_ihc.save()

im_b = ImageMethod(name='Brightfield')
im_b.save()
im_f = ImageMethod(name='Flourescent')
im_f.save()

slist = os.listdir('/mnt/data001/MBAProcessingResults/PMD')


for sr in slist: