djgroen / flee

flee agent-based modelling code
BSD 3-Clause "New" or "Revised" License
6 stars 7 forks source link

Change conflict zones and towns to IDP camps and vice versa #105

Open cspgdds opened 4 months ago

cspgdds commented 4 months ago

There are instances of conflict zones and towns turning to IDP camps and vice verse. Require a function introducing these changes.

djgroen commented 1 month ago

@cspgdds I am just wondering how we should encode this. Would it perhaps make sense to encode this change as part of conflicts.csv, changing a conflict value to -1 whenever a location has become an IDP camp?

cspgdds commented 1 month ago

@djgroen I think that could work, but how do we define in locations.csv file? Because one location can be a conflict zone, then change to an idpcamp. Would it have two location types? or another column to indicate idpcamp date?

djgroen commented 1 month ago

@cspgdds locations.csv would only contain the initial location type. Conflicts.csv would then supersede it.

Alternatively we can add in a new input file type, location_changes.csv, and leave conflicts.csv as it is.

Which of the two approaches would you like me to implement here?

cspgdds commented 1 month ago

@djgroen if we need to change conflicts.csv manually, then I would prefer location_changes.csv.

djgroen commented 1 month ago

@cspgdds Okay, this change is now incorporated and documented. Feel free to test it out!

cspgdds commented 1 month ago

@djgroen thank you. I will test it and let you know if there is anything.