Skip to content

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

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:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions