Ejemplo n.º 1
0
  def toXML(self, doc) :
    n = c3D.toXML(self, doc)
    n.appendChild(smds.createXMLvalue(doc, "flow", "%g"%self.flow))
    n.appendChild(smds.createXMLvalue(doc, "flowLength", 
						"%g"%self.flowLength))
    n.appendChild(smds.createXMLvalue(doc, "drainLength", 
						"%g"%self.drainLength))
    return n
Ejemplo n.º 2
0
 def createXMLchannel(self, doc) :
   n = doc.createElement("Channel")
   n.appendChild(smds.createXMLvalue(doc, "capHeight", "%g"%self.capHeight))
   n.appendChild(smds.createXMLvalue(doc, "capWidth", "%g"%self.capWidth))
   n.appendChild(smds.createXMLvalue(doc, "channelRadius",
                                     "%g"%self.channelRadius))
   n.appendChild(smds.createXMLvalue(doc, "hitPoint", "%g"%self.hitPoint))
   return n
Ejemplo n.º 3
0
 def toXML(self, doc) :
   "Returns these Results as a node for insertion into xml.dom.Document doc."
   n = doc.createElement("Results")
   n.appendChild(smds.createXMLvalue(doc, "Length", str(self.length)))
   n.appendChild(smds.createXMLvalue(doc, "Counts", 
   		', '.join([str(x) for x in self.counts]) ))
   n.appendChild(smds.createXMLvalue(doc, "Avg_I", str(self.avg_I)))    
   return n
Ejemplo n.º 4
0
 def createXMLchannel(self, doc) :
   n = doc.createElement("Channel")
   n.appendChild(smds.createXMLvalue(doc, "PotProfile", self.pot.name))
   n.appendChild(smds.createXMLvalue(doc, "potA",
                                     "%g" % self.potA))
   n.appendChild(smds.createXMLvalue(doc, "potB",
                                     "%g" % self.potB))
   return n
Ejemplo n.º 5
0
 def createXMLchannel(self, doc) :
   n = Base_AHL_sdx.createXMLchannel(self, doc)
   n.appendChild(smds.createXMLvalue(doc, "PotProfile", self.pot.name))
   n.appendChild(smds.createXMLvalue(doc, "potA",
                                     "%g" % self.potA))
   n.appendChild(smds.createXMLvalue(doc, "potB",
                                     "%g" % self.potB))
   return n
Ejemplo n.º 6
0
 def createXMLsim(self, doc) :
   n = doc.createElement("Sim")
   n.setAttribute("dT", str(self.dT))
   n.setAttribute("binWidth", str(self.binWidth))
   n.setAttribute("num", str(self.num))
   n.appendChild(smds.createXMLvalue(doc, "timeToMiss", "%g"%self.timeToMiss))
   n.appendChild(smds.createXMLvalue(doc, "D", "%g" % self.D))
   n.appendChild(smds.createXMLvalue(doc, "mobility", "%g" % self.mobility))
   return n
Ejemplo n.º 7
0
 def toXML(self, doc) :
   "Returns these Results as a node for insertion into xml.dom.Document doc."
   n.appendChild(smds.createXMLvalue(doc, "Hit Tape",
   		'\n'.join(["%g,%g,%g,%g" % (self.hitTape_t[i],self.hitTape_x[i],self.hitTape_y[i],self.hitTape_z[i])
   		           for i in range(len(self.hitTape_x))]) ))
   n.appendChild(smds.createXMLvalue(doc, "Miss Tape",
   		'\n'.join(["%g,%g,%g,%g" % (self.missTape_t[i],self.missTape_x[i],self.missTape_y[i],self.missTape_z[i])
   		           for i in range(len(self.missTape_x))]) ))
   return n
