Useful Utilities

Python Package

The following utilities require that you have installed the scrimmage python package. See the instructions in the main README.md to install a developer version of the scrimmage python bindings.

Convert frames.bin to CSV File

You can create a CSV file (e.g., frames.csv) from a frames.bin file with the following code:

1
2
import scrimmage.utils as su
su.frames2csv('/home/youruser/.scrimmage/logs/latest/frames.bin')

The frames can be downsampled with the new_dt argument and the output file name can be changed with the out_filename argument.

1
su.frames2csv('/home/youruser/.scrimmage/logs/latest/frames.bin', new_dt=15.0, out_filename='fewer_frames.bin')