From 9d1a557474c455d2fcf1c8b30b832796065c395a Mon Sep 17 00:00:00 2001 From: hrntsm Date: Tue, 29 Nov 2022 16:36:52 +0900 Subject: [PATCH 1/2] Add check python library setting --- Tunny/Settings/TunnySettings.cs | 1 + Tunny/UI/OptimizationWindow.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Tunny/Settings/TunnySettings.cs b/Tunny/Settings/TunnySettings.cs index f57902cf..8724e62d 100644 --- a/Tunny/Settings/TunnySettings.cs +++ b/Tunny/Settings/TunnySettings.cs @@ -11,6 +11,7 @@ public class TunnySettings public Result Result { get; set; } = new Result(); public string StudyName { get; set; } = "study1"; public string StoragePath { get; set; } = "/Fish.db"; + public bool CheckPythonLibraries { get; set; } = true; public void Serialize(string path) { diff --git a/Tunny/UI/OptimizationWindow.cs b/Tunny/UI/OptimizationWindow.cs index 18de17e2..2d6f4e92 100644 --- a/Tunny/UI/OptimizationWindow.cs +++ b/Tunny/UI/OptimizationWindow.cs @@ -33,7 +33,7 @@ public OptimizationWindow(TunnyComponent component) InitializeUIValues(); PythonInstaller.Path = _component.GhInOut.ComponentFolder; - if (!PythonInstaller.CheckPackagesIsInstalled()) + if (_settings.CheckPythonLibraries && !PythonInstaller.CheckPackagesIsInstalled()) { var installer = new PythonInstallDialog() { From 5f117047f8189ab5516ae6ff4df4e05f9ee4db8c Mon Sep 17 00:00:00 2001 From: hrntsm Date: Tue, 29 Nov 2022 16:43:36 +0900 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d03d3f86..339187ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,8 @@ Please see [here](https://github.com/hrntsm/Tunny/releases) for the data release - Optimize result handling more smooth some case. - Previously, it used to read and handle python, which was sometimes slow, but now it calls SQLite directly from CS. - Only non-dominated trial plot in pareto front. +- Boolean to skip the behavior of checking if the python library is installed in settings. + - For some reason, the installer may be launched every time even if it is installed, so it can be forcibly skipped in the settings. ### Changed