generic_diag.py 文件源码

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

项目:fbpic 作者: fbpic 项目源码 文件源码
def setup_openpmd_record( self, dset, quantity ) :
        """
        Sets the attributes of a record, that comply with OpenPMD

        Parameter
        ---------
        dset : an h5py.Dataset or h5py.Group object

        quantity : string
           The name of the record considered
        """
        dset.attrs["unitDimension"] = unit_dimension_dict[quantity]
        # No time offset (approximation)
        dset.attrs["timeOffset"] = 0.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号