You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When converting with a custom tessellation (not from the tiler module), FlowDataFrame init raises the following:
ValueError Traceback (most recent call last)
Cell In[68], line 1
----> 1 fdf = skmob.FlowDataFrame(data=flow, tessellation=tessellation)
File [~/Programming/scikit-mobility/skmob/core/flowdataframe.py:153](https://file+.vscode-resource.vscode-cdn.net/home/caden/Programming/qwang-research/working/data_sourcing/~/Programming/scikit-mobility/skmob/core/flowdataframe.py:153), in FlowDataFrame.__init__(self, data, origin, destination, flow, datetime, tile_id, timestamp, tessellation, parameters)
149 destination = self[constants.DESTINATION]
151 if not all(origin.isin(self._tessellation[constants.TILE_ID])) or \
152 not all(destination.isin(self._tessellation[constants.TILE_ID])):
--> 153 raise ValueError("Inconsistency - origin and destination IDs must be present in the tessellation.")
155 # Cleaning the index to make sure it is incremental
156 self._tessellation.reset_index(inplace=True, drop=True)
ValueError: Inconsistency - origin and destination IDs must be present in the tessellation.
Error was resolved by forking library and extracting flows and tessellations before FlowDataFrame init. The destination column in flows was type 'float' while both origin and tile_ID were type 'int64'. Converting destination to type 'int64' and then initializing FlowDataFrame resovled the issue.
The text was updated successfully, but these errors were encountered:
When converting with a custom tessellation (not from the tiler module), FlowDataFrame init raises the following:
Error was resolved by forking library and extracting flows and tessellations before FlowDataFrame init. The destination column in flows was type 'float' while both origin and tile_ID were type 'int64'. Converting destination to type 'int64' and then initializing FlowDataFrame resovled the issue.
The text was updated successfully, but these errors were encountered: