ivoflipse / Pawlabeling

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

Drop old contacts when searching for new ones #112

Closed ivoflipse closed 10 years ago

ivoflipse commented 10 years ago

I was experimenting with human feet and my tracking didn't work as intended. So I changed my tracking parameters et voila: it worked! I labeled the contacts it found, but when I stored the results, it would only overwrite the results for contacts with existing id's. The half feet, that used to be contacts 3 and 4 still existed in the table.

So dump all the contacts and simply write new ones to the table. That prevents a whole lot of mess.

image

ivoflipse commented 10 years ago

The issue elsewhere, about not being able to delete all rows in a table, is giving me issues here as well.

I also noticed that model.contacts_table isn't being used at all, which probably goes for the other tables in model. I thought perhaps I could just redefine it somehow to overwrite the existing table.