Skip to content

Commit

Permalink
fix(old): Remove OLD tag from all components in Rhino 8
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey committed Nov 8, 2023
1 parent 631f3c4 commit 45b4371
Show file tree
Hide file tree
Showing 66 changed files with 453 additions and 394 deletions.
Binary file modified ladybug_grasshopper/icon/LB Adaptive Comfort Parameters.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ladybug_grasshopper/icon/LB Analysis Period.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ladybug_grasshopper/icon/LB Calculate HOY.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ladybug_grasshopper/icon/LB Compass.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ladybug_grasshopper/icon/LB Create Legend.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ladybug_grasshopper/icon/LB Legend 2D Parameters.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ladybug_grasshopper/icon/LB Legend Parameters.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ladybug_grasshopper/icon/LB PET Body Parameters.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ladybug_grasshopper/icon/LB PMV Comfort Parameters.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ladybug_grasshopper/icon/LB Passive Strategy Parameters.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ladybug_grasshopper/icon/LB Preview VisualizationSet.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ladybug_grasshopper/icon/LB Screen Oriented Text.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ladybug_grasshopper/icon/LB Sky Mask.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ladybug_grasshopper/icon/LB Solar Body Parameters.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ladybug_grasshopper/icon/LB UTCI Comfort Parameters.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 22 additions & 22 deletions ladybug_grasshopper/json/LB_Adaptive_Comfort_Parameters.json
@@ -1,64 +1,64 @@
{
"version": "1.7.0",
"nickname": "AdaptPar",
"description": "Create a set of parameters that define the acceptable conditions of the\nAdaptive thermal comfort model.\n-\nThese parameters can be plugged into any of the components that compute\nAdaptive thermal comfort.\n-",
"outputs": [
[
{
"access": "None",
"type": null,
"name": "adapt_par",
"description": "An Adaptive comfort parameter object that can be plugged into\nany of the components that compute Adaptive thermal comfort.",
"type": null,
"access": "None",
"default": null
}
]
],
"code": "\ntry:\n from ladybug_comfort.parameter.adaptive import AdaptiveParameter\nexcept ImportError as e:\n raise ImportError('\\nFailed to import ladybug_comfort:\\n\\t{}'.format(e))\ntry:\n from ladybug_{{cad}}.{{plugin}} import turn_off_old_tag\nexcept ImportError as e:\n raise ImportError('\\nFailed to import ladybug_{{cad}}:\\n\\t{}'.format(e))\nturn_off_old_tag(ghenv.Component)\n\n\nadapt_par = AdaptiveParameter(_ashrae_or_en_, _neutral_offset_,\n _avgm_or_runmean_, _discr_or_cont_vel_,\n _cold_prevail_limit_, _conditioning_)\n",
"name": "LB Adaptive Comfort Parameters",
"version": "1.7.1",
"category": "Ladybug",
"subcategory": "4 :: Extra",
"nickname": "AdaptPar",
"inputs": [
{
"access": "item",
"type": "bool",
"name": "_ashrae_or_en_",
"description": "A boolean to note whether to use the ASHRAE-55 neutral\ntemperature function (True) or the european neutral function (False),\nwhich is consistent with both EN-15251 and EN-16798. Note that this\ninput will also determine default values for many of the other\nproperties of this object.",
"type": "bool",
"access": "item",
"default": null
},
{
"access": "item",
"type": "double",
"name": "_neutral_offset_",
"description": "The number of degrees Celcius from the neutral temperature\nwhere the input operative temperature is considered acceptable.\nThe default is 2.5C when the neutral temperature function is ASHRAE-55\n(consistent with 90% PPD) and 3C when the neutral temperature\nfunction is EN (consistent with comfort class II).\n_\nFor ASHRAE-55, the following neutral offsets apply.\n* 90 PPD - 2.5C\n* 80 PPD - 3.5C\n_\nFor the EN standard, the following neutral offsets apply.\n* Class I - 2C\n* Class II - 3C\n* Class III - 4C",
"type": "double",
"access": "item",
"default": null
},
{
"access": "item",
"type": "bool",
"name": "_avgm_or_runmean_",
"description": "A boolean to note whether the prevailing outdoor\ntemperature is computed from the average monthly temperature (True) or\na weighted running mean of the last week (False). The default is True\nwhen the neutral temperature function is ASHRAE-55 and False when the\nneutral temperature function is EN.",
"type": "bool",
"access": "item",
"default": null
},
{
"access": "item",
"type": "bool",
"name": "_discr_or_cont_vel_",
"description": "A boolean to note whether discrete categories should be\nused to assess the effect of elevated air speed (True) or whether\na continuous function should be used (False). Note that continuous\nair speeds were only used in the older EN-15251 standard and are\nnot a part of the more recent EN-16798 standard.\nWhen unassigned, this will be True for discrete air speeds.",
"type": "bool",
"access": "item",
"default": null
},
{
"access": "item",
"type": "double",
"name": "_cold_prevail_limit_",
"description": "A number indicating the prevailing outdoor temperature\nbelow which acceptable indoor operative temperatures flat line.\nThe default is 10C, which is consistent with both ASHRAE-55 and\nEN-16798. However, 15C was used for the older EN-15251 standard.\nThis number cannot be greater than 22C and cannot be less than 10C.",
"type": "double",
"access": "item",
"default": null
},
{
"access": "item",
"type": "double",
"name": "_conditioning_",
"description": "A number between 0 and 1 that represents how \"conditioned\"\nvs. \"free-running\" the building is.\n0 = free-running (completely passive with no air conditioning)\n1 = conditioned (no operable windows and fully air conditioned)\nThe default is 0 since both the ASHRAE-55 and the EN standards prohibit\nthe use of adaptive comfort methods when a heating/cooling system is active.\nWhen set to a non-zero number, a neutral temperature function for\nheated/cooled operation derived from the SCATs database will be used.\nFor more information on how adaptive comfort methods can be applied to\nconditioned buildings, see the neutral_temperature_conditioned function\nin the ladybug_comfort documentation.",
"type": "double",
"access": "item",
"default": null
}
],
"subcategory": "4 :: Extra",
"code": "\ntry:\n from ladybug_comfort.parameter.adaptive import AdaptiveParameter\nexcept ImportError as e:\n raise ImportError('\\nFailed to import ladybug_comfort:\\n\\t{}'.format(e))\n\n\nadapt_par = AdaptiveParameter(_ashrae_or_en_, _neutral_offset_,\n _avgm_or_runmean_, _discr_or_cont_vel_,\n _cold_prevail_limit_, _conditioning_)\n",
"category": "Ladybug",
"name": "LB Adaptive Comfort Parameters",
"description": "Create a set of parameters that define the acceptable conditions of the\nAdaptive thermal comfort model.\n-\nThese parameters can be plugged into any of the components that compute\nAdaptive thermal comfort.\n-"
]
}
56 changes: 28 additions & 28 deletions ladybug_grasshopper/json/LB_Analysis_Period.json
@@ -1,85 +1,85 @@
{
"version": "1.7.0",
"nickname": "AnalysisPeriod",
"description": "Create an Analysis Period to describe a slice of time during the year.\n-",
"outputs": [
[
{
"access": "None",
"type": null,
"name": "period",
"description": "Analysis period.",
"type": null,
"access": "None",
"default": null
},
{
"access": "None",
"type": null,
"name": "hoys",
"description": "List of dates in this analysis period.",
"type": null,
"access": "None",
"default": null
},
{
"access": "None",
"type": null,
"name": "dates",
"description": "List of hours of the year in this analysis period.",
"type": null,
"access": "None",
"default": null
}
]
],
"code": "\ntry:\n import ladybug.analysisperiod as ap\nexcept ImportError as e:\n raise ImportError('\\nFailed to import ladybug:\\n\\t{}'.format(e))\n\ntry:\n from ladybug_{{cad}}.{{plugin}} import wrap_output, turn_off_old_tag\nexcept ImportError as e:\n raise ImportError('\\nFailed to import ladybug_{{cad}}:\\n\\t{}'.format(e))\nturn_off_old_tag(ghenv.Component)\n\n\nanp = ap.AnalysisPeriod(\n _start_month_, _start_day_, _start_hour_,\n _end_month_, _end_day_, _end_hour_, _timestep_)\n\nif anp:\n period = anp\n dates = wrap_output(anp.datetimes)\n hoys = anp.hoys",
"name": "LB Analysis Period",
"version": "1.7.1",
"category": "Ladybug",
"subcategory": "1 :: Analyze Data",
"nickname": "AnalysisPeriod",
"inputs": [
{
"access": "item",
"type": "int",
"name": "_start_month_",
"description": "Start month (1-12).",
"type": "int",
"access": "item",
"default": 1
},
{
"access": "item",
"type": "int",
"name": "_start_day_",
"description": "Start day (1-31).",
"type": "int",
"access": "item",
"default": 1
},
{
"access": "item",
"type": "int",
"name": "_start_hour_",
"description": "Start hour (0-23).",
"type": "int",
"access": "item",
"default": 0
},
{
"access": "item",
"type": "int",
"name": "_end_month_",
"description": "End month (1-12).",
"type": "int",
"access": "item",
"default": null
},
{
"access": "item",
"type": "int",
"name": "_end_day_",
"description": "End day (1-31).",
"type": "int",
"access": "item",
"default": null
},
{
"access": "item",
"type": "int",
"name": "_end_hour_",
"description": "End hour (0-23).",
"type": "int",
"access": "item",
"default": null
},
{
"access": "item",
"type": "int",
"name": "_timestep_",
"description": "An integer number for the number of time steps per hours.\nAcceptable inputs include: 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60",
"type": "int",
"access": "item",
"default": null
}
],
"subcategory": "1 :: Analyze Data",
"code": "\ntry:\n import ladybug.analysisperiod as ap\nexcept ImportError as e:\n raise ImportError('\\nFailed to import ladybug:\\n\\t{}'.format(e))\n\ntry:\n from ladybug_{{cad}}.{{plugin}} import wrap_output\nexcept ImportError as e:\n raise ImportError('\\nFailed to import ladybug_{{cad}}:\\n\\t{}'.format(e))\n\n\nanp = ap.AnalysisPeriod(\n _start_month_, _start_day_, _start_hour_,\n _end_month_, _end_day_, _end_hour_, _timestep_)\n\nif anp:\n period = anp\n dates = wrap_output(anp.datetimes)\n hoys = anp.hoys",
"category": "Ladybug",
"name": "LB Analysis Period",
"description": "Create an Analysis Period to describe a slice of time during the year.\n-"
]
}
44 changes: 22 additions & 22 deletions ladybug_grasshopper/json/LB_Calculate_HOY.json
@@ -1,64 +1,64 @@
{
"version": "1.7.0",
"nickname": "HOY",
"description": "Calculate hour of the year from month, day, hour, minute.\n-",
"outputs": [
[
{
"access": "None",
"type": null,
"name": "hoy",
"description": "Hour of the year.",
"type": null,
"access": "None",
"default": null
},
{
"access": "None",
"type": null,
"name": "doy",
"description": "Day of the year.",
"type": null,
"access": "None",
"default": null
},
{
"access": "None",
"type": null,
"name": "date",
"description": "Human readable date time.",
"type": null,
"access": "None",
"default": null
}
]
],
"code": "\ntry:\n from ladybug.dt import DateTime\nexcept ImportError as e:\n raise ImportError('\\nFailed to import ladybug:\\n\\t{}'.format(e))\ntry:\n from ladybug_{{cad}}.{{plugin}} import turn_off_old_tag\nexcept ImportError as e:\n raise ImportError('\\nFailed to import ladybug_{{cad}}:\\n\\t{}'.format(e))\nturn_off_old_tag(ghenv.Component)\n\n\nmonth = _month_ or 9\nday = _day_ or 21\nhour = _hour_ if _hour_ is not None else 12\nminute = _minute_ or 0\n\ndatetime = DateTime(month, day, hour, minute)\nhoy = datetime.hoy\ndoy = datetime.doy\ndate = datetime\n",
"name": "LB Calculate HOY",
"version": "1.7.1",
"category": "Ladybug",
"subcategory": "1 :: Analyze Data",
"nickname": "HOY",
"inputs": [
{
"access": "item",
"type": "int",
"name": "_month_",
"description": "Integer for month (1-12).",
"type": "int",
"access": "item",
"default": null
},
{
"access": "item",
"type": "int",
"name": "_day_",
"description": "Integer for day (1-31).",
"type": "int",
"access": "item",
"default": null
},
{
"access": "item",
"type": "int",
"name": "_hour_",
"description": "Integer for hour (0-23).",
"type": "int",
"access": "item",
"default": null
},
{
"access": "item",
"type": "int",
"name": "_minute_",
"description": "Integer for minute (0-59).",
"type": "int",
"access": "item",
"default": null
}
],
"subcategory": "1 :: Analyze Data",
"code": "\ntry:\n from ladybug.dt import DateTime\nexcept ImportError as e:\n raise ImportError('\\nFailed to import ladybug:\\n\\t{}'.format(e))\n\nmonth = _month_ or 9\nday = _day_ or 21\nhour = _hour_ if _hour_ is not None else 12\nminute = _minute_ or 0\n\ndatetime = DateTime(month, day, hour, minute)\nhoy = datetime.hoy\ndoy = datetime.doy\ndate = datetime\n",
"category": "Ladybug",
"name": "LB Calculate HOY",
"description": "Calculate hour of the year from month, day, hour, minute.\n-"
]
}
24 changes: 12 additions & 12 deletions ladybug_grasshopper/json/LB_Color_Range.json
@@ -1,29 +1,29 @@
{
"version": "1.7.0",
"nickname": "ColRange",
"description": "Use this component to access a library of typical gradients useful throughout Ladybug. \nThe output from this component should be plugged into the colors_ input of the\n\"Legend Parameters\" component.\n-\nFor an image of each of the gardients in the library, check here:\nhttps://github.com/ladybug-tools/lbt-grasshopper/blob/master/gradients.png\n-",
"outputs": [
[
{
"access": "None",
"type": null,
"name": "colors",
"description": "A series of colors to be plugged into the \"LB Legend Parameters\"\ncomponent.",
"type": null,
"access": "None",
"default": null
}
]
],
"code": "\ntry:\n from ladybug.color import Colorset\nexcept ImportError as e:\n raise ImportError('\\nFailed to import ladybug:\\n\\t{}'.format(e))\n\ntry:\n from ladybug_{{cad}}.color import color_to_color\n from ladybug_{{cad}}.{{plugin}} import turn_off_old_tag\nexcept ImportError as e:\n raise ImportError('\\nFailed to import ladybug_{{cad}}:\\n\\t{}'.format(e))\nturn_off_old_tag(ghenv.Component)\n\n\n_index_ = _index_ or 0\ncs = Colorset()\ncolors = [color_to_color(col) for col in cs[_index_]]\n",
"name": "LB Color Range",
"version": "1.7.1",
"category": "Ladybug",
"subcategory": "4 :: Extra",
"nickname": "ColRange",
"inputs": [
{
"access": "item",
"type": "int",
"name": "_index_",
"description": "An index refering to one of the following possible gradients:\n0 - Original Ladybug\n1 - Nuanced Ladybug\n2 - Multi-colored Ladybug\n3 - Ecotect\n4 - View Study\n5 - Shadow Study\n6 - Glare Study\n7 - Annual Comfort\n8 - Thermal Comfort\n9 - Peak Load Balance\n10 - Heat Sensation\n11 - Cold Sensation\n12 - Benefit/Harm\n13 - Harm\n14 - Benefit\n15 - Shade Benefit/Harm\n16 - Shade Harm\n17 - Shade Benefit\n18 - Energy Balance\n19 - Energy Balance w/ Storage\n20 - THERM\n21 - Cloud Cover\n22 - Black to White\n23 - Blue, Green, Red\n24 - Multicolored 2\n25 - Multicolored 3\n26 - OpenStudio Palette",
"type": "int",
"access": "item",
"default": null
}
],
"subcategory": "4 :: Extra",
"code": "\ntry:\n from ladybug.color import Colorset\nexcept ImportError as e:\n raise ImportError('\\nFailed to import ladybug:\\n\\t{}'.format(e))\n\ntry:\n from ladybug_{{cad}}.color import color_to_color\nexcept ImportError as e:\n raise ImportError('\\nFailed to import ladybug_{{cad}}:\\n\\t{}'.format(e))\n\n\n_index_ = _index_ or 0\ncs = Colorset()\ncolors = [color_to_color(col) for col in cs[_index_]]\n",
"category": "Ladybug",
"name": "LB Color Range",
"description": "Use this component to access a library of typical gradients useful throughout Ladybug. \nThe output from this component should be plugged into the colors_ input of the\n\"Legend Parameters\" component.\n-\nFor an image of each of the gardients in the library, check here:\nhttps://github.com/ladybug-tools/lbt-grasshopper/blob/master/gradients.png\n-"
]
}

0 comments on commit 45b4371

Please sign in to comment.