1 Star 0 Fork 0

焦建军/good_robot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
txt_to_csv.py 523 Bytes
一键复制 编辑 原始数据 按行查看 历史
esteng 提交于 2021-03-16 10:16 . pre-pull
import numpy as np
import os
# Visualize with PlotJuggler https://github.com/facontidavide/PlotJuggler
log_name = os.path.expanduser('~/src/real_good_robot/logs/2020-01-11-19-54-58/transitions/trial-reward-value.log.txt' )
print('loading: ' + log_name)
kwargs = {'delimiter': ' ', 'ndmin': 2}
log = np.loadtxt(log_name, **kwargs)
# os.path.join(self.transitions_directory, '%s.log.csv' % log_name)
csv_name = log_name.replace('txt', 'csv')
np.savetxt(csv_name, np.squeeze(log), delimiter=', ')
print('Saved: ' + csv_name)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jiaojianjun-com/good_robot.git
git@gitee.com:jiaojianjun-com/good_robot.git
jiaojianjun-com
good_robot
good_robot
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385