Skip to content

Commit

Permalink
Ladybug 0.0.55!
Browse files Browse the repository at this point in the history
This release mainly addresses the issue with
AdditionalHelpFromDocStrings that is reported with a number of users.
The GHPython components are also updated to version 0.6.0.3
  • Loading branch information
mostaphaRoudsari committed Feb 24, 2014
1 parent 937ef76 commit 4d823bc
Show file tree
Hide file tree
Showing 96 changed files with 261 additions and 146 deletions.
8 changes: 5 additions & 3 deletions src/Ladybug_3D Chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"""
Draw 3D Charts
-
Provided by Ladybug 0.0.54
Provided by Ladybug 0.0.55
Args:
_inputData: List of input data for plot
Expand All @@ -30,10 +30,12 @@

ghenv.Component.Name = "Ladybug_3D Chart"
ghenv.Component.NickName = '3DChart'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Message = 'VER 0.0.55\nFEB_24_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "2 | VisualizeWeatherData"
ghenv.Component.AdditionalHelpFromDocStrings = "1"
try: ghenv.Component.AdditionalHelpFromDocStrings = "1"
except: pass


import scriptcontext as sc
import Rhino as rc
Expand Down
8 changes: 5 additions & 3 deletions src/Ladybug_Analysis Period.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"""
Analysis period
-
Provided by Ladybug 0.0.54
Provided by Ladybug 0.0.55
Args:
_fromMonth_: Default starting month is set to 1, if not provided [1-12]
Expand All @@ -24,10 +24,12 @@

ghenv.Component.Name = "Ladybug_Analysis Period"
ghenv.Component.NickName = 'analysisPeriod'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Message = 'VER 0.0.55\nFEB_24_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "1 | AnalyzeWeatherData"
ghenv.Component.AdditionalHelpFromDocStrings = "1"
try: ghenv.Component.AdditionalHelpFromDocStrings = "1"
except: pass


import scriptcontext as sc
import clr
Expand Down
8 changes: 5 additions & 3 deletions src/Ladybug_Average Data.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"""
Select and average hourly data
-
Provided by Ladybug 0.0.54
Provided by Ladybug 0.0.55
Args:
_annualHourlyData: Hourly data from import EPW component
Expand All @@ -22,10 +22,12 @@

ghenv.Component.Name = "Ladybug_Average Data"
ghenv.Component.NickName = 'selectAndAverageData'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Message = 'VER 0.0.55\nFEB_24_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "1 | AnalyzeWeatherData"
ghenv.Component.AdditionalHelpFromDocStrings = "1"
try: ghenv.Component.AdditionalHelpFromDocStrings = "1"
except: pass



import scriptcontext as sc
Expand Down
8 changes: 5 additions & 3 deletions src/Ladybug_C2F.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"""
Convert from C to F
-
Provided by Ladybug 0.0.54
Provided by Ladybug 0.0.55
Args:
_C: Input temperatures in C
Expand All @@ -17,10 +17,12 @@

ghenv.Component.Name = "Ladybug_C2F"
ghenv.Component.NickName = 'C2F'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Message = 'VER 0.0.55\nFEB_24_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "4 | Extra"
ghenv.Component.AdditionalHelpFromDocStrings = "4"
try: ghenv.Component.AdditionalHelpFromDocStrings = "4"
except: pass


F = []
for num in _C:
Expand Down
8 changes: 5 additions & 3 deletions src/Ladybug_CDD_HDD.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
You may check the formulas in this page: "http://www.vesma.com/ddd/ddcalcs.htm"
If you rather to use the traditional method set useDailyAvrMethod to True.
-
Provided by Ladybug 0.0.54
Provided by Ladybug 0.0.55
Args:
_hourlyDryBulbTemperature: Annual dry bulb temperature (in degrees Celsius)
Expand All @@ -30,10 +30,12 @@

ghenv.Component.Name = "Ladybug_CDD_HDD"
ghenv.Component.NickName = "CDD_HDD"
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Message = 'VER 0.0.55\nFEB_24_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "1 | AnalyzeWeatherData"
ghenv.Component.AdditionalHelpFromDocStrings = "2"
try: ghenv.Component.AdditionalHelpFromDocStrings = "2"
except: pass


