diff --git a/wetb/prepost/GenerateDLCs.py b/wetb/prepost/GenerateDLCs.py index 0a08058186d2fbf30909f5c544421bfc8161832c..f4c83750964c2e12541a5b237bd2690e7a436740 100644 --- a/wetb/prepost/GenerateDLCs.py +++ b/wetb/prepost/GenerateDLCs.py @@ -79,6 +79,8 @@ class GeneralDLC(object): cases_len.append(len(v)) cases_index = multi_for(list(map(range, cases_len))) + # when no seeds are used, otherwise i_seed is not set + i_seed = -1 if '[wsp]' in variables_order: i_wsp = variables_order.index('[wsp]') len_wsp = len(variables['[wsp]']) @@ -270,6 +272,7 @@ class GenerateDLCCases(GeneralDLC): self.add_constants_tag(dlc, constants) self.add_formulas(dlc, formulas) self.add_formulas(dlc, general_functions) + # TODO: before eval, check if all tags in formula's are present self.eval_formulas(dlc) df = pd.DataFrame(dlc) if not os.path.exists(folder): diff --git a/wetb/prepost/hawcstab2.py b/wetb/prepost/hawcstab2.py index 9eaaf88a6108a6c13210557c345b7bbff1f793af..65ac0b368b7c24d1b449edc332ea980fb3493c3b 100644 --- a/wetb/prepost/hawcstab2.py +++ b/wetb/prepost/hawcstab2.py @@ -64,6 +64,7 @@ def ReadFileHAWCStab2Header(fname): return df, units +# FIXME: with gradients currently ind has columns width of 28 instead of 14!! class InductionResults(object): def __init__(self): pass