static_output.py 文件源码

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

项目:yt 作者: yt-project 项目源码 文件源码
def index(self):
        if self._instantiated_index is None:
            if self._index_class is None:
                raise RuntimeError("You should not instantiate Dataset.")
            self._instantiated_index = self._index_class(
                self, dataset_type=self.dataset_type)
            # Now we do things that we need an instantiated index for
            # ...first off, we create our field_info now.
            oldsettings = np.geterr()
            np.seterr(all='ignore')
            self.create_field_info()
            np.seterr(**oldsettings)
        return self._instantiated_index
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号