def total_sky(self,
               radiance_parameters=radiance_parameters,
               fixed_radiance_parameters='-aa 0.0 -I -c 1 -faf',
               sensor_count=sensor_count,
               sky_matrix=sky_matrix,
               sky_dome=sky_dome,
               sensor_grid=sensor_grid,
               scene_file=octree_file,
               bsdf_folder=bsdfs):
     return [{
         'from': DaylightCoefficient()._outputs.result_file,
         'to': 'total_sky.ill'
     }]
 def total_sky(
         self,
         name=grid_name,
         radiance_parameters=radiance_parameters,
         fixed_radiance_parameters='-aa 0.0 -I -c 1 -faf',
         sensor_count=sensor_count,
         sky_matrix=sky_matrix,
         sky_dome=sky_dome,
         sensor_grid=mirror_the_grid._outputs.base_file,
         conversion='0.265 0.670 0.065',  # divide by 179
         scene_file=octree_file):
     return [{
         'from': DaylightCoefficient()._outputs.result_file,
         'to': 'shortwave/initial_results/total_sky/{{self.name}}.ill'
     }]
 def ground_reflected_sky(
         self,
         name=grid_name,
         radiance_parameters=radiance_parameters,
         fixed_radiance_parameters='-aa 0.0 -I -c 1',
         sensor_count=sensor_count,
         sky_matrix=sky_matrix,
         sky_dome=sky_dome,
         sensor_grid=mirror_the_grid._outputs.mirrored_file,
         conversion='0.265 0.670 0.065',  # divide by 179
         output_format='a',  # make it ascii so we expose the file as a separate output
         header='remove',  # remove header to make it process-able later
         scene_file=octree_file):
     return [{
         'from': DaylightCoefficient()._outputs.result_file,
         'to': 'shortwave/results/reflected/{{self.name}}.ill'
     }]
 def total_sky_spec_shade_group(
         self,
         grid=grid_name,
         group=group_name,
         radiance_parameters=radiance_parameters,
         fixed_radiance_parameters='-aa 0.0 -I -c 1 -faf',
         sensor_count=sensor_count,
         sky_matrix=sky_matrix,
         sky_dome=sky_dome,
         sensor_grid=sensor_grid,
         conversion='0.265 0.670 0.065',  # divide by 179
         scene_file=octree_file):
     return [{
         'from':
         DaylightCoefficient()._outputs.result_file,
         'to':
         'shd_trans/initial/{{self.group}}/total_sky/{{self.grid}}.ill'
     }]
 def ground_reflected_sky_shade_group(
         self,
         grid=grid_name,
         group=group_name,
         radiance_parameters=radiance_parameters,
         fixed_radiance_parameters='-aa 0.0 -I -c 1',
         sensor_count=sensor_count,
         sky_matrix=sky_matrix,
         sky_dome=sky_dome,
         sensor_grid=ref_sensor_grid,
         conversion='0.265 0.670 0.065',  # divide by 179
         output_format='a',  # make it ascii so we expose the file as a separate output
         header='remove',  # remove header to make it process-able later
         scene_file=octree_file):
     return [{
         'from':
         DaylightCoefficient()._outputs.result_file,
         'to':
         'shd_trans/final/{{self.grid}}/{{self.group}}/reflected.ill'
     }]
def test_daylight_coefficient():
    function = DaylightCoefficient().queenbee
    assert function.name == 'daylight-coefficient'
    assert isinstance(function, Function)