# scripting

**URL:** https://discourse.ladybug.tools/c/scripting/28.md

[Latest](https://discourse.ladybug.tools/latest.md) · [Categories](https://discourse.ladybug.tools/categories.md) · [Tags](https://discourse.ladybug.tools/tags.md)

---

## [About the scripting category](https://discourse.ladybug.tools/t/about-the-scripting-category/2114)

<div class="topic-metadata">

**Author:** [@admin](https://discourse.ladybug.tools/u/admin)\
**Replies:** 0

</div>

Questions related to using Ladybug Tools for scripting and development.

---

## [Anyone using Windsurf with Ladybug scripting workflows? Worried about its Python suggestions](https://discourse.ladybug.tools/t/anyone-using-windsurf-with-ladybug-scripting-workflows-worried-about-its-python-suggestions/40921)

<div class="topic-metadata">

**Author:** [@daviddavis](https://discourse.ladybug.tools/u/daviddavis)\
**Replies:** 1\
**Last updated:** [November 13, 2026, 6:46pm UTC](https://discourse.ladybug.tools/t/anyone-using-windsurf-with-ladybug-scripting-workflows-worried-about-its-python-suggestions/40921 "2026-11-13T18:46:14Z")

</div>

I’m working on a Grasshopper Python component that runs some energy-related post-processing, and I’ve been trying out Windsurf as my editor. The autocomplete is fast, but on a couple of occasions it suggested imports or …

---

## [Reason for the 2-degree solar altitude cutoff in SolarCal shortwave MRT?](https://discourse.ladybug.tools/t/reason-for-the-2-degree-solar-altitude-cutoff-in-solarcal-shortwave-mrt/40716)

<div class="topic-metadata">

**Author:** [@bgurtunca](https://discourse.ladybug.tools/u/bgurtunca)\
**Replies:** 3\
**Last updated:** [August 31, 2026, 9:16pm UTC](https://discourse.ladybug.tools/t/reason-for-the-2-degree-solar-altitude-cutoff-in-solarcal-shortwave-mrt/40716 "2026-08-31T21:16:33Z")

</div>

Hi all, and hi Chris, I am an architect building a browser-based environmental analysis tool. While validating my own solar position code I ended up measuring a few public implementations against JPL Horizons, and one…

---

## [Sky dome for FreeCAD](https://discourse.ladybug.tools/t/sky-dome-for-freecad/37106)

<div class="topic-metadata">

**Author:** [@F\_Rosa](https://discourse.ladybug.tools/u/F_Rosa)\
**Replies:** 1\
**Last updated:** [August 24, 2025, 11:45am UTC](https://discourse.ladybug.tools/t/sky-dome-for-freecad/37106 "2025-08-24T11:45:01Z")

</div>

Hello everyone! Firstly, I’d like to congratulate and thank you for the fantastic work you’re doing with the Ladybug tools! I’m working on a FreeCAD workbench that uses the Ladybug libraries, called Solar: I’ve alre…

---

## [Honeybee Vtk - custom colours / ColorSets](https://discourse.ladybug.tools/t/honeybee-vtk-custom-colours-colorsets/36529)

<div class="topic-metadata">

**Author:** [@jucroffi](https://discourse.ladybug.tools/u/jucroffi)\
**Replies:** 2\
**Last updated:** [May 1, 2025, 12:33am UTC](https://discourse.ladybug.tools/t/honeybee-vtk-custom-colours-colorsets/36529 "2025-05-01T00:33:07Z")

</div>

Hi everyone, I’m building an app using Streamlit that runs a couple of simulations. I’d like to customise the colours of the mesh results. For example, I’m running a view analysis and calculating a mean value per room.…

---

## [Artificial lighting simulations](https://discourse.ladybug.tools/t/artificial-lighting-simulations/36208)

<div class="topic-metadata">

**Author:** [@joao.pires.i](https://discourse.ladybug.tools/u/joao.pires.i)\
**Replies:** 0\
**Last updated:** [March 19, 2025, 3:02pm UTC](https://discourse.ladybug.tools/t/artificial-lighting-simulations/36208 "2025-03-19T15:02:57Z")

</div>

Hello there. I know ladybug legacy does support eletric light simulations, but i search for solutions to use ladybug legacy into my python script and dont find it. I already have a python script for create geometry Mod…

---

## [Sky description as a .mat file not a .sky file from lightsource.CIE](https://discourse.ladybug.tools/t/sky-description-as-a-mat-file-not-a-sky-file-from-lightsource-cie/36201)

<div class="topic-metadata">

**Author:** [@joao.pires.i](https://discourse.ladybug.tools/u/joao.pires.i)\
**Replies:** 5\
**Last updated:** [March 19, 2025, 12:50pm UTC](https://discourse.ladybug.tools/t/sky-description-as-a-mat-file-not-a-sky-file-from-lightsource-cie/36201 "2025-03-19T12:50:08Z")

</div>

hello everyone, I am facing a problem: I want a .mat file description of the sky, same as if I run a radiance command like: gensky -ang 45 0 -c -b 1 \> sky.mat To have a file with this content: void brightfunc skyfunc …

---

## [Change Albedo in Annual Irradiance Recipe](https://discourse.ladybug.tools/t/change-albedo-in-annual-irradiance-recipe/35703)

<div class="topic-metadata">

**Author:** [@Yannick](https://discourse.ladybug.tools/u/Yannick)\
**Replies:** 0\
**Last updated:** [January 22, 2025, 3:10pm UTC](https://discourse.ladybug.tools/t/change-albedo-in-annual-irradiance-recipe/35703 "2025-01-22T15:10:33Z")

</div>

Hello together, i was wondering if there is a way to change the default 0.2 Albedo value used in the Annual Irradiance Recipe, as i would like to study cases where the albedo is different than the 0.2. I saw that the G…

---

## [Views percent analysis using Ladybug Python](https://discourse.ladybug.tools/t/views-percent-analysis-using-ladybug-python/35401)

<div class="topic-metadata">

**Author:** [@jucroffi](https://discourse.ladybug.tools/u/jucroffi)\
**Replies:** 0\
**Last updated:** [December 11, 2024, 1:19am UTC](https://discourse.ladybug.tools/t/views-percent-analysis-using-ladybug-python/35401 "2024-12-11T01:19:46Z")

</div>

Hi all, Does anyone know if there is a way to run a Horizontal Radial Views Percent analysis in Python with Ladybug geometry objects extracted from a HBJson file? Many thanks :slight\_smile:

---

## [Extracting BREPs for Outdoor walls from HB\_object](https://discourse.ladybug.tools/t/extracting-breps-for-outdoor-walls-from-hb-object/35206)

<div class="topic-metadata">

**Author:** [@an\_s4](https://discourse.ladybug.tools/u/an_s4)\
**Replies:** 2\
**Last updated:** [November 18, 2024, 2:51pm UTC](https://discourse.ladybug.tools/t/extracting-breps-for-outdoor-walls-from-hb-object/35206 "2024-11-18T14:51:17Z")

</div>

Hello, For a specific problem, I am trying to extract the BREPs or polyline curve boundaries for the Exterior walls with outdoor boundary condition. I am using default HB tools, like HB Label Faces, and trying some pyth…

---

## [Header meaning in WEA-File](https://discourse.ladybug.tools/t/header-meaning-in-wea-file/35104)

<div class="topic-metadata">

**Author:** [@Yannick](https://discourse.ladybug.tools/u/Yannick)\
**Replies:** 0\
**Last updated:** [November 7, 2024, 3:39pm UTC](https://discourse.ladybug.tools/t/header-meaning-in-wea-file/35104 "2024-11-07T15:39:46Z")

</div>

Hello again :slight\_smile: i currently use the Annual Irradiance Recipe and i want to use different weather files, either from EPW-Data from PVGIS or own measured data which i convert to the WEA-Format. Everything is r…

---

## [Recipe fails after GH installation](https://discourse.ladybug.tools/t/recipe-fails-after-gh-installation/35025)

<div class="topic-metadata">

**Author:** [@Yannick](https://discourse.ladybug.tools/u/Yannick)\
**Replies:** 1\
**Last updated:** [October 31, 2024, 3:13pm UTC](https://discourse.ladybug.tools/t/recipe-fails-after-gh-installation/35025 "2024-10-31T15:13:25Z")

</div>

Hello again, i have a problem with my simulation environment. I am using ladybug and honeybee in python only and so far everything worked fine. Now i installed ladybug for Grasshopper as i had to test a model inside Gra…

---

## [Annual Irradiance Recipe Workflow](https://discourse.ladybug.tools/t/annual-irradiance-recipe-workflow/34761)

<div class="topic-metadata">

**Author:** [@Yannick](https://discourse.ladybug.tools/u/Yannick)\
**Replies:** 9\
**Last updated:** [October 23, 2024, 11:27am UTC](https://discourse.ladybug.tools/t/annual-irradiance-recipe-workflow/34761 "2024-10-23T11:27:03Z")

</div>

Hello again, i wanted to ask if there is a detailed documentation about the Annual Irradiance Recipe? So what is the workflow, which Radiance commands are used? And in general, does the Recipe use rtrace for calculatin…

---

## [Blurry Results with Accelerad and AnnualIrradiance Recipe](https://discourse.ladybug.tools/t/blurry-results-with-accelerad-and-annualirradiance-recipe/34923)

<div class="topic-metadata">

**Author:** [@Yannick](https://discourse.ladybug.tools/u/Yannick)\
**Replies:** 2\
**Last updated:** [October 23, 2024, 8:45am UTC](https://discourse.ladybug.tools/t/blurry-results-with-accelerad-and-annualirradiance-recipe/34923 "2024-10-23T08:45:36Z")

</div>

I am running the Annual Irradiance recipe in Python only and i was trying out Accelerad to speed up the simulation. So far everything is working and my simulation speeds up around 4x. But i get kind of blurry results wh…

---

## [Using time periods shorter than a year in Annual Irradiance Recipe](https://discourse.ladybug.tools/t/using-time-periods-shorter-than-a-year-in-annual-irradiance-recipe/34669)

<div class="topic-metadata">

**Author:** [@Yannick](https://discourse.ladybug.tools/u/Yannick)\
**Replies:** 4\
**Last updated:** [October 14, 2024, 8:48am UTC](https://discourse.ladybug.tools/t/using-time-periods-shorter-than-a-year-in-annual-irradiance-recipe/34669 "2024-10-14T08:48:49Z")

</div>

I know it might sound not intuitive, but i want to run the Annual Irradiance Recipe only for a month. But i am having troubles with the EPW - File, as i always get the error length of values does not match that expecte…

---

## [Editing or creating lbt-recipes](https://discourse.ladybug.tools/t/editing-or-creating-lbt-recipes/34592)

<div class="topic-metadata">

**Author:** [@Yannick](https://discourse.ladybug.tools/u/Yannick)\
**Replies:** 1\
**Last updated:** [September 26, 2024, 6:58am UTC](https://discourse.ladybug.tools/t/editing-or-creating-lbt-recipes/34592 "2024-09-26T06:58:25Z")

</div>

Hello, i am currently developing a radiation analysis for PV-Systems using honeybee-radiance together wit the Annual Irradiance Recipe in Python. Therefore it would be nice to have a time resolved ground albedo, as the…

---

## [Ghpython script next steps](https://discourse.ladybug.tools/t/ghpython-script-next-steps/34514)

<div class="topic-metadata">

**Author:** [@gangadhar](https://discourse.ladybug.tools/u/gangadhar)\
**Replies:** 0\
**Last updated:** [September 11, 2024, 4:52pm UTC](https://discourse.ladybug.tools/t/ghpython-script-next-steps/34514 "2024-09-11T16:52:53Z")

</div>

Create cylindrical supports with solid box structures on top supports\_boxes\_and\_roadways = support\_spacing = length / (num\_supports + 1) for i in range(1, num\_supports + 1): support\_x = i \* support\_spacing suppor…

---

## [Analysis period with timestep=4](https://discourse.ladybug.tools/t/analysis-period-with-timestep-4/33927)

<div class="topic-metadata">

**Author:** [@chojje](https://discourse.ladybug.tools/u/chojje)\
**Replies:** 0\
**Last updated:** [August 8, 2024, 12:30pm UTC](https://discourse.ladybug.tools/t/analysis-period-with-timestep-4/33927 "2024-08-08T12:30:36Z")

</div>

I want to create an analysis period with values over the year for each quarter i.e. timestep=4. However, since the end\_hour is set to 23 values from 23:15-23:45 are lost meaning there is a mismatch with my input data. Ca…

---

## [Parallelizing Direct\_Sun\_Hours](https://discourse.ladybug.tools/t/parallelizing-direct-sun-hours/33894)

<div class="topic-metadata">

**Author:** [@Valia](https://discourse.ladybug.tools/u/Valia)\
**Replies:** 0\
**Last updated:** [August 6, 2024, 3:48pm UTC](https://discourse.ladybug.tools/t/parallelizing-direct-sun-hours/33894 "2024-08-06T15:48:50Z")

</div>

Hello, I am working on an annual Direct Sun Hour Analysis for a rather high-resolution study\_mesh (262.144 faces). Since the process is computationally intensive, I am looking into ways to parallelize it. The way I hand…

---

## [LBT SDK, proper versions of the packages](https://discourse.ladybug.tools/t/lbt-sdk-proper-versions-of-the-packages/28978)

<div class="topic-metadata">

**Author:** [@Elie\_MED](https://discourse.ladybug.tools/u/Elie_MED)\
**Replies:** 1\
**Last updated:** [July 15, 2024, 12:12pm UTC](https://discourse.ladybug.tools/t/lbt-sdk-proper-versions-of-the-packages/28978 "2024-07-15T12:12:04Z")

</div>

Hi all, I am using the LBT SDK for scripts/projects completely outside Grasshopper, using my own Python virtual environment to run my scripts. I am facing some issues with the dependencies and versions of the LBT/polli…

---

## [Ladybug and Honeybee Python libraries citation](https://discourse.ladybug.tools/t/ladybug-and-honeybee-python-libraries-citation/28785)

<div class="topic-metadata">

**Author:** [@jucroffi](https://discourse.ladybug.tools/u/jucroffi)\
**Replies:** 0\
**Last updated:** [July 12, 2024, 7:35am UTC](https://discourse.ladybug.tools/t/ladybug-and-honeybee-python-libraries-citation/28785 "2024-07-12T07:35:03Z")

</div>

Hi all, How should I cite the Ladybug and Honeybee core python libraries in a publication paper? Thank you, J

---

## [Pip install confusion?](https://discourse.ladybug.tools/t/pip-install-confusion/25276)

<div class="topic-metadata">

**Author:** [@edpmay](https://discourse.ladybug.tools/u/edpmay)\
**Replies:** 4\
**Last updated:** [June 27, 2024, 9:14pm UTC](https://discourse.ladybug.tools/t/pip-install-confusion/25276 "2024-06-27T21:14:57Z")

</div>

This might be a question for the Rhino forum, but thought I’d try here first. I am having trouble pip installing to the ladybug\_tools interpreter and wonder if anyone has a thought on how to solve? I am trying to update…

---

## [Radiance modules headless](https://discourse.ladybug.tools/t/radiance-modules-headless/25149)

<div class="topic-metadata">

**Author:** [@MCOVale](https://discourse.ladybug.tools/u/MCOVale)\
**Replies:** 1\
**Last updated:** [June 12, 2024, 1:58pm UTC](https://discourse.ladybug.tools/t/radiance-modules-headless/25149 "2024-06-12T13:58:39Z")

</div>

Hi everyone, My current project consists in running Rhino and Grasshopper headless, from a python script, using the rhinoinside package. I have a Grasshopper file that i pretty much want to “translate” in python script,…

---

## [Problem in defining the context\_geometry in RadiationStudy](https://discourse.ladybug.tools/t/problem-in-defining-the-context-geometry-in-radiationstudy/25106)

<div class="topic-metadata">

**Author:** [@sufia89](https://discourse.ladybug.tools/u/sufia89)\
**Replies:** 1\
**Last updated:** [June 5, 2024, 4:12pm UTC](https://discourse.ladybug.tools/t/problem-in-defining-the-context-geometry-in-radiationstudy/25106 "2024-06-05T16:12:14Z")

</div>

Hi, I am trying to write a code in python using the RadiationStudy of ladybug\_radiance package. There is a need to define context\_geometry which is “A list of ladybug geometry Face3D and/or Mesh3D that can block the vi…

---

## [Using Honeybee-Schemas within Typescript?](https://discourse.ladybug.tools/t/using-honeybee-schemas-within-typescript/24857)

<div class="topic-metadata">

**Author:** [@edpmay](https://discourse.ladybug.tools/u/edpmay)\
**Replies:** 0\
**Last updated:** [May 5, 2024, 10:01pm UTC](https://discourse.ladybug.tools/t/using-honeybee-schemas-within-typescript/24857 "2024-05-05T22:01:02Z")

</div>

Hi, This may not be the right place to post this question, but I am wondering if someone might be able to provide some high-level guidance on how to use the Honeybee-Schema documentation within a new TypeScript applicat…

---

## [Spatial Useful Daylight Illuminance (sUDI)](https://discourse.ladybug.tools/t/spatial-useful-daylight-illuminance-sudi/15978)

<div class="topic-metadata">

**Author:** [@gzorzeto](https://discourse.ladybug.tools/u/gzorzeto)\
**Replies:** 7\
**Last updated:** [November 16, 2023, 8:07am UTC](https://discourse.ladybug.tools/t/spatial-useful-daylight-illuminance-sudi/15978 "2023-11-16T08:07:57Z")

</div>

Hey there! Since I find Useful Daylight Illuminance (UDI) a much more accurate method to predict daylight performance than Daylight Autonomy (as UDI can possibly account for glare discomfort), I decided to look for an e…

---

## [Problem running URBANopt from dragonfly core lib in a script](https://discourse.ladybug.tools/t/problem-running-urbanopt-from-dragonfly-core-lib-in-a-script/23148)

<div class="topic-metadata">

**Author:** [@bdelcroix](https://discourse.ladybug.tools/u/bdelcroix)\
**Replies:** 1\
**Last updated:** [November 9, 2023, 7:10pm UTC](https://discourse.ladybug.tools/t/problem-running-urbanopt-from-dragonfly-core-lib-in-a-script/23148 "2023-11-09T19:10:19Z")

</div>

Hello, I try to run a URBANopt (version 0.10.0) simulation using the core library of Dragonfly from a script. The core libraries of LBT (lbt-ladybug, lbt-honeybee and lbt-dragonfly) were installed in a conda environment…

---

## [AssertionError: No URBANopt Gemfile was found in dragonfly\_energy.config.folders](https://discourse.ladybug.tools/t/assertionerror-no-urbanopt-gemfile-was-found-in-dragonfly-energy-config-folders/20756)

<div class="topic-metadata">

**Author:** [@mooyeol.oh](https://discourse.ladybug.tools/u/mooyeol.oh)\
**Replies:** 7\
**Last updated:** [November 3, 2023, 11:37pm UTC](https://discourse.ladybug.tools/t/assertionerror-no-urbanopt-gemfile-was-found-in-dragonfly-energy-config-folders/20756 "2023-11-03T23:37:47Z")

</div>

Hello. I am leaving a question because I am getting an error while using the dragonfly module. from dragonfly\_energy.run import prepare\_urbanopt\_folder An error occurred when executing the prepare\_urbanopt\_folder funct…

---

## [Delete simulation folder after run](https://discourse.ladybug.tools/t/delete-simulation-folder-after-run/23078)

<div class="topic-metadata">

**Author:** [@JobdeVogel](https://discourse.ladybug.tools/u/JobdeVogel)\
**Replies:** 2\
**Last updated:** [November 3, 2023, 12:37pm UTC](https://discourse.ladybug.tools/t/delete-simulation-folder-after-run/23078 "2023-11-03T12:37:47Z")

</div>

Hi, When I run my Honeybee recipe I can specify the simulation output folder with: settings = RecipeSettings() settings.workers = WORKERS settings.report\_out = False settings.folder = SIM\_OUT\_FOLDER + '/' + model.displ…

---

## [When working with python - unexpected keyword argument 'closed'](https://discourse.ladybug.tools/t/when-working-with-python-unexpected-keyword-argument-closed/21977)

<div class="topic-metadata">

**Author:** [@Ronja](https://discourse.ladybug.tools/u/Ronja)\
**Replies:** 2\
**Last updated:** [September 3, 2023, 4:51am UTC](https://discourse.ladybug.tools/t/when-working-with-python-unexpected-keyword-argument-closed/21977 "2023-09-03T04:51:06Z")

</div>

I am trying to replicate the simple chart form the pollination example in VSCode. Running into following problem Exception has occurred: TypeError DatetimeArray.\_generate\_range() got an unexpected keyword argument ‘clo…

[Next page](https://discourse.ladybug.tools/c/scripting/28.md?page=1)
