Skip to content

Commit

Permalink
refactor: use an updated function to get the docker image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mostaphaRoudsari committed Feb 6, 2021
1 parent 8e65d3c commit ac8b8a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions pollination/honeybee_radiance/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
"""Honeybee Radiance plugin for Pollination."""
from pollination_dsl.package import get_requirement_version
from pollination_dsl.common import get_docker_image_from_dependency

# set the version for docker image dynamically based on honeybee-radiance version
# in dependencies
image_version = get_requirement_version(__package__, 'honeybee-radiance')
image_id = f'ladybugtools/honeybee-radiance:{image_version}'
image_id = get_docker_image_from_dependency(
__package__, 'honeybee-radiance', 'ladybugtools'
)

__pollination__ = {
'app_version': '5.4', # optional - tag for version of Radiance
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pollination-dsl==0.8.8
pollination-dsl>=0.9.0
honeybee-radiance==1.29.9

0 comments on commit ac8b8a2

Please sign in to comment.