diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 9de222f..afff24e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -10,6 +10,14 @@ adheres to `Semantic Versioning `_. +[v0.5.8] +-------- + +Hotfix +====== + +- plot figure saving fixed + [v0.5.7] -------- diff --git a/pyproject.toml b/pyproject.toml index 99f6089..953a4bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,9 @@ [tool.poetry] name = "scalewiz" -version = "0.5.7" +version = "0.5.8" description = "A graphical user interface for chemical performance testing designed to work with Teledyne SSI MX-class HPLC pumps." readme = "README.rst" -license = "GPL-3.0-or-later" +license = "GPL-3.0" authors = ["Alex Whittington "] packages = [ {include = "scalewiz"} diff --git a/scalewiz/components/evaluation_window.py b/scalewiz/components/evaluation_window.py index 02ad3a0..17142ae 100644 --- a/scalewiz/components/evaluation_window.py +++ b/scalewiz/components/evaluation_window.py @@ -119,7 +119,7 @@ def save(self) -> None: ) parent_dir = Path(self.editor_project.path.get()).parent plot_output = Path(parent_dir, plot_output).resolve() - self.plot_view.fig.savefig(plot_output) + self.plot_view.fig.savefig(str(plot_output)) self.editor_project.plot.set(str(plot_output)) # update log log_output = ( diff --git a/scalewiz/helpers/score.py b/scalewiz/helpers/score.py index 0f958f0..fb89363 100644 --- a/scalewiz/helpers/score.py +++ b/scalewiz/helpers/score.py @@ -100,7 +100,7 @@ def score(project: Project, log_widget: ScrolledText = None, *args) -> None: f"Result: 1 - ({int_psi} - {baseline_area}) / {avg_protectable_area}" ) log.append(f"Result: {result} \n") - trial.result.set(f"{result:.2f}") + trial.result.set(result) if isinstance(log_widget, tk.Text): to_log(log, log_widget)