import scriptcontext as sc
from clr import AddReference
Expand Down
8 changes: 5 additions & 3 deletions src/Ladybug_CDH_HDH.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Heating and cooling degree hours.
Degree hour for each hour is the difference between the base temperature and the average ambient outside air temperature.
-
Provided by Ladybug 0.0.54
Provided by Ladybug 0.0.55
Args:
_hourlyDryBulbTemperature: Annual dry bulb temperature (in degrees Celsius)
Expand All @@ -28,10 +28,12 @@

ghenv.Component.Name = "Ladybug_CDH_HDH"
ghenv.Component.NickName = "CDH_HDH"
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Message = 'VER 0.0.55\nFEB_24_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "1 | AnalyzeWeatherData"
ghenv.Component.AdditionalHelpFromDocStrings = "2"
try: ghenv.Component.AdditionalHelpFromDocStrings = "2"
except: pass


import scriptcontext as sc
from clr import AddReference
Expand Down
8 changes: 5 additions & 3 deletions src/Ladybug_Construct Location.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"""
Construct location
-
Provided by Ladybug 0.0.54
Provided by Ladybug 0.0.55
Args:
_locationName: Location name
Expand All @@ -23,10 +23,12 @@
"""
ghenv.Component.Name = "Ladybug_Construct Location"
ghenv.Component.NickName = 'constructLocation'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Message = 'VER 0.0.55\nFEB_24_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "0 | Ladybug"
ghenv.Component.AdditionalHelpFromDocStrings = "3"
try: ghenv.Component.AdditionalHelpFromDocStrings = "3"
except: pass


from clr import AddReference
AddReference('Grasshopper')
Expand Down
8 changes: 5 additions & 3 deletions src/Ladybug_DOY_HOY.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"""
Calculate day of the year and hour of the year based on day, month and hour
-
Provided by Ladybug 0.0.54
Provided by Ladybug 0.0.55
Args:
_day_: Days of the month [1-31]
Expand All @@ -21,10 +21,12 @@

ghenv.Component.Name = "Ladybug_DOY_HOY"
ghenv.Component.NickName = 'DOY/HOY'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Message = 'VER 0.0.55\nFEB_24_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "4 | Extra"
ghenv.Component.AdditionalHelpFromDocStrings = "4"
try: ghenv.Component.AdditionalHelpFromDocStrings = "4"
except: pass


import scriptcontext as sc
from clr import AddReference
Expand Down
8 changes: 5 additions & 3 deletions src/Ladybug_Day_Month_Hour.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"""
Calculate day, month and hour for any day or hour of the year
-
Provided by Ladybug 0.0.54
Provided by Ladybug 0.0.55
Args:
HOY: Hour of the year
Expand All @@ -22,10 +22,12 @@

ghenv.Component.Name = "Ladybug_Day_Month_Hour"
ghenv.Component.NickName = 'Day_Month_Hour_Calculator'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Message = 'VER 0.0.55\nFEB_24_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "4 | Extra"
ghenv.Component.AdditionalHelpFromDocStrings = "4"
try: ghenv.Component.AdditionalHelpFromDocStrings = "4"
except: pass


import scriptcontext as sc
from clr import AddReference
Expand Down
8 changes: 5 additions & 3 deletions src/Ladybug_Decompose Location.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"""
Decompose location
-
Provided by Ladybug 0.0.54
Provided by Ladybug 0.0.55
Args:
_location: Location data as a string [Output from importEPW or constructLocation]
Expand All @@ -21,10 +21,12 @@
"""
ghenv.Component.Name = "Ladybug_Decompose Location"
ghenv.Component.NickName = 'explodeLocation'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Message = 'VER 0.0.55\nFEB_24_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "0 | Ladybug"
ghenv.Component.AdditionalHelpFromDocStrings = "3"
try: ghenv.Component.AdditionalHelpFromDocStrings = "3"
except: pass



if _location:
Expand Down
31 changes: 26 additions & 5 deletions src/Ladybug_Export Ladybug.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
This component exports Ladybug/Honeybee components source code and create/update the userObjects
Thanks to Giulio Piacentino for a really helpful example
-
Provided by Ladybug 0.0.54
Provided by Ladybug 0.0.55
Args:
_components: Output of a series of Ladybug component or * to search all the components on canvas
_targetFolder: A local folder. Source code will be saved at .\src and userObjects will be saved at .\userObjects
Expand All @@ -19,10 +19,11 @@

