From e89586d44b210e32a240c0be1fec1738cb435da4 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Tue, 13 Jun 2023 09:46:59 -0500 Subject: [PATCH] snapshot... --- modules/deeplearning/cloud_opd_srcnn_abi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/deeplearning/cloud_opd_srcnn_abi.py b/modules/deeplearning/cloud_opd_srcnn_abi.py index 02e4b2b8..cadca1f9 100644 --- a/modules/deeplearning/cloud_opd_srcnn_abi.py +++ b/modules/deeplearning/cloud_opd_srcnn_abi.py @@ -750,8 +750,6 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): data = np.stack([bt_us, refl_us, cld_opd_us], axis=3) - h5f.close() - cld_opd_sres = nn.run_evaluate(data, ckpt_dir) cld_opd_sres = descale(cld_opd_sres, label_param, mean_std_dct) _, ylen, xlen, _ = cld_opd_sres.shape @@ -769,6 +767,8 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): # refl_out = denormalize(refl_out, 'refl_0_65um_nom', mean_std_dct) # cld_opd_out = denormalize(cld_opd_out, label_param, mean_std_dct) + h5f.close() + if out_file is not None: # np.save(out_file, (cld_opd_sres_out, refl_out, cld_opd_out, cld_opd_hres)) np.save(out_file, (cld_opd_sres_out, refl, cld_opd, cld_opd_hres)) -- GitLab