# LB Incident Radiation — "invalid literal for float(): -nan(ind)"

**URL:** <https://discourse.ladybug.tools/t/lb-incident-radiation-invalid-literal-for-float-nan-ind/40422>\
**Category:** ladybug\
**Tags:** daylight, sky, radiance\
**Created:** [May 26, 2026, 5:49am UTC](https://discourse.ladybug.tools/t/lb-incident-radiation-invalid-literal-for-float-nan-ind/40422 "2026-05-26T05:49:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Romer](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/romer/32/41313_2.png) [@Romer](https://discourse.ladybug.tools/u/Romer)\
**Post date:** [May 26, 2026, 5:49am UTC](https://discourse.ladybug.tools/t/lb-incident-radiation-invalid-literal-for-float-nan-ind/40422/1 "2026-05-26T05:49:23Z")

</div>

Hi,

I’m getting the following error when running LB Incident Radiation:

`Solution exception: invalid literal for float(): -nan(ind)`

**My setup:**

- Rhino units: millimeters

- Geometry: Flat planar srf.

**What I have tried:**

- Flipping the surfaces with the Flip component

- Disconnecting and reconnecting all inputs one by one

- Adding a grid size slider

The component turns red and results output shows Null. No other errors present except a warning on `_grid_size` before I connected the slider.

Here is the GH file with Internalised data: [Solar radiation based facade panels\_troubleshooting.gh](https://discourse.ladybug.tools/uploads/short-url/z8lPXNj7DZrEd4OTU60mUyOmRxv.gh) (42.9 KB)

 ![image](https://discourse.ladybug.tools/uploads/default/original/3X/0/d/0dedb32f969e0630fe943fd5fea12e795722357d.png)

Path for weatherfile: [DNK\_Copenhagen.061800\_IWEC.epw](https://energyplus-weather.s3.amazonaws.com/europe_wmo_region_6/DNK/DNK_Copenhagen.061800_IWEC/DNK_Copenhagen.061800_IWEC.zip)

current versions of software:

**Rhino:** Version 8 SR30 (8.30.26103.11001, 2026-04-13) (I run on an evaluation license)

**Grasshopper:** 1.0.0008

**Ladybug:** 1.10.6

**Radiance:** RADIANCE 5.4 2023-11-05 LBNL (5.4.4ee32974b1)

Could you please help me understand the cause of this error and its solution.

Thanks

---

<div class="post-metadata">

**Author:** ![mikkel](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mikkel/32/14362_2.png) [@mikkel](https://discourse.ladybug.tools/u/mikkel)\
**Post date:** [May 26, 2026, 9:38am UTC](https://discourse.ladybug.tools/t/lb-incident-radiation-invalid-literal-for-float-nan-ind/40422/2 "2026-05-26T09:38:26Z")

</div>

Hi @Romer and welcome to the forum.

> [@Romer](#):
>
> Apparently I cannot upload a .gh or rhino file as a new user, but here is a screenshot of my current flow

I upgraded your account from new user to basic user. Can you try again? Remember to internalize the geometry in the Grasshopper file.

---

<div class="post-metadata">

**Author:** ![Romer](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/romer/32/41313_2.png) [@Romer](https://discourse.ladybug.tools/u/Romer)\
**Post date:** [May 26, 2026, 11:29am UTC](https://discourse.ladybug.tools/t/lb-incident-radiation-invalid-literal-for-float-nan-ind/40422/3 "2026-05-26T11:29:42Z")

</div>

Thx Mikkel!

Here is the GH file. I added the Weather file as a URL link and internalized the Brep.

[Solar radiation based facade panels\_troubleshooting.gh](https://discourse.ladybug.tools/uploads/short-url/z8lPXNj7DZrEd4OTU60mUyOmRxv.gh) (42.9 KB)

Thank you guys. Hoping you can help me figure out this problem.

---

<div class="post-metadata">

**Author:** ![mikkel](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mikkel/32/14362_2.png) [@mikkel](https://discourse.ladybug.tools/u/mikkel)\
**Post date:** [May 26, 2026, 4:24pm UTC](https://discourse.ladybug.tools/t/lb-incident-radiation-invalid-literal-for-float-nan-ind/40422/4 "2026-05-26T16:24:32Z")

</div>

Hi @Romer,

The issue is the input in the cumulative sky matrix. You need the direct/diffuse radiation, not illuminance. See the image.

 ![image](https://discourse.ladybug.tools/uploads/default/original/3X/0/b/0b2a8a870bed248b45fdf88ac43a6783048e07f3.png)

---

<div class="post-metadata">

**Author:** ![Romer](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/romer/32/41313_2.png) [@Romer](https://discourse.ladybug.tools/u/Romer)\
**Post date:** [May 27, 2026, 7:32pm UTC](https://discourse.ladybug.tools/t/lb-incident-radiation-invalid-literal-for-float-nan-ind/40422/5 "2026-05-27T19:32:17Z")

</div>

Aaaah Wow. Thx Mikkel. You are a savior!

---

<div class="post-metadata">

**Author:** ![nishxrhino](https://discourse.ladybug.tools/letter_avatar_proxy/v4/letter/n/87869e/32.png) [@nishxrhino](https://discourse.ladybug.tools/u/nishxrhino)\
**Post date:** [July 16, 2026, 6:28am UTC](https://discourse.ladybug.tools/t/lb-incident-radiation-invalid-literal-for-float-nan-ind/40422/6 "2026-07-16T06:28:31Z")

</div>

would u be able to help me too? im tryna do a shading comparison project
