Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added reading of timestep to parq_show.py

  • Loading branch information...
commit b5f5a9b8ca03bc6b9f431cbe80a705649e0dfc13 1 parent 79c4815
@Reen authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 parq_show.py
View
5 parq_show.py
@@ -16,8 +16,8 @@
row_length = 24
def mat_get_header(infile, do_print = True):
- data = infile.read(12)
- version, filetype, vstrlen = struct.unpack("=III", data)
+ data = infile.read(16)
+ version, filetype, timestep, vstrlen = struct.unpack("=IIII", data)
if version != 1:
raise Exception("Unknown parq matrix file version.")
if filetype == 1:
@@ -37,6 +37,7 @@ def mat_get_header(infile, do_print = True):
data = {
"version" : version,
"filetype" : filetype,
+ "timestep" : timestep,
"githead" : githead,
"min_particles" : min_particles,
"max_particles" : max_particles,
Please sign in to comment.
Something went wrong with that request. Please try again.