Skip to content

Commit

Permalink
Fixed Bug in View Analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey committed Oct 23, 2016
1 parent e134664 commit f958251
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Ladybug_View Analysis.py
Expand Up @@ -72,7 +72,7 @@

ghenv.Component.Name = "Ladybug_View Analysis"
ghenv.Component.NickName = 'viewAnalysis'
ghenv.Component.Message = 'VER 0.0.63\nAUG_10_2016'
ghenv.Component.Message = 'VER 0.0.63\nOCT_22_2016'
ghenv.Component.IconDisplayMode = ghenv.Component.IconDisplayMode.application
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "3 | EnvironmentalAnalysis"
Expand Down Expand Up @@ -137,10 +137,11 @@ def restoreComponentInputs():
def checkViewType(lb_preparation):
#Assign default values.
viewVecs, viewType, patchAreas, geoBlockView = [], -1, [], False

try:
viewType = int(_viewTypeOrPoints[0])
if viewType >= 0 and viewType <= 4:
if viewType <= 3: geoBlockView = True
if viewType >= 3: geoBlockView = True
else:
warning = "_viewTypeOrPoints must be between 0 and 3."
print warning
Expand Down
Binary file modified userObjects/Ladybug_View Analysis.ghuser
Binary file not shown.

0 comments on commit f958251

Please sign in to comment.