"...include/git@developer.sourcefind.cn:yangql/googletest.git" did not exist on "db405ff8c3c694090d0ee474fc4d55f36bb7a6f7"
Unverified Commit d637c5e2 authored by Michael Baumgartner's avatar Michael Baumgartner Committed by GitHub
Browse files

Merge pull request #137 from machur/fix_seg_suffix

Safer filtration of cases with _seg suffix
parents 262ec5a4 31efcc2b
...@@ -47,7 +47,7 @@ def get_np_paths_from_dir(directory: Pathlike) -> List[str]: ...@@ -47,7 +47,7 @@ def get_np_paths_from_dir(directory: Pathlike) -> List[str]:
if not case_paths: if not case_paths:
logger.error(f"Did not find any npz files.") logger.error(f"Did not find any npz files.")
raise RuntimeError(f"Did not find any npz files. Folder: {directory}") raise RuntimeError(f"Did not find any npz files. Folder: {directory}")
case_paths = [f for f in case_paths if "_seg" not in f] case_paths = [f for f in case_paths if not f.endswith("_seg")]
case_paths.sort() case_paths.sort()
return case_paths return case_paths
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment