From cfa956e521eb6be1bed4e870283f0d77ede1a7b9 Mon Sep 17 00:00:00 2001 From: ARF Date: Thu, 19 Mar 2015 10:21:22 +0100 Subject: [PATCH] pass kwargs to cache_factor() through to bcolz.carray() --- bquery/ctable.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bquery/ctable.py b/bquery/ctable.py index 126cb8a..fd5b899 100644 --- a/bquery/ctable.py +++ b/bquery/ctable.py @@ -32,7 +32,7 @@ def cache_valid(self, col): else: return False - def cache_factor(self, col_list, refresh=False): + def cache_factor(self, col_list, refresh=False, **kwargs): """ Existing todos here are: these should be hidden helper carrays As in: not normal columns that you would normally see as a user @@ -61,14 +61,14 @@ def cache_factor(self, col_list, refresh=False): carray_factor = \ bcolz.carray([], dtype='int64', expectedlen=self.size, - rootdir=col_factor_rootdir, mode='w') + rootdir=col_factor_rootdir, mode='w', **kwargs) _, values = \ ctable_ext.factorize(self[col], labels=carray_factor) carray_factor.flush() carray_values = \ bcolz.carray(values.values(), dtype=self[col].dtype, - rootdir=col_values_rootdir, mode='w') + rootdir=col_values_rootdir, mode='w', **kwargs) carray_values.flush() def unique(self, col_or_col_list):