Skip to content

Commit fbce269

Browse files
committed
update to ignore .nc files
1 parent 955169b commit fbce269

File tree

179 files changed

+192
-26795
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+192
-26795
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
.Rhistory
33
.RData
44
.Ruserdata
5-
*.vdfx
5+
**/*.vdfx
66
**/*.vmfx
7+
**/*.nc
78
.apps
89
*.pkl
910
**/*.hpp
@@ -19,4 +20,4 @@ build/
1920
venv/
2021
.png
2122
**/.DS_Store
22-
.idea/
23+
.idea/

stanify/calibrator/draws_data_mapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def transform_input(vensim, setting, precision, numeric, prior, output_format):
148148
## precision for both draws2data and data2draws
149149
precision['Q'] = len(setting['target_simulated_vector_names'])
150150

151-
setting['model_name'] = setting['model_name'] + f'_S{precision["S"]}N{precision["N"]}R{precision["R"]}_M{precision["M"]}'
151+
setting['model_name'] = setting['model_name'] + f'_S{precision["S"]}N{precision["N"]}Q{precision["Q"]}R{precision["R"]}_M{precision["M"]}_ps{numeric["process_noise_scale"]}'
152152

153153
# obs vectors match draws2data and data2draws
154154
numeric_setting = dict(**numeric)

stanify/calibrator/visualizer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
def save_fig(model_name, is_draws2data, plot_name):
2222
plot_path = get_plot_path(model_name)
23-
fig_name = f"{plot_path}/{plot_name}"
23+
fig_name = f"{plot_path}/{model_name}_{plot_name}"
2424
if is_draws2data:
2525
fig_name = fig_name + "_draws2data"
2626
else:
@@ -32,6 +32,7 @@ def plot_qoi(sbc_precision, setting, precision, idata_kwargs, model_name):
3232
#sbc = xr.open_dataset(f"{data_path}/sbc.nc")
3333
sbc = sbc_precision
3434
figsize = (30, 15)
35+
# TODO @Oriol how to replace to_dataframe? values?
3536
if precision['R'] > 1:
3637
sbc.observed_data.to_dataframe()[idata_kwargs['prior_predictive']].plot(by='region', figsize = figsize)
3738
else:

0 commit comments

Comments
 (0)