Skip to content

Commit

Permalink
fix(recipe): Update to use new pollination-honeybee-radiance
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey authored and Chris Mackey committed Mar 25, 2021
1 parent a8781dd commit 89d28f5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pytest==6.2.2
twine==3.4.1
wheel==0.36.2
setuptools==54.1.2
setuptools==54.2.0
12 changes: 6 additions & 6 deletions pollination/annual_daylight/entry.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from pollination_dsl.dag import Inputs, DAG, task, Outputs
from dataclasses import dataclass
from pollination.honeybee_radiance.sun import CreateSunMatrix, ParseSunUpHours
from pollination.honeybee_radiance.translate import CreateRadianceFolder
from pollination.honeybee_radiance.translate import CreateRadianceFolderGrid
from pollination.honeybee_radiance.octree import CreateOctree, CreateOctreeWithSky
from pollination.honeybee_radiance.sky import CreateSkyDome, CreateSkyMatrix
from pollination.honeybee_radiance.post_process import AnnualDaylightMetrics
Expand Down Expand Up @@ -97,17 +97,17 @@ def generate_sunpath(self, north=north, wea=wea):
}
]

@task(template=CreateRadianceFolder)
def create_rad_folder(self, input_model=model, sensor_grid=grid_filter):
@task(template=CreateRadianceFolderGrid)
def create_rad_folder(self, input_model=model, grid_filter=grid_filter):
"""Translate the input model to a radiance folder."""
return [
{'from': CreateRadianceFolder()._outputs.model_folder, 'to': 'model'},
{'from': CreateRadianceFolderGrid()._outputs.model_folder, 'to': 'model'},
{
'from': CreateRadianceFolder()._outputs.sensor_grids_file,
'from': CreateRadianceFolderGrid()._outputs.sensor_grids_file,
'to': 'results/grids_info.json'
},
{
'from': CreateRadianceFolder()._outputs.sensor_grids,
'from': CreateRadianceFolderGrid()._outputs.sensor_grids,
'description': 'Sensor grids information.'
}
]
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pollination-honeybee-radiance>=0.6.6
pollination-alias>=0.5.1
pollination-honeybee-radiance>=0.7.1
pollination-alias>=0.5.3

0 comments on commit 89d28f5

Please sign in to comment.