Skip to content

Commit

Permalink
feat(api): reformat and add integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
salemsd committed Dec 17, 2024
1 parent 2ba6fa3 commit f1e11fa
Show file tree
Hide file tree
Showing 4 changed files with 190 additions and 200 deletions.
3 changes: 2 additions & 1 deletion src/antares/exceptions/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ def __init__(self, study_id: str, job_id: str) -> None:
self.message = f"Simulation failed for {study_id} and job {job_id}"
super().__init__(self.message)


class OutputsRetrievalError(Exception):
def __init__(self, study_id: str, message: str) -> None:
self.message = f"Could not get outputs for {study_id}: " + message
super().__init__(self.message)
super().__init__(self.message)
2 changes: 1 addition & 1 deletion src/antares/model/study.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def read_outputs(self) -> list[Output]:
Returns: Output list
"""
outputs = self._output_service.read_outputs()
self._outputs = {output.name : output for output in outputs}
self._outputs = {output.name: output for output in outputs}
return outputs

def get_outputs(self) -> dict[str, Output]:
Expand Down
Loading

0 comments on commit f1e11fa

Please sign in to comment.