From f9460d35e464c2a2e51375d2d2904ba61c2c6ee9 Mon Sep 17 00:00:00 2001 From: Donald Campbell <125581724+donaldcampbelljr@users.noreply.github.com> Date: Mon, 10 Feb 2025 15:21:07 -0500 Subject: [PATCH] fix #215, update changelog and version to "0.12.1" --- docs/changelog.md | 4 ++++ pipestat/_version.py | 2 +- pipestat/pipestat.py | 16 ++++++++-------- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index d90fd1be..79ff3a64 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,6 +2,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) format. +## [0.12.1] - 2025-02-10 +### Fixed +- fix checking for records during summarize failing because aggregate_results file had not yet been resolved [#215](https://github.com/pepkit/pipestat/issues/215) + ## [0.12.0] - 2025-01-16 ### Fixed - portable report now has proper file extension in messaging. diff --git a/pipestat/_version.py b/pipestat/_version.py index ea370a8e..def467e0 100644 --- a/pipestat/_version.py +++ b/pipestat/_version.py @@ -1 +1 @@ -__version__ = "0.12.0" +__version__ = "0.12.1" diff --git a/pipestat/pipestat.py b/pipestat/pipestat.py index e5a5fa5f..8a7bbe7d 100644 --- a/pipestat/pipestat.py +++ b/pipestat/pipestat.py @@ -938,14 +938,6 @@ def summarize( """ - # Before proceeding check if there are any results at the specified backend - try: - current_results = self.select_records() - if len(current_results["records"]) < 1: - raise PipestatSummarizeError(f"No results found at specified backend") - except Exception as e: - raise PipestatSummarizeError(f"PipestatSummarizeError due to exception: {e}") - if output_dir: self.cfg[OUTPUT_DIR] = output_dir @@ -956,6 +948,14 @@ def summarize( self.check_multi_results() + # Before proceeding check if there are any results at the specified backend + try: + current_results = self.select_records() + if len(current_results["records"]) < 1: + raise PipestatSummarizeError(f"No results found at specified backend") + except Exception as e: + raise PipestatSummarizeError(f"PipestatSummarizeError due to exception: {e}") + html_report_builder = HTMLReportBuilder(prj=self, portable=portable) report_path = html_report_builder( pipeline_name=self.cfg[PIPELINE_NAME],