Skip to content

Commit

Permalink
Ladybug 0.0.54!
Browse files Browse the repository at this point in the history
Ladybug 0.0.54 is the 3rd release of Ladybug which will go with the
first release of Honeybee.
  • Loading branch information
mostaphaRoudsari committed Feb 17, 2014
1 parent d29c7b2 commit da032b6
Show file tree
Hide file tree
Showing 92 changed files with 150 additions and 129 deletions.
6 changes: 3 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.53
Provided by Ladybug 0.0.54
Args:
_inputData: List of input data for plot
Expand All @@ -30,7 +30,7 @@

ghenv.Component.Name = "Ladybug_3D Chart"
ghenv.Component.NickName = '3DChart'
ghenv.Component.Message = 'VER 0.0.53\nJan_22_2014'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "2 | VisualizeWeatherData"
ghenv.Component.AdditionalHelpFromDocStrings = "1"
Expand Down Expand Up @@ -326,4 +326,4 @@ def main(inputData, basePoint, xScale, yScale, zScale, xCount, legendPar, condSt
legendBasePts.Add(result[2][i], p)
conditionalPts.AddRange(result[3][i], p)
HOY.AddRange(result[4][i], p)
ghenv.Component.Params.Output[3].Hidden = True
ghenv.Component.Params.Output[3].Hidden = True
6 changes: 3 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.53
Provided by Ladybug 0.0.54
Args:
_fromMonth_: Default starting month is set to 1, if not provided [1-12]
Expand All @@ -24,7 +24,7 @@

ghenv.Component.Name = "Ladybug_Analysis Period"
ghenv.Component.NickName = 'analysisPeriod'
ghenv.Component.Message = 'VER 0.0.53\nJan_22_2014'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "1 | AnalyzeWeatherData"
ghenv.Component.AdditionalHelpFromDocStrings = "1"
Expand Down Expand Up @@ -108,4 +108,4 @@ def makeTuple(fromMonth, fromDay, fromHour, toMonth, toDay, toHour):

result = main(_fromMonth_, _fromDay_, _fromHour_, _toMonth_, _toDay_, _toHour_)
if result!= -1: analysisPeriod = result
else: pass
else: pass
6 changes: 3 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.53
Provided by Ladybug 0.0.54
Args:
_annualHourlyData: Hourly data from import EPW component
Expand All @@ -22,7 +22,7 @@

ghenv.Component.Name = "Ladybug_Average Data"
ghenv.Component.NickName = 'selectAndAverageData'
ghenv.Component.Message = 'VER 0.0.53\nJan_22_2014'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "1 | AnalyzeWeatherData"
ghenv.Component.AdditionalHelpFromDocStrings = "1"
Expand Down Expand Up @@ -190,4 +190,4 @@ def average(list):

result = main(_annualHourlyData, _analysisPeriod_)
if result!= -1:
selHourlyData, averagedDaily, avrDailyPerHour, avrWeeklyPerHour, avrMonthlyPerHour, averagedMonthly = result
selHourlyData, averagedDaily, avrDailyPerHour, avrWeeklyPerHour, avrMonthlyPerHour, averagedMonthly = result
6 changes: 3 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.53
Provided by Ladybug 0.0.54
Args:
_C: Input temperatures in C
Expand All @@ -17,7 +17,7 @@

ghenv.Component.Name = "Ladybug_C2F"
ghenv.Component.NickName = 'C2F'
ghenv.Component.Message = 'VER 0.0.53\nJan_22_2014'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "4 | Extra"
ghenv.Component.AdditionalHelpFromDocStrings = "4"
Expand All @@ -27,4 +27,4 @@
if num == 'C': F.append('F')
else:
try: F.append(float(num)*9/5 + 32)
except: F.append(num)
except: F.append(num)
6 changes: 3 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.53
Provided by Ladybug 0.0.54
Args:
_hourlyDryBulbTemperature: Annual dry bulb temperature (in degrees Celsius)
Expand All @@ -30,7 +30,7 @@

ghenv.Component.Name = "Ladybug_CDD_HDD"
ghenv.Component.NickName = "CDD_HDD"
ghenv.Component.Message = 'VER 0.0.53\nJan_22_2014'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "1 | AnalyzeWeatherData"
ghenv.Component.AdditionalHelpFromDocStrings = "2"
Expand Down Expand Up @@ -174,4 +174,4 @@ def main(coolingSetPoint, heatingSetPoint, hourlyDryBulbTemperature, useDailyAvr

result = main(coolingSetPoint, heatingSetPoint, _hourlyDryBulbTemperature, useDailyAvrMethod_)
if result!= -1:
daily_coolingDegDays, daily_heatingDegDays, monthly_coolingDegDays, monthly_heatingDegDays, annual_coolingDegDays, annual_heatingDegDays = result
daily_coolingDegDays, daily_heatingDegDays, monthly_coolingDegDays, monthly_heatingDegDays, annual_coolingDegDays, annual_heatingDegDays = result
6 changes: 3 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.53
Provided by Ladybug 0.0.54
Args:
_hourlyDryBulbTemperature: Annual dry bulb temperature (in degrees Celsius)
Expand All @@ -28,7 +28,7 @@

ghenv.Component.Name = "Ladybug_CDH_HDH"
ghenv.Component.NickName = "CDH_HDH"
ghenv.Component.Message = 'VER 0.0.53\nJan_22_2014'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "1 | AnalyzeWeatherData"
ghenv.Component.AdditionalHelpFromDocStrings = "2"
Expand Down Expand Up @@ -193,4 +193,4 @@ def main(coolingSetPoint, heatingSetPoint, coolingSetBack, heatingSetBack, start
result = main(coolingSetPoint, heatingSetPoint, coolingSetBack, heatingSetBack, startOfWorkingHours, endOfWorkingHours)
if result!= -1:
hourly_coolingDegHours, hourly_heatingDegHours, daily_coolingDegHours, daily_heatingDegHours, monthly_coolingDegHours, monthly_heatingDegHours, annual_coolingDegHours, annual_heatingDegHours = result


4 changes: 2 additions & 2 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.53
Provided by Ladybug 0.0.54
Args:
_locationName: Location name
Expand Down Expand Up @@ -41,4 +41,4 @@
str(_elevation_) + '; !Elevation'
else:
w = gh.GH_RuntimeMessageLevel.Warning
ghenv.Component.AddRuntimeMessage(w, "locationName or latitude is missing")
ghenv.Component.AddRuntimeMessage(w, "locationName or latitude is missing")
6 changes: 3 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.53
Provided by Ladybug 0.0.54
Args:
_day_: Days of the month [1-31]
Expand All @@ -21,7 +21,7 @@

ghenv.Component.Name = "Ladybug_DOY_HOY"
ghenv.Component.NickName = 'DOY/HOY'
ghenv.Component.Message = 'VER 0.0.53\nJan_22_2014'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "4 | Extra"
ghenv.Component.AdditionalHelpFromDocStrings = "4"
Expand Down Expand Up @@ -55,4 +55,4 @@ def main(days, months, hours):
return -1

result = main(_days_, _months_, _hours_)
if result!= -1: HOY, DOY, date = result
if result!= -1: HOY, DOY, date = result
5 changes: 3 additions & 2 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.53
Provided by Ladybug 0.0.54
Args:
HOY: Hour of the year
Expand All @@ -22,7 +22,7 @@

ghenv.Component.Name = "Ladybug_Day_Month_Hour"
ghenv.Component.NickName = 'Day_Month_Hour_Calculator'
ghenv.Component.Message = 'VER 0.0.53\nJan_22_2014'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "4 | Extra"
ghenv.Component.AdditionalHelpFromDocStrings = "4"
Expand Down Expand Up @@ -56,3 +56,4 @@ def main(HOY):

result = main(_HOY)
if result!=-1: day, month, hour, date = result

6 changes: 3 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.53
Provided by Ladybug 0.0.54
Args:
_location: Location data as a string [Output from importEPW or constructLocation]
Expand All @@ -21,7 +21,7 @@
"""
ghenv.Component.Name = "Ladybug_Decompose Location"
ghenv.Component.NickName = 'explodeLocation'
ghenv.Component.Message = 'VER 0.0.53\nJan_22_2014'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "0 | Ladybug"
ghenv.Component.AdditionalHelpFromDocStrings = "3"
Expand All @@ -42,4 +42,4 @@

site, locationName, latitude, longitude, timeZone, elevation = newLocStr.split(',')

latitude, longitude, timeZone, elevation = float(latitude), float(longitude), float(timeZone), float(elevation)
latitude, longitude, timeZone, elevation = float(latitude), float(longitude), float(timeZone), float(elevation)
13 changes: 10 additions & 3 deletions src/Ladybug_Export Ladybug.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
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.53
Provided by Ladybug 0.0.54
Args:
_components: Output of a series of Ladybug component or * to search all the components on canvas
Expand All @@ -19,7 +19,7 @@

ghenv.Component.Name = "Ladybug_Export Ladybug"
ghenv.Component.NickName = 'exportLadybug'
ghenv.Component.Message = 'VER 0.0.53\nJan_25_2014'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "6 | Developers"
ghenv.Component.AdditionalHelpFromDocStrings = "1"
Expand Down Expand Up @@ -301,4 +301,11 @@ def main(components, targetFolder):
msg = main(_components, _targetFolder)
ghenv.Component.AddRuntimeMessage(gh.GH_RuntimeMessageLevel.Warning, msg)
else:
print "At the minimum one of the components are missing!"
print "At the minimum one of the components are missing!"







6 changes: 3 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.53
Provided by Ladybug 0.0.54
Args:
_F: Input temperatures in F
Expand All @@ -17,7 +17,7 @@

ghenv.Component.Name = "Ladybug_F2C"
ghenv.Component.NickName = 'F2C'
ghenv.Component.Message = 'VER 0.0.53\nJan_22_2014'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "4 | Extra"
ghenv.Component.AdditionalHelpFromDocStrings = "4"
Expand All @@ -27,4 +27,4 @@
if num == 'F': F.append('C')
else:
try: C.append((float(num)-32) * 5 / 9)
except: C.append(num)
except: C.append(num)
6 changes: 3 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.53
Provided by Ladybug 0.0.54
Args:
_startPts: Start points for raytracing as Point3D
Expand All @@ -20,7 +20,7 @@

ghenv.Component.Name = "Ladybug_Forward Raytracing"
ghenv.Component.NickName = 'forwardRaytracing'
ghenv.Component.Message = 'VER 0.0.53\nJan_22_2014'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "3 | EnvironmentalAnalysis"
ghenv.Component.AdditionalHelpFromDocStrings = "2"
Expand Down Expand Up @@ -80,4 +80,4 @@ def main(startPts, startVectors, context, numOfBounce):
rays = main(_startPts, _startVectors, _context, _numOfBounce_)
else:
print "Provide start points, start vectors and context..."
ghenv.Component.AddRuntimeMessage(gh.GH_RuntimeMessageLevel.Warning, "Provide start points, start vectors and context...")
ghenv.Component.AddRuntimeMessage(gh.GH_RuntimeMessageLevel.Warning, "Provide start points, start vectors and context...")
5 changes: 3 additions & 2 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.53
Provided by Ladybug 0.0.54
Args:
_epwFile: epw weather file address on your system
Expand All @@ -28,7 +28,7 @@

ghenv.Component.Name = "Ladybug_GenCumulativeSkyMtx"
ghenv.Component.NickName = 'genCumulativeSkyMtx'
ghenv.Component.Message = 'VER 0.0.53\nJan_22_2014'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "2 | VisualizeWeatherData"
ghenv.Component.AdditionalHelpFromDocStrings = "2"
Expand Down Expand Up @@ -272,3 +272,4 @@ def __init__(self, valuesDict, locationName):
warn = "set runIt to True and connect a valid epw file address"
print warn
ghenv.Component.AddRuntimeMessage(gh.GH_RuntimeMessageLevel.Warning, warn)

4 changes: 2 additions & 2 deletions src/Ladybug_Honeybee Place Holder.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

ghenv.Component.Name = "Ladybug_Honeybee Place Holder"
ghenv.Component.NickName = 'honeybeePlaceHolder'
ghenv.Component.Message = 'VER 0.0.53\nJan_22_2014'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "5 | Honeybee"
ghenv.Component.AdditionalHelpFromDocStrings = "1"

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!" +\
"...Vviiiiiizzz!"


6 changes: 3 additions & 3 deletions src/Ladybug_Humidity Ratio Calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
W. Wagner and A. Pru:" The IAPWS Formulation 1995 for the Thermodynamic Properties of Ordinary Water Substance for General and Scientific Use ", Journal of Physical and Chemical Reference Data, June 2002 ,Volume 31, Issue 2, pp. 387535
-
Provided by Ladybug 0.0.53
Provided by Ladybug 0.0.54
Args:
_dryBulbTemperature: The dry bulb temperature from the Import EPW component
Expand All @@ -30,7 +30,7 @@

ghenv.Component.Name = "Ladybug_Humidity Ratio Calculator"
ghenv.Component.NickName = 'CalcHumidityRatio'
ghenv.Component.Message = 'VER 0.0.53\nJan_22_2014'
ghenv.Component.Message = 'VER 0.0.54\nFEB_16_2014'
ghenv.Component.Category = "Ladybug"
ghenv.Component.SubCategory = "1 | AnalyzeWeatherData"
ghenv.Component.AdditionalHelpFromDocStrings = "2"
Expand Down Expand Up @@ -243,4 +243,4 @@

print 'Humidity ratio calculation completed successfully!'
else:
print 'Please provide all of the required annual data inputs.'
print 'Please provide all of the required annual data inputs.'
Loading

0 comments on commit da032b6

Please sign in to comment.