diff --git a/traval/params.py b/traval/params.py index caea7ce..97b798e 100644 --- a/traval/params.py +++ b/traval/params.py @@ -159,6 +159,7 @@ def from_csv(cls, csvfile): TravalParameters """ params = pd.read_csv(csvfile, index_col=[0, 1, 2]) + params.sort_index(inplace=True) for i, (v, t) in params.loc[:, ["value", "dtype"]].iterrows(): if t == "float": v = float(v) diff --git a/traval/rulelib.py b/traval/rulelib.py index 687253c..6cede8a 100755 --- a/traval/rulelib.py +++ b/traval/rulelib.py @@ -498,7 +498,7 @@ def rule_pastas_outside_pi( # apply minimum ci if passed if min_ci is not None: - # check if mean of current interval is smalller than ci + # check if mean of current interval is smaller than ci if (upper - lower).mean() < min_ci: # adjust bounds with half of min_ci each upper = upper + min_ci / 2.0 diff --git a/traval/version.py b/traval/version.py index 7fdb7a2..260c070 100644 --- a/traval/version.py +++ b/traval/version.py @@ -1 +1 @@ -__version__ = "0.4b.0" +__version__ = "0.3.1"