Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(old): Remove OLD tag from all components in Rhino 8 #332

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified honeybee_grasshopper_core/icon/HB Config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified honeybee_grasshopper_core/icon/HB Facade Parameters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified honeybee_grasshopper_core/icon/HB Recipe Settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 17 additions & 17 deletions honeybee_grasshopper_core/json/HB_Check_Versions.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
{
"version": "1.7.0",
"nickname": "Versions",
"description": "Check the versions of the engines that are being used by the honeybee plugin.\nThis is useful for verifying that everything has been installed correctly\nand that the versions of the engines are as expected.\n-",
"outputs": [
[
{
"access": "None",
"type": null,
"name": "lbt_gh",
"description": "The version of Ladybug Tools for Grasshopper that is installed.",
"type": null,
"access": "None",
"default": null
},
{
"access": "None",
"type": null,
"name": "python",
"description": "The version of Python used for Ladybug Tools CLI calls.",
"type": null,
"access": "None",
"default": null
},
{
"access": "None",
"type": null,
"name": "radiance",
"description": "The version of Radiance used by Ladybug Tools (will be None if\nit is not installed).",
"type": null,
"access": "None",
"default": null
},
{
"access": "None",
"type": null,
"name": "openstudio",
"description": "The version of OpenStudio used by Ladybug Tools (will be None if\nit is not installed).",
"type": null,
"access": "None",
"default": null
},
{
"access": "None",
"type": null,
"name": "energyplus",
"description": "The version of EnergyPlus used by Ladybug Tools (will be None if\nit is not installed).",
"type": null,
"access": "None",
"default": null
}
]
],
"inputs": [],
"subcategory": "1 :: Visualize",
"code": "\ntry: # import the core honeybee dependencies\n from honeybee.config import folders as hb_folders\nexcept ImportError as e:\n raise ImportError('\\nFailed to import honeybee:\\n\\t{}'.format(e))\n\ntry:\n from ladybug_{{cad}}.config import folders as lbr_folders\n lbr_loaded = True\nexcept ImportError as e:\n lbr_loaded = False\n\ntry:\n from honeybee_radiance.config import folders as radiance_folders\n radiance_loaded = True\nexcept ImportError as e:\n radiance_loaded = False\n\ntry:\n from honeybee_energy.config import folders as energy_folders\n energy_loaded = True\nexcept ImportError:\n energy_loaded = False\n\n\n# output the versions\npython = hb_folders.python_version_str\nif lbr_loaded:\n lbt_gh = lbr_folders.lbt_{{plugin}}_version_str\nif radiance_loaded:\n radiance = radiance_folders.radiance_version_str\nif energy_loaded:\n openstudio = energy_folders.openstudio_version_str\n energyplus = energy_folders.energyplus_version_str\n",
"category": "Honeybee",
"code": "\ntry: # import the core honeybee dependencies\n from honeybee.config import folders as hb_folders\nexcept ImportError as e:\n raise ImportError('\\nFailed to import honeybee:\\n\\t{}'.format(e))\n\ntry:\n from ladybug_{{cad}}.config import folders as lbr_folders\n lbr_loaded = True\nexcept ImportError as e:\n lbr_loaded = False\n\ntry:\n from honeybee_radiance.config import folders as radiance_folders\n radiance_loaded = True\nexcept ImportError as e:\n radiance_loaded = False\n\ntry:\n from honeybee_energy.config import folders as energy_folders\n energy_loaded = True\nexcept ImportError:\n energy_loaded = False\n\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\n# output the versions\npython = hb_folders.python_version_str\nif lbr_loaded:\n lbt_gh = lbr_folders.lbt_{{plugin}}_version_str\nif radiance_loaded:\n radiance = radiance_folders.radiance_version_str\nif energy_loaded:\n openstudio = energy_folders.openstudio_version_str\n energyplus = energy_folders.energyplus_version_str\n",
"name": "HB Check Versions",
"description": "Check the versions of the engines that are being used by the honeybee plugin.\nThis is useful for verifying that everything has been installed correctly\nand that the versions of the engines are as expected.\n-"
"version": "1.7.1",
"category": "Honeybee",
"subcategory": "1 :: Visualize",
"nickname": "Versions",
"inputs": []
}
50 changes: 25 additions & 25 deletions honeybee_grasshopper_core/json/HB_Config.json
Original file line number Diff line number Diff line change
@@ -1,77 +1,77 @@
{
"version": "1.7.0",
"nickname": "Config",
"description": "Check the local configuration of the engines and data sets used by the honeybee\nplugin. This is useful for verifying that everything has been installed correctly\nand that the engines are configured as expected.\n-",
"outputs": [
[
{
"access": "None",
"type": null,
"name": "python_exe",
"description": "The path to the Python executable to be used for Ladybug\nTools CLI calls.",
"type": null,
"access": "None",
"default": null
},
{
"access": "None",
"type": null,
"name": "py_lib_install",
"description": "The path to where the Ladybug Tools Python packages\nare installed.",
"type": null,
"access": "None",
"default": null
},
{
"access": "None",
"type": null,
"name": "rad_install",
"description": "The path to Radiance installation folder if it exists.",
"type": null,
"access": "None",
"default": null
},
{
"access": "None",
"type": null,
"name": "os_install",
"description": "The path to OpenStudio installation folder if it exists.",
"type": null,
"access": "None",
"default": null
},
{
"access": "None",
"type": null,
"name": "ep_install",
"description": "The path to EnergyPlus installation folder if it exists.",
"type": null,
"access": "None",
"default": null
},
{
"access": "None",
"type": null,
"name": "hb_os_gem",
"description": "The path to the honeybee_openstudio_gem if it exists. This gem\ncontains libraries and measures for translating between Honeybee\nJSON schema and OpenStudio Model schema (OSM).",
"type": null,
"access": "None",
"default": null
},
{
"access": "None",
"type": null,
"name": "standards",
"description": "The path to the library of standards if it exists. This library\ncontains the default Modifiers, ModifierSets, Constructions,\nConstructionSets, Schedules, and ProgramTypes. It can be extended\nby dropping IDF or Honeybee JOSN files into the appropriate sub-folder.",
"type": null,
"access": "None",
"default": null
},
{
"access": "None",
"type": null,
"name": "asset_report",
"description": "A report of all the assets that have been loaded from the\nstandards library.",
"type": null,
"access": "None",
"default": null
},
{
"access": "None",
"type": null,
"name": "default_sim",
"description": "The path to the default simulation folder (where simulation\nfiles are written if not specified by the user.).",
"type": null,
"access": "None",
"default": null
}
]
],
"inputs": [],
"subcategory": "1 :: Visualize",
"code": "\ntry: # import the core honeybee dependencies\n from honeybee.config import folders as hb_folders\nexcept ImportError as e:\n raise ImportError('\\nFailed to import honeybee:\\n\\t{}'.format(e))\n\ntry:\n from honeybee_radiance.config import folders as radiance_folders\n from honeybee_radiance.lib.modifiers import MODIFIERS\n from honeybee_radiance.lib.modifiersets import MODIFIER_SETS\n radiance_loaded = True\nexcept ImportError as e:\n radiance_loaded = False\n\ntry:\n from honeybee_energy.config import folders as energy_folders\n from honeybee_energy.lib.materials import OPAQUE_MATERIALS\n from honeybee_energy.lib.materials import WINDOW_MATERIALS\n from honeybee_energy.lib.constructions import OPAQUE_CONSTRUCTIONS\n from honeybee_energy.lib.constructions import WINDOW_CONSTRUCTIONS\n from honeybee_energy.lib.constructions import SHADE_CONSTRUCTIONS\n from honeybee_energy.lib.constructionsets import CONSTRUCTION_SETS\n from honeybee_energy.lib.scheduletypelimits import SCHEDULE_TYPE_LIMITS\n from honeybee_energy.lib.schedules import SCHEDULES\n from honeybee_energy.lib.programtypes import PROGRAM_TYPES\n energy_loaded = True\nexcept ImportError:\n energy_loaded = False\n\n\n# output the paths to the honeybee core folders\nreport_strs = []\npython_exe = hb_folders.python_exe_path\npy_lib_install = hb_folders.python_package_path\ndefault_sim = hb_folders.default_simulation_folder\n\n\nif radiance_loaded: # output all of the paths to radiance_folders\n rad_install = radiance_folders.radiance_path\n standards = radiance_folders.standards_data_folder\n\n # generate a report of all the resources loaded from the library\n report_strs.append('{} modifiers loaded'.format(len(MODIFIERS)))\n report_strs.append('{} modifier sets loaded'.format(len(MODIFIER_SETS)))\n\n\nif energy_loaded: # output all of the paths to energy_folders\n os_install = energy_folders.openstudio_path\n ep_install = energy_folders.energyplus_path\n hb_os_gem = energy_folders.honeybee_openstudio_gem_path\n standards = energy_folders.standards_data_folder\n\n # generate a report of all the resources loaded from the library\n report_strs.append('{} opaque materials loaded'.format(len(OPAQUE_MATERIALS)))\n report_strs.append('{} window materials loaded'.format(len(WINDOW_MATERIALS)))\n report_strs.append('{} opaque counstructions loaded'.format(len(OPAQUE_CONSTRUCTIONS)))\n report_strs.append('{} window counstructions loaded'.format(len(WINDOW_CONSTRUCTIONS)))\n report_strs.append('{} shade counstructions loaded'.format(len(SHADE_CONSTRUCTIONS)))\n report_strs.append('{} construction sets loaded'.format(len(CONSTRUCTION_SETS)))\n report_strs.append('{} schedule types loaded'.format(len(SCHEDULE_TYPE_LIMITS)))\n report_strs.append('{} schedules loaded'.format(len(SCHEDULES)))\n report_strs.append('{} program types loaded'.format(len(PROGRAM_TYPES)))\n\nasset_report = '\\n'.join(report_strs)\n",
"category": "Honeybee",
"code": "\ntry: # import the core honeybee dependencies\n from honeybee.config import folders as hb_folders\nexcept ImportError as e:\n raise ImportError('\\nFailed to import honeybee:\\n\\t{}'.format(e))\n\ntry:\n from honeybee_radiance.config import folders as radiance_folders\n from honeybee_radiance.lib.modifiers import MODIFIERS\n from honeybee_radiance.lib.modifiersets import MODIFIER_SETS\n radiance_loaded = True\nexcept ImportError as e:\n radiance_loaded = False\n\ntry:\n from honeybee_energy.config import folders as energy_folders\n from honeybee_energy.lib.materials import OPAQUE_MATERIALS\n from honeybee_energy.lib.materials import WINDOW_MATERIALS\n from honeybee_energy.lib.constructions import OPAQUE_CONSTRUCTIONS\n from honeybee_energy.lib.constructions import WINDOW_CONSTRUCTIONS\n from honeybee_energy.lib.constructions import SHADE_CONSTRUCTIONS\n from honeybee_energy.lib.constructionsets import CONSTRUCTION_SETS\n from honeybee_energy.lib.scheduletypelimits import SCHEDULE_TYPE_LIMITS\n from honeybee_energy.lib.schedules import SCHEDULES\n from honeybee_energy.lib.programtypes import PROGRAM_TYPES\n energy_loaded = True\nexcept ImportError:\n energy_loaded = False\n\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\n# output the paths to the honeybee core folders\nreport_strs = []\npython_exe = hb_folders.python_exe_path\npy_lib_install = hb_folders.python_package_path\ndefault_sim = hb_folders.default_simulation_folder\n\n\nif radiance_loaded: # output all of the paths to radiance_folders\n rad_install = radiance_folders.radiance_path\n standards = radiance_folders.standards_data_folder\n\n # generate a report of all the resources loaded from the library\n report_strs.append('{} modifiers loaded'.format(len(MODIFIERS)))\n report_strs.append('{} modifier sets loaded'.format(len(MODIFIER_SETS)))\n\n\nif energy_loaded: # output all of the paths to energy_folders\n os_install = energy_folders.openstudio_path\n ep_install = energy_folders.energyplus_path\n hb_os_gem = energy_folders.honeybee_openstudio_gem_path\n standards = energy_folders.standards_data_folder\n\n # generate a report of all the resources loaded from the library\n report_strs.append('{} opaque materials loaded'.format(len(OPAQUE_MATERIALS)))\n report_strs.append('{} window materials loaded'.format(len(WINDOW_MATERIALS)))\n report_strs.append('{} opaque counstructions loaded'.format(len(OPAQUE_CONSTRUCTIONS)))\n report_strs.append('{} window counstructions loaded'.format(len(WINDOW_CONSTRUCTIONS)))\n report_strs.append('{} shade counstructions loaded'.format(len(SHADE_CONSTRUCTIONS)))\n report_strs.append('{} construction sets loaded'.format(len(CONSTRUCTION_SETS)))\n report_strs.append('{} schedule types loaded'.format(len(SCHEDULE_TYPE_LIMITS)))\n report_strs.append('{} schedules loaded'.format(len(SCHEDULES)))\n report_strs.append('{} program types loaded'.format(len(PROGRAM_TYPES)))\n\nasset_report = '\\n'.join(report_strs)\n",
"name": "HB Config",
"description": "Check the local configuration of the engines and data sets used by the honeybee\nplugin. This is useful for verifying that everything has been installed correctly\nand that the engines are configured as expected.\n-"
"version": "1.7.1",
"category": "Honeybee",
"subcategory": "1 :: Visualize",
"nickname": "Config",
"inputs": []
}
36 changes: 18 additions & 18 deletions honeybee_grasshopper_core/json/HB_Facade_Parameters.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
{
"version": "1.7.0",
"nickname": "FacParam",
"description": "Generate lists of facadce properties ordanized by the four primary cardinal\ndirections.\n_\nSuch properties can be glazing ratios, glazing heigths, sill heights, horizontal/\nvertical glazing splits for the \"HB Apertures by Ratio\" component. Or they could\nbe shade depths, angles, etc. for the \"HB Louver Shades\" component.\n-",
"outputs": [
[
{
"access": "None",
"type": null,
"name": "fac_par",
"description": "A list of properties for different cardinal directions to be\nplugged into the \"HB Apertures by Ratio\" component or the \"HB Louver\nShades\" component.",
"type": null,
"access": "None",
"default": null
}
]
],
"code": "\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\ndef check_param(parameter):\n if isinstance(parameter, bool):\n return parameter\n try:\n return float(parameter)\n except (TypeError, AttributeError, ValueError):\n return parameter\n\n\nfac_par = [check_param(par) for par in (_north_, _east_, _south_, _west_)]\n",
"name": "HB Facade Parameters",
"version": "1.7.1",
"category": "Honeybee",
"subcategory": "0 :: Create",
"nickname": "FacParam",
"inputs": [
{
"access": "item",
"type": "System.Object",
"name": "_north_",
"description": "Glazing parameter (boolean, float) for the north.",
"type": "System.Object",
"access": "item",
"default": 0
},
{
"access": "item",
"type": "System.Object",
"name": "_east_",
"description": "Glazing parameter (boolean, float) for the east.",
"type": "System.Object",
"access": "item",
"default": 0
},
{
"access": "item",
"type": "System.Object",
"name": "_south_",
"description": "Glazing parameter (boolean, float) for the south.",
"type": "System.Object",
"access": "item",
"default": 0
},
{
"access": "item",
"type": "System.Object",
"name": "_west_",
"description": "Glazing parameter (boolean, float) for the west.",
"type": "System.Object",
"access": "item",
"default": 0
}
],
"subcategory": "0 :: Create",
"code": "\n\ndef check_param(parameter):\n if isinstance(parameter, bool):\n return parameter\n try:\n return float(parameter)\n except (TypeError, AttributeError, ValueError):\n return parameter\n\n\nfac_par = [check_param(par) for par in (_north_, _east_, _south_, _west_)]\n",
"category": "Honeybee",
"name": "HB Facade Parameters",
"description": "Generate lists of facadce properties ordanized by the four primary cardinal\ndirections.\n_\nSuch properties can be glazing ratios, glazing heigths, sill heights, horizontal/\nvertical glazing splits for the \"HB Apertures by Ratio\" component. Or they could\nbe shade depths, angles, etc. for the \"HB Louver Shades\" component.\n-"
]
}
Loading