Skip to content

Commit

Permalink
Temp fix for tracking microsalt cases in tb (#2840)(patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
seallard authored Jan 15, 2024
1 parent cb031f8 commit 9834728
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cg/meta/workflow/microsalt/microsalt.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,10 @@ def get_analyses_result_dirs(self, case_id: str) -> list[str]:
matches: list[str] = [d for d in os.listdir(results_dir) if d.startswith(project_id)]
if not matches:
LOG.error(f"No result directory found for {case_id} with project id {project_id}")
raise MissingAnalysisDir
return matches

def get_case_path(self, case_id: str) -> Path:
results_dir: Path = self.get_results_dir()
matching_cases: list[str] = self.get_analyses_result_dirs(case_id)
case_dir: str = max(matching_cases, default=None)
case_dir: str = max(matching_cases, default="")
return Path(results_dir, case_dir)

0 comments on commit 9834728

Please sign in to comment.