ivoflipse / Pawlabeling

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

Check whether all id's are unique #104

Closed ivoflipse closed 10 years ago

ivoflipse commented 10 years ago

Preferably before creating a new row/group, check whether the ID is actually unique. If not, throw an error or something, because well, that's not something we want to have happen and I don't have a solution for it right away.

Probably you'd simply want it to generate a new 'new' id.

ivoflipse commented 10 years ago

I added checks to all create_row functions, to first check if the id's are available or not. For now it will raise an assertionerror, though obviously the function that 'gets' new id's should just have a unit test...