ivoflipse / Pawlabeling

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

Error with self.average_data in 2d view and COP #31

Closed ivoflipse closed 11 years ago

ivoflipse commented 11 years ago

When switching between dogs on the analysis panel, there seems to be an error with the average_data, possibly related with how its being reset and gets called before new data is actually loaded

ivoflipse commented 11 years ago

When trying to get the shape of self.average_data in twodimviewwidget.update I get an error:

C:\Anaconda\lib\site-packages\numpy\core\_methods.py:57: RuntimeWarning: invalid value encountered in double_scalars ret = ret / float(rcount)

and a shape of ()

Which means that the utility.calculate_average_data function has an error somewhere. But when I look at the shapes of the data I try to stuff into the (100, 100, 100) average_data array, none of them is too big or anything like that. Though the 100 for the Z direction might not be enough for humans (34L, 22L, 83L), (33L, 22L, 78L)

ivoflipse commented 11 years ago

It turned out that the outlier filter function filters contacts if there's only one contact, which was... unexpected. Still it shows that some events should do some checking before they activate follow ups on empty data

ivoflipse commented 11 years ago

The problem seems to have been solved, but I think I need to rethink how these things get updated.