trackintel icon indicating copy to clipboard operation
trackintel copied to clipboard

id offset for generator functions

Open henrymartin1 opened this issue 2 years ago • 1 comments

The trackintel generator functions (generate_triplegs, generate_trips, ...) assign an ID to every instance. This ID plays a key role in many trackintel functions. If we want to merge trips from different sources/datasets to processes them jointly, we have to make sure that all trips have unique IDs. Therefore it would be great to have an ID offset as a parameter that allows IDs that do not start at 0.

henrymartin1 avatar May 18 '22 16:05 henrymartin1

I am kind of against it, I see the motivation but adding the extra keyword is in my opinion not much more convenient than just using gdf.index += offset.

bifbof avatar May 20 '22 19:05 bifbof