ivoflipse / Pawlabeling

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

Refactor the contactmodel's restore function #153

Closed ivoflipse closed 10 years ago

ivoflipse commented 10 years ago

Restore could easily be replaced by going through the items in the contact dictionary and then settings the attributes on the Contact class instance.

Only contact_id and frames are odd ducks, which could be caught using a simple if/else statement or better yet, should be refactored so they adhere to the same format as the rest.

With regards to contact_id, I wonder why I ever bothered to split it like that in the first place

ivoflipse commented 10 years ago

The same goes for to_dict (and off course also for the measurement model, which has the same problems