I was trying to use the grid_filters for post processing of annual results to get results by room name which I had set up when creating the daylight models.
I came across a case where 2 room names were similar 'Studio and ‘LStudio’. When I used the filter ‘Studio’ it was also giving me the results for the ‘LStudio’. I know an easy fix would be to make sure the room names don’t contain any of the other room names, however this was already after annual daylight simulations on 400+ rooms, so it wasn’t feasible to go back and alter the room naming convention.
I had a look in the code in C:…ladybug_tools\python\Lib\site-packages\honeybee_radiance\writer.py and changed the code on line 819 from:
If you want to search for an exact string you can add ^ (start of the string) and $ (end of the string), e.g., ^Studio$.
With the new version of the annual-daylight recipe the post processing is executed in a CLI command. Since the grid_filter_ input is passed to the CLI command we can’t use the ^ character without an escape character which happens to also be ^. So you would have to type ^^Studio$ in grid_filter_.
Thanks for your response. In my initial post I forgot to mention that the room type names have numbers appended to them, so for example i would have a list of room names as the below: