feature_model_grabber.py 文件源码

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

项目:johnson-county-ddj-public 作者: dssg 项目源码 文件源码
def generate_uuid(self, metadata):
        """ Generate a unique identifier given a dictionary of matrix metadata.

        :param metadata: metadata for the matrix
        :type metadata: dict
        :return: unique name for the file
        :rtype: str
        """
        identifier = ''
        for key in sorted(metadata.keys()):
            identifier = '{0}_{1}'.format(identifier, str(metadata[key]))
        name_uuid = str(uuid.uuid3(uuid.NAMESPACE_DNS, identifier))
        return  name_uuid
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号