Description
batchprocess.py contains several lines of commented-out code that appear to be leftover from a previous refactor (lines 53–57):
# outfile_base = f[1][:15] + "_AnalyticMS_SR"
# ndwi_outfile = "data/output/{}/{}/{}".format(file_year, file_month, outfile_base + "_NDWI.tif")
# ndwi_class_outfile = "data/output/{}/{}/{}".format(file_year, file_month, outfile_base + "_NDWI_classified.tif")
# ndwi = rt.calculate_ndwi(f[0], ndwi_outfile, plot=False)
# ndwi_class = rt.ndwi_classify(f[0], ndwi_class_outfile, plot=False)
These lines are never executed and serve no functional purpose. Keeping them adds noise and makes the file harder to read for new contributors.
Suggested Fix
Remove the commented-out lines entirely. If the logic is still relevant for future use, it should be tracked as a separate issue or TODO with proper context rather than left as dead code.
Description
batchprocess.pycontains several lines of commented-out code that appear to be leftover from a previous refactor (lines 53–57):These lines are never executed and serve no functional purpose. Keeping them adds noise and makes the file harder to read for new contributors.
Suggested Fix
Remove the commented-out lines entirely. If the logic is still relevant for future use, it should be tracked as a separate issue or TODO with proper context rather than left as dead code.