Skip to content

Commit

Permalink
Update Version
Browse files Browse the repository at this point in the history
  • Loading branch information
ed-p-may committed Apr 4, 2023
1 parent 5f964a9 commit a844dde
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Binary file modified hbph_installer.gh
Binary file not shown.
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.0.30"
RELEASE_VERSION = "Honeybee-PH v1.0.31"
CATEGORY = "HB-PH"
SUB_CATEGORIES = {
0: "00 | Utils",
Expand Down
5 changes: 4 additions & 1 deletion honeybee_ph_rhino/gh_compo_io/util_create_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ def __init__(self, _IGH, _name, _key_name, _items, *args, **kwargs):
def key(self, _item):
# type: (T) -> str
"""Return the Key to use when storing the value. Returns id(item) by default."""
if self.key_name:
if self.key_name and "," in self.key_name:
values = [str(getattr(_item, str(_).strip())) for _ in self.key_name.split(",")]
return "_".join(values)
elif self.key_name:
return str(getattr(_item, self.key_name))
else:
return str(id(_item))
Expand Down

0 comments on commit a844dde

Please sign in to comment.