Skip to content

Commit

Permalink
Merge pull request #216 from hrntsm/develop
Browse files Browse the repository at this point in the history
Release v0.9.1
  • Loading branch information
hrntsm authored Dec 30, 2023
2 parents 0f02144 + 9e4e13a commit 06bd974
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

Please see [here](https://github.com/hrntsm/Tunny/releases) for the data released for each version.

## [v0.9.1] -2023-12-30

### Fixed

- Error generated due to missing path in settings on first startup.

## [v0.9.0] -2023-12-30

### Added
Expand Down
8 changes: 7 additions & 1 deletion Tunny/Settings/TunnySettings.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.IO;
using System.Reflection;

using Newtonsoft.Json;
Expand All @@ -16,7 +17,12 @@ public class TunnySettings
public void Serialize(string path)
{
string json = JsonConvert.SerializeObject(this, Formatting.Indented);
System.IO.File.WriteAllText(path, json);
string dirPath = Path.GetDirectoryName(path);
if (!Directory.Exists(dirPath))
{
Directory.CreateDirectory(dirPath);
}
File.WriteAllText(path, json);
}

public static TunnySettings Deserialize(string json)
Expand Down
2 changes: 1 addition & 1 deletion Tunny/Tunny.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net48</TargetFramework>
<Version>0.9.0</Version>
<Version>0.9.1</Version>
<Title>Tunny</Title>
<Description>Tunny is an optimization component wrapped in optuna.</Description>
<TargetExt>.gha</TargetExt>
Expand Down
2 changes: 1 addition & 1 deletion Tunny/TunnyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Tunny
public class Tunny : GH_AssemblyInfo
{
public override string Name => "Tunny";
public override string Version => "0.9.0";
public override string Version => "0.9.1";
public override Bitmap Icon => Resource.TunnyIcon;
public override string Description => "Tunny is an optimization component wrapped in optuna.";
public override Guid Id => new Guid("01E58960-AFAA-48FF-BC90-174FDC4A9D64");
Expand Down
4 changes: 2 additions & 2 deletions Yak/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: Tunny
version: 0.9.0
version: 0.9.1
authors:
- hrntsm
- hrntsm
description: 🐟Tunny🐟 is Grasshopper's optimization component using Optuna, an open source hyperparameter auto-optimization framework. Tunny includes some features such as multi-objective optimization with constraint, Quasi-MonteCarlo sampling and dashboards for results analysis etc.
url: https://tunny-docs.deno.dev/
keywords:
Expand Down

0 comments on commit 06bd974

Please sign in to comment.