# Customized pmv analysis period

**URL:** <https://discourse.ladybug.tools/t/customized-pmv-analysis-period/18974>\
**Category:** ladybug-tools\
**Tags:** thermal-comfort, analysis-period\
**Created:** [July 15, 2022, 2:51pm UTC](https://discourse.ladybug.tools/t/customized-pmv-analysis-period/18974 "2022-07-15T14:51:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![etaghiloo](https://discourse.ladybug.tools/letter_avatar_proxy/v4/letter/e/ac91a4/32.png) [@etaghiloo](https://discourse.ladybug.tools/u/etaghiloo)\
**Post date:** [July 15, 2022, 2:51pm UTC](https://discourse.ladybug.tools/t/customized-pmv-analysis-period/18974/1 "2022-07-15T14:51:05Z")

</div>

Hi All,

Is there any method of defining only the occupied hours for the “LB comfort statistics” component?

The zone I’m trying to run a thermal comfort analysis for is empty at times. So, I created a 8760 value data of met rate (with some values being 0 due to not anyone being present at that zone at those hours) and connected it to the “LB PMV comfort” component and reasonably, what I got was a lower percent of neutral times compared to a met rate data with no 0s.  
what I’m interested in is finding out the percent of neutral “occupied” hours only.

ps: I read about applying a conditional statement to the visualization component to get rid of the unoccupied hours in a similar topic in the forum, but this only eliminates the unoccupied hours in the 3D chart and does not affect the calculated percent of hot/neutral/cold time.

Thanks in advance,  
Eli

here’s a snippet of what I did.

 ![comfort-occupied-hours-only](https://discourse.ladybug.tools/uploads/default/original/3X/2/e/2e4c8a35f85b2b9931a6c431a9f0e8bb477c1e37.png)

---

<div class="post-metadata">

**Author:** ![etaghiloo](https://discourse.ladybug.tools/letter_avatar_proxy/v4/letter/e/ac91a4/32.png) [@etaghiloo](https://discourse.ladybug.tools/u/etaghiloo)\
**Post date:** [July 26, 2022, 1:14pm UTC](https://discourse.ladybug.tools/t/customized-pmv-analysis-period/18974/2 "2022-07-26T13:14:48Z")

</div>

Hi!  
I manged to find a work around for the problem. 🙂

 ![neutral-occupied-time](https://discourse.ladybug.tools/uploads/default/original/3X/7/d/7d0f431469f58cdb4c50fabf1fdc45764851f182.png)

---

<div class="post-metadata">

**Author:** ![mkdg](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mkdg/32/20021_2.png) [@mkdg](https://discourse.ladybug.tools/u/mkdg)\
**Post date:** [November 2, 2022, 12:44pm UTC](https://discourse.ladybug.tools/t/customized-pmv-analysis-period/18974/3 "2022-11-02T12:44:36Z")

</div>

Hi @etaghiloo

interesting! I would like to do something similar and keep the comfort values for the whole year but only between 7am and 11pm. Now, I have a list for each room of the values for 8760 hours of the year.

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

Is there an easy way using LBT components to substitute the occupancy schedule in your graph to specific hour ranges (excluding night hours for the whole year)?

---

<div class="post-metadata">

**Author:** ![AbrahamYezioro](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/abrahamyezioro/32/3_2.png) [@AbrahamYezioro](https://discourse.ladybug.tools/u/AbrahamYezioro)\
**Post date:** [November 2, 2022, 1:50pm UTC](https://discourse.ladybug.tools/t/customized-pmv-analysis-period/18974/4 "2022-11-02T13:50:35Z")

</div>

Try the `ApplyAnalysisPeriod` component.  
-A.

---

<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:** [November 2, 2022, 7:02pm UTC](https://discourse.ladybug.tools/t/customized-pmv-analysis-period/18974/5 "2022-11-02T19:02:29Z")

</div>

You have the right idea, @AbrahamYezioro . The analysis period should be applied on the data collections before they get input to the PMV component. Then, the comfort object will show stats for only the analysis period.

---

<div class="post-metadata">

**Author:** ![amar](https://discourse.ladybug.tools/letter_avatar_proxy/v4/letter/a/22d042/32.png) [@amar](https://discourse.ladybug.tools/u/amar)\
**Post date:** [June 4, 2023, 3:27pm UTC](https://discourse.ladybug.tools/t/customized-pmv-analysis-period/18974/6 "2023-06-04T15:27:12Z")

</div>

Hi, could you please tell me how did you input the occupancy schedule data values?

---

<div class="post-metadata">

**Author:** ![nicolacallegaro](https://discourse.ladybug.tools/letter_avatar_proxy/v4/letter/n/0ea827/32.png) [@nicolacallegaro](https://discourse.ladybug.tools/u/nicolacallegaro)\
**Post date:** [July 25, 2024, 2:45pm UTC](https://discourse.ladybug.tools/t/customized-pmv-analysis-period/18974/7 "2024-07-25T14:45:49Z")

</div>

I did it this way. Hope it can help.

 ![image](https://discourse.ladybug.tools/uploads/default/original/3X/2/c/2c49ae1d9bc29ad9b437cf15f19632db6c451e5d.png)