Ejemplo n.º 8
0
 def toXML(self, doc) :
   "Returns these Results as a node for insertion into xml.dom.Document doc."
   n = doc.createElement("Results")
   n.appendChild(smds.createXMLvalue(doc, "Num", str(self.num)))
   n.appendChild(smds.createXMLvalue(doc, "Hits", str(self.hits)))
   n.appendChild(smds.createXMLvalue(doc, "Misses", str(self.misses)))
   n.appendChild(smds.createXMLvalue(doc, "TimeToHitDist", 
   		'\n'.join(["%g,%d" % (self.hitTimeDist_t[i],
   		                      self.hitTimeDist_count[i])
   		           for i in range(len(self.hitTimeDist_t))]) ))
   return n
Ejemplo n.º 9
0
 def createXMLsim(self, doc) :
   n = doc.createElement("Sim")
   n.setAttribute("macro_dT", str(self.macro_dT))
   n.setAttribute("micro_dT", str(self.micro_dT))
   n.setAttribute("binWidth", str(self.binWidth))
   n.setAttribute("dur", str(self.dur))
   n.setAttribute("numMolecs", str(self.numMolecs))
   n.appendChild(smds.createXMLvalue(doc, "concentration",
                                     "%g" % self.concentration))
   n.appendChild(smds.createXMLvalue(doc, "D", "%g" % self.D))
   n.appendChild(smds.createXMLvalue(doc, "mobility", "%g" % self.mobility))
   return n
Ejemplo n.º 10
0
  def toXML(self, doc, n) :
    n.appendChild(smds.createXMLvalue(doc, "video_framerate",
                                      "%g"%self.video_framerate))
    n.appendChild(smds.createXMLvalue(doc, "video_Nx", 
						"%d"%self.video_Nx))
    n.appendChild(smds.createXMLvalue(doc, "video_Ny", 
						"%d"%self.video_Ny))
    n.appendChild(smds.createXMLvalue(doc, "video_sizeX", 
						"%d"%self.video_sizeX))
    n.appendChild(smds.createXMLvalue(doc, "video_sizeY", 
						"%d"%self.video_sizeY))
    return n
Ejemplo n.º 11
0
 def createXMLchannel(self, doc) :
   n = doc.createElement("Channel")
   n.appendChild(smds.createXMLvalue(doc, "capHeight", "%g"%self.capHeight))
   n.appendChild(smds.createXMLvalue(doc, "capWidth", "%g"%self.capWidth))
   n.appendChild(smds.createXMLvalue(doc, "channelRadius",
                                     "%g"%self.channelRadius))
   n.appendChild(smds.createXMLvalue(doc, "hitPoint",
                                     "%g"%self.hitPoint))
   n.appendChild(smds.createXMLvalue(doc, "vestibuleHeight",
                                     "%g" % self.vestibuleHeight))
   n.appendChild(smds.createXMLvalue(doc, "vestibulePos",
                                     "%g" % self.vestibulePos))
   n.appendChild(smds.createXMLvalue(doc, "vestibuleRadius",
                                     "%g" % self.vestibuleRadius))
   n.appendChild(smds.createXMLvalue(doc, "initHeight",
                                     "%g" % self.initHeight))
   n.appendChild(smds.createXMLvalue(doc, "offset",
                                     "%g" % self.offset))
   n.appendChild(smds.createXMLvalue(doc, "potExtent",
                                     "%g" % self.potExtent))
   n.appendChild(smds.createXMLvalue(doc, "potA",
                                     "%g" % self.potA))
   n.appendChild(smds.createXMLvalue(doc, "potB",
                                     "%g" % self.potB))
   n.appendChild(smds.createXMLvalue(doc, "potC",
                                     "%g" % self.potC))
   return n
Ejemplo n.º 12
0
 def createXMLchannel(self, doc):
   n = cAHL_elef.createXMLchannel(self, doc)
   n.appendChild(smds.createXMLvalue(doc, "chargeRadius",
                                     "%g" % self.chargeRadius))
   n.appendChild(smds.createXMLvalue(doc, "charge", "%g" % self.charge))
   return n
