Skip to content

Commit

Permalink
fix(win_set_inst_depth): Fix '0' backset error
Browse files Browse the repository at this point in the history
- Allow the user to specify a backset of '0' units
  • Loading branch information
ed-p-may committed Feb 28, 2024
1 parent 62d3acd commit 7acf88c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion honeybee_ph_rhino/_component_info_.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion honeybee_ph_rhino/gh_compo_io/win_set_inst_depth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 7acf88c

Please sign in to comment.