p3do.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:TurbPlasma 作者: tulasinandan 项目源码 文件源码
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
####
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号