ghenv.Component.Name = "Ladybug_Export Ladybug"
ghenv.Component.NickName = 'exportLadybug'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Message = 'VER 0.0.55\nFEB_24_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "6 | Developers"
ghenv.Component.AdditionalHelpFromDocStrings = "1"
try: ghenv.Component.AdditionalHelpFromDocStrings = "1"
except: pass

import Grasshopper.Kernel as gh
import scriptcontext as sc
Expand Down Expand Up @@ -133,7 +134,15 @@ def isNewerVersion(currentUO, component):
uo.Icon = component.Icon_24x24

try: uo.Exposure = exposureDict[int(component.AdditionalHelpFromDocStrings)]
except: uo.Exposure = exposureDict[int(1)]
except:
try:
compCode = component.Code
# this is so dirty
exposureNumber = compCode.split("ghenv.Component.AdditionalHelpFromDocStrings")[1].split("\n")[0].replace("=", "").replace('"', "").strip()
uo.Exposure = exposureDict[int(exposureNumber)]

except:
uo.Exposure = exposureDict[int(1)]

uo.BaseGuid = component.ComponentGuid
uo.Description.Name = component.Name
Expand Down Expand Up @@ -309,3 +318,15 @@ def main(components, targetFolder):















8 changes: 5 additions & 3 deletions src/Ladybug_F2C.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"""
Convert from F to C
-
Provided by Ladybug 0.0.54
Provided by Ladybug 0.0.55
Args:
_F: Input temperatures in F
Expand All @@ -17,10 +17,12 @@

ghenv.Component.Name = "Ladybug_F2C"
ghenv.Component.NickName = 'F2C'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Message = 'VER 0.0.55\nFEB_24_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "4 | Extra"
ghenv.Component.AdditionalHelpFromDocStrings = "4"
try: ghenv.Component.AdditionalHelpFromDocStrings = "4"
except: pass


C = []
for num in _F:
Expand Down
8 changes: 5 additions & 3 deletions src/Ladybug_Forward Raytracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"""
Forward Raytracing
-
Provided by Ladybug 0.0.54
Provided by Ladybug 0.0.55
Args:
_startPts: Start points for raytracing as Point3D
Expand All @@ -20,10 +20,12 @@

ghenv.Component.Name = "Ladybug_Forward Raytracing"
ghenv.Component.NickName = 'forwardRaytracing'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Message = 'VER 0.0.55\nFEB_24_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "3 | EnvironmentalAnalysis"
ghenv.Component.AdditionalHelpFromDocStrings = "2"
try: ghenv.Component.AdditionalHelpFromDocStrings = "2"
except: pass


from clr import AddReference
AddReference('Grasshopper')
Expand Down
8 changes: 5 additions & 3 deletions src/Ladybug_GenCumulativeSkyMtx.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
The first time you use this component, you need to be connected to the internet so the component can download gendaymtx.exe
to the working directory.
-
Provided by Ladybug 0.0.54
Provided by Ladybug 0.0.55
Args:
_epwFile: epw weather file address on your system
Expand All @@ -28,10 +28,12 @@

ghenv.Component.Name = "Ladybug_GenCumulativeSkyMtx"
ghenv.Component.NickName = 'genCumulativeSkyMtx'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Message = 'VER 0.0.55\nFEB_24_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "2 | VisualizeWeatherData"
ghenv.Component.AdditionalHelpFromDocStrings = "2"
try: ghenv.Component.AdditionalHelpFromDocStrings = "2"
except: pass


import os
import scriptcontext as sc
Expand Down
6 changes: 4 additions & 2 deletions src/Ladybug_Honeybee Place Holder.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@

ghenv.Component.Name = "Ladybug_Honeybee Place Holder"
ghenv.Component.NickName = 'honeybeePlaceHolder'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Message = 'VER 0.0.55\nFEB_24_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "5 | Honeybee"
ghenv.Component.AdditionalHelpFromDocStrings = "1"
try: ghenv.Component.AdditionalHelpFromDocStrings = "1"
except: pass


print "Hello!\nHoneybee lived here as a larva however she grew up so fast " + \
"that she couldn't fit here anymore. Hence she moved out to a new tab in Grasshopper!" +\
Expand Down
Loading

0 comments on commit 4d823bc

Please sign in to comment.