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):