Commit b8124d36 authored by Aurélien Campéas's avatar Aurélien Campéas
Browse files

snapshot: a small comment to help the reader

parent b625cd286494
......@@ -43,6 +43,7 @@ class Snapshot(SeriesServices):
return None
# use `view` as a workarround for "cannot include dtype 'M' in a buffer"
indexes = np.ascontiguousarray(ts.index.values).view(np.uint8).data.tobytes()
# will be a `long` or 4 octets structure
indexes_size = struct.pack('!L', len(indexes))
if self.isstr:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment