Skip to content

Commit

Permalink
Use internal lz4
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Teng committed May 29, 2017
1 parent d6d8b45 commit 4505920
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arctic/store/_pandas_ndarray_store.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import ast
import logging

import lz4
import numpy as np
from bson.binary import Binary
from pandas import DataFrame, Series, Panel
Expand Down Expand Up @@ -119,7 +118,7 @@ def get_info(self, version):

def read_segment_last_dt(self, version):
if 'segment_index' in version:
index = np.fromstring(lz4.decompress(version['segment_index']), dtype=INDEX_DTYPE)
index = np.fromstring(decompress(version['segment_index']), dtype=INDEX_DTYPE)
dt_index = self._datetime64_index(index)
if dt_index:
return index[dt_index][-1]
Expand Down

0 comments on commit 4505920

Please sign in to comment.