Ejemplo n.º 13
0
 def createXMLsim(self, doc):
     n = cAHL_sphdxeo.createXMLsim(self, doc)
     n.appendChild(smds.createXMLvalue(doc, "stepsPerTape", "%g" % self.stepsPerTape))
     return n
Ejemplo n.º 14
0
 def createXMLsim(self, doc) :
   n = cAHL_sdxeo.createXMLsim(self, doc)
   n.appendChild(smds.createXMLvalue(doc, "particleRadius", "%g" % self.particleRadius))
   return n
Ejemplo n.º 15
0
 def createXMLsim(self, doc) :
   n = Base_AHL_sdx.createXMLsim(self, doc)
   n.appendChild(smds.createXMLvalue(doc, "conductance", "%g" % self.conductance))
   n.appendChild(smds.createXMLvalue(doc, "ionicSelectivity", "%g" % self.ionicSelectivity))
   n.appendChild(smds.createXMLvalue(doc, "Nw", "%g" % self.Nw))
   return n
Ejemplo n.º 16
0
 def createXMLsim(self, doc) :
   n = Base_AHL_sdx.createXMLsim(self, doc)
   n.appendChild(smds.createXMLvalue(doc, "stepsPerTape", "%g" % self.stepsPerTape))
   n.appendChild(smds.createXMLvalue(doc, "tapeSelect", "%g" % self.tapeSelect))
   return n
Ejemplo n.º 17
0
 def createXMLchannel(self, doc) :
   n = Base_AHL_sdx.createXMLchannel(self, doc)
   n.appendChild(smds.createXMLvalue(doc, "particleRadius",
                                     "%g"%self.channelRadius))
   return n
Ejemplo n.º 18
0
 def toXML(self, doc, n) :
   "Apends these Results to node n for insertion into xml.dom.Document doc."
   n.appendChild(smds.createXMLvalue(doc, "vesicleCounts",
   		', '.join([ str(x) for x in self.vesicleCounts ]) ))
   n.appendChild(smds.createXMLvalue(doc, "freeCounts",
   		', '.join([ str(x) for x in self.freeCounts ]) ))
Ejemplo n.º 19
0
 def toXML(self, doc) :
   "Returns these Results as a node for insertion into xml.dom.Document doc."
   n = doc.createElement("Results")
   n.appendChild(smds.createXMLvalue(doc, "Length", str(self.length)))
   n.appendChild(smds.createXMLvalue(doc, "Hits", str(self.hits)))
   return n
Ejemplo n.º 20
0
 def createXMLchannel(self, doc) :
   n = doc.createElement("Channel")
   n.appendChild(smds.createXMLvalue(doc, "particleRadius",
                                         "%g" % self.particleRadius))
   return n
Ejemplo n.º 21
0
 def toXML(self, doc, n) :
   "Appends these Results to node n for insertion into xml.dom.Document doc."
   n.appendChild(smds.createXMLvalue(doc, "Bleached",
   		', '.join([ str(x) for x in self.bleached ]) ))
Ejemplo n.º 22
0
 def createXMLsim(self, doc) :
   n = doc.createElement("Sim")
   n.appendChild(smds.createXMLvalue(doc, "conductance", "%g" % self.conductance))
   n.appendChild(smds.createXMLvalue(doc, "ionicSelectivity", "%g" % self.ionicSelectivity))
   n.appendChild(smds.createXMLvalue(doc, "Nw", "%g" % self.Nw))
   return n
Ejemplo n.º 23
0
 def toXML(self, doc, n) :
   "Apends these Results to node n for insertion into xml.dom.Document doc."
   n.appendChild(smds.createXMLvalue(doc, "video",
   		dumps(self.video), True ))
Ejemplo n.º 24
0
 def createXMLsim(self, doc) :
   n = doc.createElement("Sim")
   n.appendChild(smds.createXMLvalue(doc, "stepsPerTape", "%g" % self.stepsPerTape))
   n.appendChild(smds.createXMLvalue(doc, "tapeSelect", "%g" % self.tapeSelect))
   return n