Skip to content

Commit 260a240

Browse files
authored
Merge pull request #15569 from rmcdermo/master
Python: get scatplot working for verification (commented)
2 parents ed8312c + 478eb7e commit 260a240

File tree

3 files changed

+336
-66
lines changed

3 files changed

+336
-66
lines changed

Utilities/Python/FDS_validation_script.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,17 @@
4747
# close_figs=True,
4848
# verbose=True,
4949
# plot_range=["all"],
50-
# quantity_filter=["Target Heat Flux"],
5150
# ) # see notes below on plot_range
5251

5352
# # ----- write saved_data, drange to disk -----
5453
# import pickle
5554

5655
# # Save
57-
# with open("saved_data_debug.pkl", "wb") as f:
56+
# with open("saved_data_validation.pkl", "wb") as f:
5857
# pickle.dump((saved_data, drange), f)
5958

6059
# # Later...
61-
# with open("saved_data_debug.pkl", "rb") as f:
60+
# with open("saved_data_validation.pkl", "rb") as f:
6261
# saved_data, drange = pickle.load(f)
6362
# #---------------------------------------------
6463

Utilities/Python/FDS_verification_script.py

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,45 @@
2828

2929
# Dataplot and scatplot options
3030

31+
Dataplot_Inputs_File = '../Matlab/FDS_verification_dataplot_inputs.csv';
32+
Working_Dir = '../../Verification/';
33+
Manuals_Dir = '../../Manuals/';
34+
Scatterplot_Inputs_File = '../Matlab/FDS_verification_scatterplot_inputs.csv';
35+
3136
# Statistics output options
3237

33-
# Run dataplot and scatplot scripts
38+
Stats_Output = 'Verification'
39+
Scatterplot_Dir = '../../Manuals/FDS_Verification_Guide/SCRIPT_FIGURES/ScatterPlots/'
40+
41+
# # Run dataplot and scatplot scripts
42+
43+
# saved_data, drange = fdsplotlib.dataplot(config_filename=Dataplot_Inputs_File,
44+
# expdir=Working_Dir,
45+
# cmpdir=Working_Dir,
46+
# pltdir=Manuals_Dir,
47+
# close_figs=True,
48+
# verbose=True,
49+
# plot_range=["all"]) # plot_range[start, end], optionally instead use plot_list['Dataname']
50+
51+
# # ----- write saved_data, drange to disk -----
52+
# import pickle
53+
54+
# # Save
55+
# with open("saved_data_verification.pkl", "wb") as f:
56+
# pickle.dump((saved_data, drange), f)
57+
58+
# # Later...
59+
# with open("saved_data_verification.pkl", "rb") as f:
60+
# saved_data, drange = pickle.load(f)
61+
# #---------------------------------------------
3462

35-
fdsplotlib.dataplot(config_filename='../Matlab/FDS_verification_dataplot_inputs.csv',
36-
expdir='../../Verification/',
37-
cmpdir='../../Verification/',
38-
pltdir='../../Manuals/',
39-
close_figs=True,
40-
verbose=True,
41-
plot_range=[2,2]) # plot_range[start, end], optionally instead use plot_list['Dataname']
63+
# fdsplotlib.scatplot(saved_data,drange,
64+
# Manuals_Dir=Manuals_Dir,
65+
# Scatterplot_Inputs_File=Scatterplot_Inputs_File,
66+
# Stats_Output=Stats_Output,
67+
# Scatterplot_Dir=Scatterplot_Dir,
68+
# verbose=True,
69+
# )
4270

4371
# Special cases
4472

0 commit comments

Comments
 (0)