diff --git a/wetb/prepost/dlcdefs.py b/wetb/prepost/dlcdefs.py index 687cc4ee90de57aaa11dc825539a21009930b1a1..ce8dbc144de91964c096119bf9f4e63159aa1574 100644 --- a/wetb/prepost/dlcdefs.py +++ b/wetb/prepost/dlcdefs.py @@ -320,8 +320,10 @@ def excel_stabcon(proot, fext='xlsx', pignore=None, sheet=0, tags_dict['[res_dir]'] = 'res/%s/' % dlc_case tags_dict['[log_dir]'] = 'logfiles/%s/' % dlc_case tags_dict['[htc_dir]'] = 'htc/%s/' % dlc_case - tags_dict['[case_id]'] = tags_dict['[Case id.]'] - tags_dict['[time_stop]'] = tags_dict['[time stop]'] + if '[Case id.]' in tags_dict.keys(): + tags_dict['[case_id]'] = tags_dict['[Case id.]'] + if '[time stop]' in tags_dict.keys(): + tags_dict['[time_stop]'] = tags_dict['[time stop]'] try: tags_dict['[turb_base_name]'] = tags_dict['[Turb base name]'] except KeyError: diff --git a/wetb/prepost/windIO.py b/wetb/prepost/windIO.py index ebf6e7647f4102f64e38e9a7a588b0d19abb515c..11468c0926e535196ffcaee1e69cde6c2b529a9d 100755 --- a/wetb/prepost/windIO.py +++ b/wetb/prepost/windIO.py @@ -1018,14 +1018,14 @@ class LoadResults(object): try: sig_rf = rainflow_astm(signal) - except: + except (TypeError) as e: + print(e) return [] if len(sig_rf) < 1 and not sig_rf: return [] hist_data, x, bin_avg = rfc_hist(sig_rf, no_bins) - m = np.atleast_1d(m) eq = []