nugrid_set.py 文件源码

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

项目:NuGridPy 作者: NuGrid 项目源码 文件源码
def read_yield_tables(self,table,Z):

        '''
            Reads out yield tables in table format
        '''

        print 'reading yield tables'
        import read_yield_tables as y
        y1=y.yields(table)
        masses=[]
        for header in y1.table_header:
            if str(Z) in header:
                mass=header.split(',')[0].split('=')[1]
                masses.append(float(mass))
        #print y1.get(1.65,0.01,'age')  
        #print 'Available masses: ',masses  

        return y1,masses
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号