Skip to content

Commit 96ca245

Browse files
authored
Merge pull request #15268 from rmcdermo/master
Python: use runpy on preprocessing scripts
2 parents 9812070 + bb056d1 commit 96ca245

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

Utilities/Python/FDS_validation_script.py

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
11
#!$FIREMODELS/fds/.github/fds_python_env/bin/python
22

3-
import subprocess
43
import fdsplotlib
54
import importlib
6-
import os, runpy
5+
import runpy
76
importlib.reload(fdsplotlib) # use for development (while making changes to fdsplotlib.py)
87

9-
# # Scripts to run prior to dataplot
8+
# Scripts to run prior to dataplot
109

11-
# print("catchpole_spread_rates..."); subprocess.run(["python","./scripts/catchpole_spread_rates.py"])
12-
# print("NIST_deposition_gauge..."); subprocess.run(["python","./scripts/NIST_deposition_gauge.py"])
13-
# print("flame_height..."); subprocess.run(["python","./scripts/flame_height.py"])
14-
# print("NIST_RSE..."); subprocess.run(["python","./scripts/NIST_RSE.py"])
15-
# print("sippola_aerosol_deposition..."); subprocess.run(["python","./scripts/sippola_aerosol_deposition.py"])
16-
# print("layer_height..."); subprocess.run(["python","./scripts/layer_height.py"])
17-
# print("NIST_NRC_Corner_Effects..."); subprocess.run(["python","./scripts/NIST_NRC_Corner_Effects.py"])
18-
# # print("fm_data_center..."); subprocess.run(["python","./scripts/fm_data_center.py"])
19-
# print("LNG_Dispersion..."); subprocess.run(["python","./scripts/LNG_Dispersion.py"])
20-
# print("LNG_wind_profiles..."); subprocess.run(["python","./scripts/LNG_wind_profiles.py"])
21-
# print("FM_Vertical_Wall_Flames..."); subprocess.run(["python","./scripts/FM_Vertical_Wall_Flames.py"])
22-
# print("umd_line_burner_process..."); subprocess.run(["python","./scripts/umd_line_burner_process.py"])
23-
# # print("Askervein_Hill..."); subprocess.run(["python","./scripts/Askervein_Hill.py"])
24-
# print("UWO_Wind_Tunnel..."); subprocess.run(["python","./scripts/UWO_Wind_Tunnel.py"])
25-
# print("FM_Burner..."); subprocess.run(["python","./scripts/FM_Burner.py"])
26-
# print("Crown_Fires..."); subprocess.run(["python","./scripts/Crown_Fires.py"])
27-
# print("Ranz_Marshall..."); subprocess.run(["python","./scripts/Ranz_Marshall.py"])
28-
# print("Phoenix_LNG_Fires..."); subprocess.run(["python","./scripts/Phoenix_LNG_Fires.py"])
10+
print("catchpole_spread_rates..."); runpy.run_path("./scripts/catchpole_spread_rates.py", run_name="__main__")
11+
print("NIST_deposition_gauge..."); runpy.run_path("./scripts/NIST_deposition_gauge.py", run_name="__main__")
12+
print("flame_height..."); runpy.run_path("./scripts/flame_height.py", run_name="__main__")
13+
print("NIST_RSE..."); runpy.run_path("./scripts/NIST_RSE.py", run_name="__main__")
14+
print("sippola_aerosol_deposition..."); runpy.run_path("./scripts/sippola_aerosol_deposition.py", run_name="__main__")
15+
print("layer_height..."); runpy.run_path("./scripts/layer_height.py", run_name="__main__")
16+
print("NIST_NRC_Corner_Effects..."); runpy.run_path("./scripts/NIST_NRC_Corner_Effects.py", run_name="__main__")
17+
# print("fm_data_center..."); runpy.run_path("./scripts/fm_data_center.py", run_name="__main__")
18+
print("LNG_Dispersion..."); runpy.run_path("./scripts/LNG_Dispersion.py", run_name="__main__")
19+
print("LNG_wind_profiles..."); runpy.run_path("./scripts/LNG_wind_profiles.py", run_name="__main__")
20+
print("FM_Vertical_Wall_Flames..."); runpy.run_path("./scripts/FM_Vertical_Wall_Flames.py", run_name="__main__")
21+
print("umd_line_burner_process..."); runpy.run_path("./scripts/umd_line_burner_process.py", run_name="__main__")
22+
# print("Askervein_Hill..."); runpy.run_path("./scripts/Askervein_Hill.py", run_name="__main__")
23+
print("UWO_Wind_Tunnel..."); runpy.run_path("./scripts/UWO_Wind_Tunnel.py", run_name="__main__")
24+
print("FM_Burner..."); runpy.run_path("./scripts/FM_Burner.py", run_name="__main__")
25+
print("Crown_Fires..."); runpy.run_path("./scripts/Crown_Fires.py", run_name="__main__")
26+
print("Ranz_Marshall..."); runpy.run_path("./scripts/Ranz_Marshall.py", run_name="__main__")
27+
print("Phoenix_LNG_Fires..."); runpy.run_path("./scripts/Phoenix_LNG_Fires.py", run_name="__main__")
2928

3029
# Dataplot and scatplot options
3130

0 commit comments

Comments
 (0)