Skip to content

Commit

Permalink
Merge pull request #126 from hrntsm/feature/add-disable-python-instal…
Browse files Browse the repository at this point in the history
…ler-setting

Add check python library setting
  • Loading branch information
hrntsm authored Nov 29, 2022
2 parents 474809d + 5f11704 commit 19dc5b1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions Tunny/Settings/TunnySettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion Tunny/UI/OptimizationWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit 19dc5b1

Please sign in to comment.