descriptors.py 文件源码

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

项目:psst 作者: power-system-simulation-toolbox 项目源码 文件源码
def setattributeindex(self, instance, value):
        instance.gen.index = value
        instance.gencost.index = value

        if isinstance(instance.gen_name, pd.RangeIndex) or isinstance(instance.bus_name, pd.Int64Index):
            instance.gen_name = ['GenCo{}'.format(g) for g in instance.gen_name]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号