Skip to content

Running a classifier with an existing output path results in an error #417

@LevitatingBusinessMan

Description

@LevitatingBusinessMan

When a classifier is run, and an existing output file is selected, the program gives the messages Error : Process failed.

These are relevant log files.

INFO|2025-11-21T16:40:15.799|band_classification|band_classification|1390|end; prediction: /tmp/semiautomatic_classification/remotior_sensus_1121npokmai8/t20251121_164014193778_7513.vrter|212|run_classifier: /home/rein/Downloads/test.tif
INFO|2025-11-21T16:40:31.090|band_classification|band_classification|1281|start
ERROR|2025-11-21T16:40:31.104|shared_tools|prepare_process_files|248|existing path /home/rein/Downloads/test.tif
ERROR|2025-11-21T16:40:31.104|classification_tab|run_classifier|517|existing path /home/rein/Downloads/test.tif

The issue is found in Remotior Sensus: https://github.com/semiautomaticgit/remotior_sensus/blob/ea618e293ed0dc59b9f47d114c99b9f34ab10cfa/src/remotior_sensus/util/shared_tools.py#L247-L250

I think it should overwrite the .tif correctly or give an appropriate error message.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions