def loadslice(self,it,smth=None):
"""
Load the variables initialized by self.vars2load()
"""
if self.data_type in ('b', 'bb'):
for i in self.vars2l:
exec('self.'+i+'=self.readslice(self.'+i+'f,'+str(it)+',"'+i+'")')
else:
for i in self.vars2l:
exec('self.'+i+'=self.readslice(self.'+i+'f,'+str(it)+')')
self.mmd={}
for i in self.vars2l:
if smth is not None:
exec('self.'+i+'=gf(self.'+i+',sigma='+str(smth)+')')
exec('self.mmd["'+i+'"]=[self.'+i+'.min(),self.'+i+'.max()]')
self.time=it*self.movieout_full
####
#### Method to add attributes to the object
####
评论列表
文章目录