From 7acf88c059143a15ad175226782221ab358735c8 Mon Sep 17 00:00:00 2001 From: PH Tools Date: Wed, 28 Feb 2024 15:53:23 -0500 Subject: [PATCH] fix(win_set_inst_depth): Fix '0' backset error - Allow the user to specify a backset of '0' units --- honeybee_ph_rhino/_component_info_.py | 2 +- honeybee_ph_rhino/gh_compo_io/win_set_inst_depth.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/honeybee_ph_rhino/_component_info_.py b/honeybee_ph_rhino/_component_info_.py index 343e5f6..fb805ee 100644 --- a/honeybee_ph_rhino/_component_info_.py +++ b/honeybee_ph_rhino/_component_info_.py @@ -5,7 +5,7 @@ These are called when the component is instantiated within the Grasshopper canvas. """ -RELEASE_VERSION = "Honeybee-PH v1.2.06" +RELEASE_VERSION = "Honeybee-PH v1.2.07" CATEGORY = "HB-PH" SUB_CATEGORIES = { 0: "00 | Utils", diff --git a/honeybee_ph_rhino/gh_compo_io/win_set_inst_depth.py b/honeybee_ph_rhino/gh_compo_io/win_set_inst_depth.py index 12181af..e998484 100644 --- a/honeybee_ph_rhino/gh_compo_io/win_set_inst_depth.py +++ b/honeybee_ph_rhino/gh_compo_io/win_set_inst_depth.py @@ -53,7 +53,7 @@ def calc_install_depth(self, _install_depth): # -- convert the input value to Meters, always install_depth = convert(input_value, input_unit, "M") - if not install_depth: + if install_depth is None: raise ValueError("Failed to parse install depth input {}?".format(_install_depth)) else: print("Converting: {} {} -> {:.4f} M".format(input_value, input_unit, install_depth))