Skip to content

Commit

Permalink
add option to pass output_dir to table command
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldcampbelljr committed Dec 30, 2024
1 parent 8e9dee8 commit 5048623
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pipestat/pipestat.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,12 +984,16 @@ def check_multi_results(self):
@require_backend
def table(
self,
output_dir: Optional[str] = None,
) -> List[str]:
"""
Generates stats (.tsv) and object (.yaml) files.
:param str output_dir: overrides output_dir set during pipestatManager creation.
:return list[str] table_path_list: list containing output file paths of stats and objects
"""
if output_dir:
self.cfg[OUTPUT_DIR] = output_dir

self.check_multi_results()
pipeline_name = self.cfg[PIPELINE_NAME]
Expand Down

0 comments on commit 5048623

Please sign in to comment.