-
Notifications
You must be signed in to change notification settings - Fork 47
[Cleanup] Remove commented-out dead code in batchprocess.py #105
Copy link
Copy link
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels