3d-dart/server/plugins/ModelNucleicAcids.py
def _AdjustParams(self, newparam=None, oldparam=None):
	
		"""Replace zero's outside of the calculation zone (startbp-endbp) with the original values in input .par file"""
		
		olddw = oldparam[0:(self.paramdict['startbp']-1)]
		oldup = oldparam[self.paramdict['endbp']:len(oldparam)+1]
		
		return olddw+newparam[self.paramdict['startbp']-1:self.paramdict['endbp']]+oldup
Replace zero's outside of the calculation zone (startbp-endbp) with the original values in input .par file
Replace zero's outside of the calculation zone (startbp-endbp) with the original values in input .par file
Replace zero ' s outside of the calculation zone ( startbp - endbp ) with the original values in input . par file
def _AdjustParams(self, newparam=None, oldparam=None):
		olddw = oldparam[0:(self.paramdict['startbp']-1)]
		oldup = oldparam[self.paramdict['endbp']:len(oldparam)+1]
		return olddw+newparam[self.paramdict['startbp']-1:self.paramdict['endbp']]+oldup
def _AdjustParams ( self , newparam = None , oldparam = None ) : olddw = oldparam [ 0 : ( self . paramdict [ 'startbp' ] - 1 ) ] oldup = oldparam [ self . paramdict [ 'endbp' ] : len ( oldparam ) + 1 ] return olddw + newparam [ self . paramdict [ 'startbp' ] - 1 : self . paramdict [ 'endbp' ] ] + oldup
Replace zero's outside of the calculation zone (startbp-endbp) with the original values in input .par file
Replace zero ' s outside of the calculation zone ( startbp - endbp ) with the original values in input . par file
"""Replace zero's outside of the calculation zone (startbp-endbp) with the original values in input .par file"""
self
newparam
oldparam