ivoflipse / Pawlabeling

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

Allow overwriting of existing contacts #71

Closed ivoflipse closed 10 years ago

ivoflipse commented 10 years ago

If contacts already exist, we just want to overwrite their label, possibly whether they're invalid or not.

So rearrange create_contact, such that it will check whether the contact already exists, if so update the fields that have changed. Else, it will go through as normally and create the contact.

ivoflipse commented 10 years ago

I've made create_measurement track and store contacts. That way if I call get_contacts, I really get all contacts, so I can also get the right shape of the feet. This does mean that I need to change the workflow, since now I don't want to create a new contact when I've labeled them, but update the old one.

So this issue got even more relevant :-)

ivoflipse commented 10 years ago

While model.py is still a bit messy, I made it so when a measurement is created, we also track the contacts and store those. So now during processing, you're always updating, not creating contacts.

This latest fix should at least change the contact_label. If we make changes to the tracking algorithm, such that we have a different number of contacts, I will probably have to drop the table and the data and insert everything again.