Skip to content

Commit

Permalink
fix(recipe): Relax restrictions on wea and add timestep
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkelkp committed Dec 6, 2023
1 parent 6db940b commit b8a8098
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions pollination/annual_daylight_enhanced/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# input/output alias
from pollination.alias.inputs.model import hbjson_model_grid_input
from pollination.alias.inputs.wea import wea_input_timestep_check
from pollination.alias.inputs.wea import wea_input
from pollination.alias.inputs.north import north_input
from pollination.alias.inputs.radiancepar import rad_par_annual_input, \
daylight_thresholds_input
Expand Down Expand Up @@ -76,7 +76,12 @@ class AnnualDaylightEntryPoint(DAG):
wea = Inputs.file(
description='Wea file.',
extensions=['wea', 'epw'],
alias=wea_input_timestep_check
alias=wea_input
)

timestep = Inputs.int(
description='Input wea timestep.', default=1,
spec={'type': 'integer', 'minimum': 1, 'maximum': 60}
)

schedule = Inputs.file(
Expand Down Expand Up @@ -107,7 +112,7 @@ class AnnualDaylightEntryPoint(DAG):
def run_two_phase_daylight_coefficient(
self, north=north, cpu_count=cpu_count, min_sensor_count=min_sensor_count,
radiance_parameters=radiance_parameters, grid_filter=grid_filter,
model=model, wea=wea
model=model, wea=wea, timestep=timestep
):
pass

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pollination-two-phase-daylight-coefficient==1.1.10
pollination-two-phase-daylight-coefficient==1.1.11

0 comments on commit b8a8098

Please sign in to comment.