Browse Source

Remove compression.

Messes up extraction, since we random access for the timestamp binary
search.  In the future, maybe switching to multiple tables (one for
timestamp, one for compressed data) would be smart.
tags/replace-pytables
Jim Paris 11 years ago
parent
commit
a85b273e2e
1 changed files with 2 additions and 8 deletions
  1. +2
    -8
      nilmdb/nilmdb.py

+ 2
- 8
nilmdb/nilmdb.py View File

@@ -324,20 +324,14 @@ class NilmDB(object):
# 3 months worth of data at 8 KHz. It's OK if this is wrong.
exp_rows = 8000 * 60*60*24*30*3

# Use a light compression filter. zlib is supported
# everywhere; blosc may be better in the future.
compfilt = tables.Filters(complevel = 1,
complib = 'zlib')

# Create the table
try:
table = self.h5file.createTable(group,
node,
description = desc,
expectedrows = exp_rows,
createparents = True,
filters = compfilt)
except (AttributeError, TypeError):
createparents = True)
except AttributeError:
# Trying to create e.g. /foo/bar/baz when /foo/bar is already
# a table raises this error.
raise ValueError("error creating table at that path")


Loading…
Cancel
Save