Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not change the capacity of evacuation center with evacuation_centers.json #58

Open
HouShikon opened this issue Aug 8, 2024 · 3 comments
Assignees
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@HouShikon
Copy link
Collaborator

The capacity of evacuation centers stay the same number even if make changes in evacuation_centers.json.
I changed all the capacity in evacuation_centers.json
image
But the result in evacuation.csv shows all the evac_capacity are still 200
image
I'm not sure it is a bug or I just looked in wrong file.

@HouShikon HouShikon added the invalid This doesn't seem right label Aug 8, 2024
@HouShikon HouShikon added the bug Something isn't working label Aug 8, 2024
@caranha
Copy link
Owner

caranha commented Aug 12, 2024

First find the place in the code where evacuation centers are initialized. Where is it? Is the information correct at this stage? Where is the data being read from?

Depending on whether the information is correct at initialization, the next step of debugging will be different.

@HouShikon
Copy link
Collaborator Author

After checking with the code, I realized every time I changed the JSON, I need to delete the map cache and rebuild the map. That's where I forgot to do.
This issue can be closed

@caranha
Copy link
Owner

caranha commented Aug 29, 2024

You should not need to delete the map cache manually. This should be done programmatically.

Please check the part of the code that loads the map cache, you should add code to this part of the program to check the timestamp of the map cache file, and the time stamp of the JSON, and if the time stamp of the JSON is newer than the time stamp of the map cache, the map cache should be re-created.

The issue cannot be closed quite yet. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants