The Python script utils/find_all_linked_errors.py currently has _data/mapping.txt as a hardcoded location (as well as the output directory for mapping files). This is bad practice. Mainly, as it's not transparent that the script uses these locations.
The prefered solution is for example taking the file and output directory as arguments. This way, you would see their usage in Makefile and would not forget to adjust them in case of moving either the input/output files or the script.
Note below: I found this as there was a missing dependency in Makefile for the mapping.txt file (the file was modified but Make did not rebuild the mapping). If the file would have been given as an input to the script, it may have been easier not to forget it.
Anyway, this is nothing severe. At some point of doing related stuff (preferebly after the paper deadline :-P), I'd recommend adjusting it.
The Python script
utils/find_all_linked_errors.py
currently has_data/mapping.txt
as a hardcoded location (as well as the output directory for mapping files). This is bad practice. Mainly, as it's not transparent that the script uses these locations.The prefered solution is for example taking the file and output directory as arguments. This way, you would see their usage in
Makefile
and would not forget to adjust them in case of moving either the input/output files or the script. Note below: I found this as there was a missing dependency inMakefile
for themapping.txt
file (the file was modified but Make did not rebuild the mapping). If the file would have been given as an input to the script, it may have been easier not to forget it.Anyway, this is nothing severe. At some point of doing related stuff (preferebly after the paper deadline :-P), I'd recommend adjusting it.