Skip to content

Commit

Permalink
fix(timestep): Add study info to raytracing DAG
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkelkp committed Dec 6, 2023
1 parent fe2a244 commit 18f0582
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pollination/annual_daylight/_raytracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ class AnnualDaylightRayTracing(DAG):
alias=daylight_thresholds_input
)

study_info = Inputs.file(
description='Optional study info file. This option is needed if the '
'time step is larger than 1.', optional=True
)

@task(template=DaylightCoefficient)
def total_sky(
self,
Expand Down Expand Up @@ -104,7 +109,8 @@ def annual_metrics_file(
sun_up_hours=sun_up_hours,
schedule=schedule,
thresholds=thresholds,
grid_name=grid_name
grid_name=grid_name,
study=study_info
):
return [
{
Expand Down

0 comments on commit 18f0582

Please sign in to comment.