teamtomo / cryotypes

Super-simple data structures for cryo-electron tomography data
Other
4 stars 2 forks source link

Coerce incomplete data to full cryopose spec #14

Closed alisterburt closed 2 years ago

alisterburt commented 2 years ago

We have the validators @brisvag added, what about coercing by adding missing columns?

brisvag commented 2 years ago

Yes!

alisterburt commented 2 years ago

closed by #15

alisterburt commented 2 years ago

or not? there is some coersion logic in the constructor though, not sure when it was added

brisvag commented 2 years ago

Yes, it shoudl be good; if you pass coerce=True then you should get a df with all the required columns populated; otherwise, you get an error.