# readEio Mulitple Zones

**URL:** <https://discourse.ladybug.tools/t/readeio-mulitple-zones/9504>\
**Category:** honeybee\[+\]\
**Tags:** energyplus, energy, hbzones\
**Created:** [April 24, 2020, 9:24pm UTC](https://discourse.ladybug.tools/t/readeio-mulitple-zones/9504 "2020-04-24T21:24:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mauricio](https://discourse.ladybug.tools/letter_avatar_proxy/v4/letter/m/90db22/32.png) [@Mauricio](https://discourse.ladybug.tools/u/Mauricio)\
**Post date:** [April 24, 2020, 9:24pm UTC](https://discourse.ladybug.tools/t/readeio-mulitple-zones/9504/1 "2020-04-24T21:24:44Z")

</div>

I was getting weird behaviour from the readEio component if my model included multiple zones. The Cool Design day Load had only one value after the header.

Digging into the component code I found that it wasn’t iterating over all zones, although it did record them in an array. I’ve replaced lines 188, 189:

coolDesLoad.append(createHeader(‘Design Day Cooling Load’, zoneName))  
heatDesLoad.append(createHeader(‘Design Day Heating Load’, zoneName))

with:

for zoneCount, zoneName in enumerate(zoneNames):  
coolDesLoad.append(createHeader(‘Design Day Cooling Load’, zoneName))  
heatDesLoad.append(createHeader(‘Design Day Heating Load’, zoneName))

so I’ve included just the one line, which I guess got lost somewhere along the way because it’s passing zoneName as an argument, and zoneName is declared outside the scope of the first two lines.

Hope this helps someone

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [May 9, 2020, 1:45pm UTC](https://discourse.ladybug.tools/t/readeio-mulitple-zones/9504/2 "2020-05-09T13:45:34Z")

</div>

Hi @Mauricio, I shared this post with @chris and he should get back to you soon. Thank you for posting the question and welcome to the forum.

---

<div class="post-metadata">

**Author:** ![chris](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/chris/32/10179_2.png) [@chris](https://discourse.ladybug.tools/u/chris)\
**Post date:** [May 10, 2020, 2:43am UTC](https://discourse.ladybug.tools/t/readeio-mulitple-zones/9504/3 "2020-05-10T02:43:35Z")

</div>

Thank you for reporting this issue, @Mauricio , and for providing the fix. I tested your code and it worked well so I implemented it in the code base:

> <https://github.com/ladybug-tools/honeybee-legacy/commit/a683ae69f3457a9a7170357511d9e602cc39b46c>

Thank you, again!

---

<div class="post-metadata">

**Author:** ![Mauricio](https://discourse.ladybug.tools/letter_avatar_proxy/v4/letter/m/90db22/32.png) [@Mauricio](https://discourse.ladybug.tools/u/Mauricio)\
**Post date:** [May 10, 2020, 5:15pm UTC](https://discourse.ladybug.tools/t/readeio-mulitple-zones/9504/4 "2020-05-10T17:15:33Z")

</div>

You’re welcome Chris but no thanks needed, you guys have done an outstanding job providing HB/LB and every other tool, I should be the one thanking you… so thanks haha.

best wishes,

M
