thinhong / cpp_training

C++ training
1 stars 0 forks source link

Set path to the folder you want to save output file #4

Closed choisy closed 3 years ago

choisy commented 3 years ago

Questions:

  1. does it need to be an absolute path or is a relative path OK?
  2. does the path need to exist or will it be created if it does not?
  3. what happens if there are already simulations outputs in the folder? Do they get overwritten?
thinhong commented 3 years ago
  1. Thanks, I always use absolute path because I don't know exactly where it is when it runs, I'll investigate this issue
  2. No, it does not need to exist, if it does not it will be created
  3. Yes, they will be overwritten
choisy commented 3 years ago
  1. OK, it means that relative paths are not recognized right?
choisy commented 3 years ago

Good to add these three points in the README I think.

thinhong commented 3 years ago

I just tried it and find out it works with relative paths. If your current working directory is the cpp_training, when we run ./DiscreteTimeModel and the input file is stored in cpp_training/config/vaccination.json we can use config/vaccination.json for input. We can also type output or test for the output folder it will create new folder in the current cpp_training folder

choisy commented 3 years ago

Great news! OK, can you add these 3 points in the README then? And don't forget to close this issue once you've fully addressed it.