Skip to content

missing error handling of ground truth labels with a slash #176

@heavenduck

Description

@heavenduck

Where

The error occurs in the statistics phase, when the ground_truth_label contains a / in the name like: ground_truth_label: "Parameter(0=mod/well,1=poor)"

What happens

When pathlib constructs the path output_dir / "roc-curve_Parameter(0=mod/well,1=poor)=0.svg", the / inside the string is treated as a directory separator.
It tries to open a file inside a non-existent subdirectory roc-curve_Parameter(0=mod/.

Possible fix:

  1. Don't allow a / in the ground_truth_label setting and raise an error in every phase
  2. Fix all save or export code lines and replace the / with another character like _

In the statistics phase it applies to the following lines of code:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions