With trajs being a Trajectories object, this fails:
import pandas as pd
with pd.get_store('with_gaps.h5') as store:
store['trajs'] = trajs
raises:
TypeError: cannot properly create the storer for:
[_TYPE_MAP] [group->/trajs (Group) '',
value-><class'sktracker.trajectories.trajectories.Trajectories'>,
format->fixed,
append->False,kwargs->{'encoding': None}]
I think it's a bug, because users will assume they can do that. Of course, the following works smoothly:
import pandas as pd
with pd.get_store('with_gaps.h5') as store:
store['trajs'] = pd.DataFrame(trajs)
I'll post something in pandas to see if there's a way around that on their side (after all, sub classing should be supported). I'm not sure what to do on our side... Of course, objectsio should take care of that, but I'd feel better if that kind of TypeError won't appear at all