Git Product home page Git Product logo

pytablestimeseries's Introduction

usage:

    historyStorage = PyTablesTimeSeries(historyFilepath)
    # write:
    self.historyStorage.append(keyName, fieldName, duration, value, timestamp)
    # read:
    selection = self.historyStorage.selectTimeSlice(keyName, fieldName, duration, begin_time, end_time)


currently isn't very useful because after running for two minutes or so under load (multithreaded, although i don't see why that should matter because i'm doing everything in a lock, unless PyTables is keeping a global cache itself), i keep getting errors like this (the line numbers from this project have changed since this error was captured):

  File "atr/pytablestimeseries.py", line 94, in _wrap
    kw['table'] = self._getTable(item, field, duration)
  File "atr/pytablestimeseries.py", line 42, in _getTable
    durationGroup = getattr(root, str(duration))
  File "/usr/lib/python2.7/dist-packages/tables/group.py", line 826, in __getattr__
    return self._f_getChild(name)
  File "/usr/lib/python2.7/dist-packages/tables/group.py", line 700, in _f_getChild
    return self._v_file._getNode(childPath)
  File "/usr/lib/python2.7/dist-packages/tables/file.py", line 1035, in _getNode
    "stale weak reference to dead node ``%s``" % nodePath
AssertionError: stale weak reference to dead node ``/0``


note that line 97 of _wrap is AFTER i have closed and reopened the file! So i don't see why it isn't reset. I'm using Ubuntu package libhdf5-serial-1.8.4 version 1.8.4-patch1-2ubuntu3, and PyTables 2.3.1.




other time series persistence packages for python:

http://pytseries.sourceforge.net/lib.database.html


some commands useful for installing:
    pip install decorator # http://pypi.python.org/pypi/decorator
    sudo aptitude install python-numexpr
    http://sourceforge.net/projects/pytables/files/pytables/2.3.1/
    sudo dpkg -i ~root/python-tables_2.3.1-1.1_amd64.deb

pytablestimeseries's People

Contributors

pietrust avatar

Stargazers

Bayle Shanks avatar

Watchers

Bayle Shanks avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.