Skip to content

Commit

Permalink
fix(direct): Ensure direct results are averaged across RGB
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey authored and Chris Mackey committed Mar 3, 2022
1 parent 95a8612 commit bc81f9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions pollination/annual_daylight/_raytracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def direct_sunlight(
sensor_count=sensor_count,
modifiers=sun_modifiers,
sensor_grid=sensor_grid,
conversion='47.4 119.9 11.6',
output_format='a', # make it ascii so we expose the file as a separate output
scene_file=octree_file_with_suns,
bsdf_folder=bsdfs
Expand All @@ -90,6 +91,7 @@ def direct_sky(
sensor_count=sensor_count,
sky_matrix=sky_matrix_direct, sky_dome=sky_dome,
sensor_grid=sensor_grid,
conversion='47.4 119.9 11.6',
scene_file=octree_file,
bsdf_folder=bsdfs
):
Expand All @@ -108,6 +110,7 @@ def total_sky(
sensor_count=sensor_count,
sky_matrix=sky_matrix, sky_dome=sky_dome,
sensor_grid=sensor_grid,
conversion='47.4 119.9 11.6',
scene_file=octree_file,
bsdf_folder=bsdfs
):
Expand All @@ -127,8 +130,7 @@ def output_matrix_math(
name=grid_name,
direct_sky_matrix=direct_sky._outputs.result_file,
total_sky_matrix=total_sky._outputs.result_file,
sunlight_matrix=direct_sunlight._outputs.result_file,
conversion='47.4 119.9 11.6'
sunlight_matrix=direct_sunlight._outputs.result_file
):
return [
{
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pollination-honeybee-radiance==0.16.6
pollination-alias==0.9.13
pollination-honeybee-radiance==0.18.0
pollination-alias==0.10.5
pollination-path==0.3.0

0 comments on commit bc81f9d

Please sign in to comment.