Skip to content

Commit 5ec891b

Browse files
Add radiance to docker file (#330)
2 parents abf681e + 22dd7b8 commit 5ec891b

3 files changed

Lines changed: 23 additions & 8 deletions

File tree

LadybugTools_Engine/Python/Dockerfile

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,27 @@ COPY . /LadybugTools_Toolkit
77
RUN pip3 install --no-cache-dir ./LadybugTools_Toolkit
88
RUN rm ./LadybugTools_Toolkit -rf
99

10-
#Install openstudio and dependencies.
1110
RUN apt-get update \
12-
&& apt-get install -y wget \
13-
&& wget https://github.com/NREL/OpenStudio/releases/download/v3.10.0/OpenStudio-3.10.0+86d7e215a1-Ubuntu-22.04-x86_64.deb \
11+
&& apt-get install wget -y
12+
13+
#Install openstudio and dependencies.
14+
RUN wget https://github.com/NREL/OpenStudio/releases/download/v3.10.0/OpenStudio-3.10.0+86d7e215a1-Ubuntu-22.04-x86_64.deb \
1415
&& dpkg-deb -R OpenStudio-3.10.0+86d7e215a1-Ubuntu-22.04-x86_64.deb . \
15-
&& rm OpenStudio-3.10.0+86d7e215a1-Ubuntu-22.04-x86_64.deb -y \
16-
&& apt install libgomp1 libx11-6 -y \
17-
&& apt-get remove wget -y \
16+
&& rm OpenStudio-3.10.0+86d7e215a1-Ubuntu-22.04-x86_64.deb \
17+
&& apt install libgomp1 libx11-6 -y
18+
19+
#install radiance
20+
RUN wget https://github.com/LBNL-ETA/Radiance/releases/download/rad5R4/Radiance_4ee32974_Linux.zip \
21+
&& apt-get install unzip -y \
22+
&& unzip Radiance_4ee32974_Linux.zip \
23+
&& tar --strip-components=1 -zxf radiance-5.4.4ee32974b1-Linux.tar.gz \
24+
&& rm radiance-5.4.4ee32974b1-Linux.tar.gz \
25+
&& rm Radiance_4ee32974_Linux.zip
26+
27+
#remove install packages and clean up
28+
RUN apt-get remove wget -y \
29+
&& apt-get remove unzip -y \
1830
&& apt autoremove -y
31+
32+
#add radiance directory to PATH
33+
ENV RAYPATH="/usr/local/radiance/lib"

LadybugTools_Engine/Python/src/ladybugtools_toolkit/bhom/wrapped/plot/utci_heatmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
required=False,
4141
)
4242

43-
def utci_heatmap(input_json:str, save_path = None) -> str:
43+
def utci_heatmap(input_json:str, save_path = None, epw_file:str = None) -> str:
4444
try:
4545

4646
if not input_json.startswith("{"): #assume it's a path

LadybugTools_Engine/Python/src/ladybugtools_toolkit/bhom/wrapped/plot/walkability_heatmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
required=False,
3737
)
3838

39-
def walkability_heatmap(input_json: str, save_path: str) -> str:
39+
def walkability_heatmap(input_json: str, save_path: str, epw_file:str = None) -> str:
4040
try:
4141
argsDict = json.loads(input_json)
4242

0 commit comments

Comments
 (0)