Skip to content

Commit

Permalink
fix lower/upper vs std
Browse files Browse the repository at this point in the history
  • Loading branch information
jwdink committed Jan 10, 2025
1 parent f339fef commit f33c638
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion torchcast/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.5.0'
__version__ = '0.5.1'
6 changes: 5 additions & 1 deletion torchcast/state_space/predictions.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,11 @@ def _tensor_to_df(tens, measures):
raise ValueError("Expected `type` to be 'predictions' or 'components'.")

out = pd.concat(out).reset_index(drop=True)
_out_cols = [group_colname, time_colname, 'measure', 'mean', 'lower', 'upper']
_out_cols = [group_colname, time_colname, 'measure', 'mean']
if conf is None:
_out_cols.append('std')
else:
_out_cols.extend(['lower', 'upper'])
if type.startswith('comp'):
_out_cols = _out_cols[0:3] + ['process', 'state_element'] + _out_cols[3:]
if 'actual' in out.columns:
Expand Down

0 comments on commit f33c638

Please sign in to comment.