Closed anhtuduong closed 4 weeks ago
@thuhoainguyen I just added an utility called log.py. Remember to use git pull
to pull the update i made before continuing to work!
@anhtuduong I tried git status to see what you changed, however, I see no log.py file added:
@anhtuduong the file name "dataset_missingfiles" is the dataset file, I just renamed it because I am trying to download again the dataset file from terminal which didn't work out.
@thuhoainguyen You should not rename that
@thuhoainguyen I implemented the log.py but you have to use command git pull
to pull the update. For now you should not worry about this debugging utility because I will do it for you.
Ah I got that. I just git pull
it
@thuhoainguyen Please pull the latest update, I splitted the function resample_image
to different file. Also I started to add some debugging information. This way when the code executes, we can see more info in the terminal. Please continue to add.
@anhtuduong I am not sure how to execute the log.py
file, can you be more specific on what should i do now?
@thuhoainguyen You don't execute that log file, please try to read it (very short) to understand what it does. Then go to the other 2 files where I actually use the log.py
@anhtuduong I see what is the log file will do in the resample_image.py
file. It will show the info or basically what each code line is doing so we can keep track of the workflow, the error, etc.
When executing any code in the terminal, we want to print out the more info the better for understanding and debugging the execution. We can just use function
print()
in python to print out the info we need. In practice we should have a way to print out the info but with different level:INFO
,WARNING
,ERROR
. And all the informations will be put it into a log file so we can inspect that whenever we want. I will help you integrate this in the code.