Exemplo n.º 1
0
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()
Exemplo n.º 2
0
        if marray[0].strip() == 'PMD':
        #  errorf.write(' ** ' + sarray[7] + '\n')
        #  errorf.write('Mouse ' + n + '\n')
          iarray = sarray[7].split(' ')
        
          mouse = Mouse(n, sarray[1], sarray[2],sarray[11].strip(),iarray[0].strip(), 'nl', sarray[3].strip(), sarray[4].strip(), sarray[5].strip())
          limslist.append(mouse)
          namelist.append(n)
   except:
      pass      
      #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()