Skip to content

Commit

Permalink
improved material parsing for MSH2RAD component
Browse files Browse the repository at this point in the history
  • Loading branch information
mostaphaRoudsari committed Sep 27, 2018
1 parent b6e46fa commit 59f41c3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Honeybee_Honeybee.py
Expand Up @@ -47,7 +47,7 @@

ghenv.Component.Name = "Honeybee_Honeybee"
ghenv.Component.NickName = 'Honeybee'
ghenv.Component.Message = 'VER 0.0.63\nSEP_04_2018'
ghenv.Component.Message = 'VER 0.0.63\nSEP_26_2018'
ghenv.Component.IconDisplayMode = ghenv.Component.IconDisplayMode.icon
ghenv.Component.Category = "Honeybee"
ghenv.Component.SubCategory = "00 | Honeybee"
Expand Down Expand Up @@ -1441,7 +1441,7 @@ def __init__(self, mesh, fileName = None, workingDir = None, bitmap = None, radM
if radMaterial != None:
radMaterial = RADMaterialAux.getRadianceObjectsFromString(radMaterial)[0]
try:
self.matName = radMaterial.split("\n")[0].split(" ")[-1].rstrip()
self.matName = radMaterial.strip().split()[2]
assert self.matName != ""
except:
raise Exception("Failed to import %s. Double check the material definition."%radMaterial)
Expand Down
4 changes: 2 additions & 2 deletions src/Honeybee_MSH2RAD.py
Expand Up @@ -39,11 +39,11 @@

ghenv.Component.Name = "Honeybee_MSH2RAD"
ghenv.Component.NickName = 'MSH2RAD'
ghenv.Component.Message = 'VER 0.0.63\nJAN_20_2018'
ghenv.Component.Message = 'VER 0.0.63\nSEP_26_2018'
ghenv.Component.IconDisplayMode = ghenv.Component.IconDisplayMode.application
ghenv.Component.Category = "Honeybee"
ghenv.Component.SubCategory = "04 | Daylight | Daylight"
#compatibleHBVersion = VER 0.0.56\nFEB_01_2015
#compatibleHBVersion = VER 0.0.56\nSEP_26_2015
#compatibleLBVersion = VER 0.0.59\nFEB_01_2015
try: ghenv.Component.AdditionalHelpFromDocStrings = "0"
except: pass
Expand Down
Binary file modified userObjects/Honeybee_Honeybee.ghuser
Binary file not shown.
Binary file modified userObjects/Honeybee_MSH2RAD.ghuser
Binary file not shown.

0 comments on commit 59f41c3

Please sign in to comment.