Skip to content

Commit

Permalink
black reformatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpgoldman committed Nov 12, 2019
1 parent f7ac380 commit 1a3dc67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion arviz/data/__init__.py
Expand Up @@ -36,5 +36,5 @@
"from_netcdf",
"to_netcdf",
"CoordSpec",
"DimSpec"
"DimSpec",
]
14 changes: 7 additions & 7 deletions arviz/stats/stats.py
Expand Up @@ -803,17 +803,17 @@ def r2_score(y_true, y_pred):

def summary(
data,
var_names: Optional[List[str]]=None,
fmt: str="wide",
var_names: Optional[List[str]] = None,
fmt: str = "wide",
round_to=None,
include_circ=None,
stat_funcs=None,
extend=True,
credible_interval=0.94,
order="C",
index_origin=0,
coords: Optional[CoordSpec]=None,
dims: Optional[DimSpec]=None
coords: Optional[CoordSpec] = None,
dims: Optional[DimSpec] = None,
) -> Union[pd.DataFrame, xr.Dataset]:
"""Create a data frame with summary statistics.
Expand Down Expand Up @@ -896,11 +896,11 @@ def summary(
...: )
"""
extra_args = {} # type: Dict[str, Any]
extra_args = {} # type: Dict[str, Any]
if coords is not None:
extra_args['coords'] = coords
extra_args["coords"] = coords
if dims is not None:
extra_args['dims'] = dims
extra_args["dims"] = dims
posterior = convert_to_dataset(data, group="posterior", **extra_args)
var_names = _var_names(var_names, posterior)
posterior = posterior if var_names is None else posterior[var_names]
Expand Down

0 comments on commit 1a3dc67

Please sign in to comment.