From 50486238f45ee8660878fc51df94da70403764e6 Mon Sep 17 00:00:00 2001 From: Donald Campbell <125581724+donaldcampbelljr@users.noreply.github.com> Date: Mon, 30 Dec 2024 12:55:48 -0500 Subject: [PATCH] add option to pass output_dir to table command --- pipestat/pipestat.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pipestat/pipestat.py b/pipestat/pipestat.py index 7a8e6e0b..e5a5fa5f 100644 --- a/pipestat/pipestat.py +++ b/pipestat/pipestat.py @@ -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]