LibCity / Bigscity-LibCity-Datasets

Traffic data processing tools in LibCity
Apache License 2.0
190 stars 21 forks source link

about the field 'dyna_id' in the result file xx.dyna #43

Closed nehSgnaiL closed 2 years ago

nehSgnaiL commented 2 years ago

Hi, thanks for the incredible work. It seems the expected field was missing during the transform process.

Describe the bug

The field 'dyna_id' in the result file xx.dyna generated by foursquare.py was None. ref. code: https://github.com/LibCity/Bigscity-LibCity-Datasets/blob/145f66256a9cc056826abe06d33d8d0e13c926cf/foursquare.py#L63

Code to Reproduce

https://github.com/LibCity/Bigscity-LibCity-Datasets/blob/145f66256a9cc056826abe06d33d8d0e13c926cf/foursquare.py

Expected behavior

dyna_id should be clarified in dyna['dyna_id'] = dyna.index or other ways.

Actual result

output file (sample):

dyna_id,type,time,entity_id,location ,trajectory,2012-04-03T14:00:09Z,0,2388 ,trajectory,2012-04-04T14:00:09Z,0,2388 ...

Versions