asu-trans-ai-lab / grid2demand

A tool for generating zone-to-zone travel demand based on grid zones and gravity model
Apache License 2.0
71 stars 21 forks source link

File duplication issue #16

Closed aditrademark closed 9 months ago

aditrademark commented 11 months ago

When the grid2demand code is run multiple times, the code generates duplicates of the output files instead of overwriting them. For example, the duplicates appear as zone_1.csv, zone_1_1.csv and so on. I believe we discussed this issue last week and came to the conclusion that it is tedious for the user to rename, delete and reorganize the output files. Your effort to fix this would be greatly appreciated!

xyluo25 commented 9 months ago

Hi Aditya, Yes, we are careful not to overwrite user-input data while generating additional fields from these input files. As you've noted in your statement, we create files named 'zone.csv', 'zone_1.csv', and 'zone_1_1.csv' specifically to prevent overwriting any existing files.