From: Thomas Fillon Date: Thu, 17 Jul 2014 07:58:40 +0000 (+0200) Subject: fix(tools/buffering.py): provide compatibility with pytables 2.3.1 (debian package) X-Git-Tag: 0.6~4^2~56 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b0e72ea0df7d9ff4f96afc35591215a21cec16c5;p=timeside.git fix(tools/buffering.py): provide compatibility with pytables 2.3.1 (debian package) --- diff --git a/.travis.yml b/.travis.yml index c62fd64..95a619d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,13 +10,12 @@ before_install: - sudo apt-get -qq update - sudo apt-get install python-setuptools - sudo apt-get install -qq python-numpy python-scipy python-matplotlib - - sudo apt-get install -qq libhdf5-serial-dev python-h5py + - sudo apt-get install -qq libhdf5-serial-dev python-h5py python-tables - sudo apt-get install -qq python-gst0.10 gstreamer0.10-plugins-good gstreamer0.10-gnonlin gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad # command to install dependencies install: # - "pip install -r requirements.txt --use-mirrors" -- sudo pip install numexpr - python setup.py install diff --git a/README.rst b/README.rst index 5b0a117..3574305 100644 --- a/README.rst +++ b/README.rst @@ -292,7 +292,7 @@ Dependencies Needed:: python (>=2.7) python-setuptools python-numpy python-scipy python-h5py python-matplotlib python-imaging - python-simplejson python-yaml python-mutagen libhdf5-serial-dev python-numexpr python-gst0.10 + python-simplejson python-yaml python-mutagen libhdf5-serial-dev python-tables python-gst0.10 gstreamer0.10-gnonlin gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly Optional:: diff --git a/timeside/tools/buffering.py b/timeside/tools/buffering.py index f0e8320..b3b913f 100644 --- a/timeside/tools/buffering.py +++ b/timeside/tools/buffering.py @@ -29,7 +29,7 @@ class BufferTable(object): self._tempfile = NamedTemporaryFile(mode='w', suffix='.h5', prefix='ts_buf_', delete=True) - self.fileh = tables.open_file(self._tempfile.name, mode='w') + self.fileh = tables.openFile(self._tempfile.name, mode='w') if not array_names: array_names = []