csv_input_provider.py 文件源码

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

项目:Main 作者: N-BodyPhysicsSimulator 项目源码 文件源码
def get_generator(self) -> Iterator[BodyState]:
        path = self.args.get('csv_input_path')
        separator = self.args.get('separator')

        bodies = self.__get_bodies_from_path(path, separator)

        yield BodyState.from_dict({
            'bodies': bodies,
            'ticks': 0,
            'time': 0,
            'delta_time': self.args.get('delta_time')
        })
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号