Skip to content
Snippets Groups Projects
Commit 2673b5a9 authored by David Verelst's avatar David Verelst
Browse files

prepost.GenerateDLCs: set i_seed in case no variable tag seed is used

parent 93da9adf
No related branches found
No related tags found
No related merge requests found
...@@ -79,6 +79,8 @@ class GeneralDLC(object): ...@@ -79,6 +79,8 @@ class GeneralDLC(object):
cases_len.append(len(v)) cases_len.append(len(v))
cases_index = multi_for(list(map(range, cases_len))) 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: if '[wsp]' in variables_order:
i_wsp = variables_order.index('[wsp]') i_wsp = variables_order.index('[wsp]')
len_wsp = len(variables['[wsp]']) len_wsp = len(variables['[wsp]'])
...@@ -270,6 +272,7 @@ class GenerateDLCCases(GeneralDLC): ...@@ -270,6 +272,7 @@ class GenerateDLCCases(GeneralDLC):
self.add_constants_tag(dlc, constants) self.add_constants_tag(dlc, constants)
self.add_formulas(dlc, formulas) self.add_formulas(dlc, formulas)
self.add_formulas(dlc, general_functions) self.add_formulas(dlc, general_functions)
# TODO: before eval, check if all tags in formula's are present
self.eval_formulas(dlc) self.eval_formulas(dlc)
df = pd.DataFrame(dlc) df = pd.DataFrame(dlc)
if not os.path.exists(folder): if not os.path.exists(folder):
......
...@@ -64,6 +64,7 @@ def ReadFileHAWCStab2Header(fname): ...@@ -64,6 +64,7 @@ def ReadFileHAWCStab2Header(fname):
return df, units return df, units
# FIXME: with gradients currently ind has columns width of 28 instead of 14!!
class InductionResults(object): class InductionResults(object):
def __init__(self): def __init__(self):
pass pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment