Skip to content

Commit

Permalink
fix(input): Add option for epw input
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkelkp committed Nov 28, 2023
1 parent 8a2d88c commit 5f85599
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pollination/annual_daylight/_prepare_folder.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Prepare folder DAG for annual daylight."""
from dataclasses import dataclass
from pollination_dsl.dag import Inputs, GroupedDAG, task, Outputs
from pollination.honeybee_radiance.sun import CreateSunMatrix, ParseSunUpHours
from pollination.honeybee_radiance.sun import CreateSunMtx, ParseSunUpHours
from pollination.honeybee_radiance.translate import CreateRadianceFolderGrid
from pollination.honeybee_radiance.sky import CreateSkyDome, CreateSkyMatrix
from pollination.honeybee_radiance.octree import CreateOctreeStatic
Expand Down Expand Up @@ -65,16 +65,16 @@ class AnnualDaylightPrepareFolder(GroupedDAG):

wea = Inputs.file(
description='Wea file.',
extensions=['wea'],
extensions=['wea', 'epw'],
alias=wea_input_timestep_check
)

@task(template=CreateSunMatrix)
@task(template=CreateSunMtx)
def generate_sunpath(self, north=north, wea=wea):
"""Create sunpath for sun-up-hours."""
return [
{
'from': CreateSunMatrix()._outputs.sun_modifiers,
'from': CreateSunMtx()._outputs.sun_modifiers,
'to': 'resources/suns.mod'
}
]
Expand Down
2 changes: 1 addition & 1 deletion pollination/annual_daylight/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class AnnualDaylightEntryPoint(DAG):

wea = Inputs.file(
description='Wea file.',
extensions=['wea'],
extensions=['wea', 'epw'],
alias=wea_input_timestep_check
)

Expand Down

0 comments on commit 5f85599

Please sign in to comment.