Skip to content

Instantly share code, notes, and snippets.

@bbarad
Last active July 26, 2019 16:58
Show Gist options
  • Save bbarad/fb8a3449fcbd9a99e6812d75066505f0 to your computer and use it in GitHub Desktop.
Save bbarad/fb8a3449fcbd9a99e6812d75066505f0 to your computer and use it in GitHub Desktop.
Sample script to convert tpkl to dat in batch.
import parse
import trace
filename_list = ["test_1.tpkl", "test_2.tpkl"]
for filename in filename_list:
trace = parse.parse(filename)
new_name = "{}.dat".format(filename[:-5])
trace.write_dat(new_name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment