ivoflipse / Pawlabeling

Tool for processing and analyzing pressure measurements
Other
18 stars 1 forks source link

The model makes too many copies of the table #132

Closed ivoflipse closed 10 years ago

ivoflipse commented 10 years ago

Currently every model (measurement, contact etc) is a subclass of the table and all make their own connection to the table. That looks really weird when it get's closed and is probably unnecessary as well

ivoflipse commented 10 years ago

I've moved the connection with Pytables to the settings and made sure every subclass simply uses that connection. That way I don't really have to change anything else.

Sadly, my tests are failing, because of this same problem (and updating to PyTables 3.1.1): http://stackoverflow.com/questions/23780134/using-pandas-and-pytables-3-1-1-at-the-same-time-re-opening-an-already-open-f

So now I have to figure out what's going on...

ivoflipse commented 10 years ago

Turns out my tests locally were using Python 32 bit instead of 64 bit. On Github some file hadn't been properly renamed, but tests are passing again, so this is solved