Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
rpgoldman committed Mar 26, 2021
1 parent b50b6de commit 9325310
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arviz/stats/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,8 @@ def compare(
# Here is where the IC function is actually computed -- the rest of this
# function is argument processing and return value formatting
ics = ics.append([ic_func(dataset, pointwise=True, scale=scale, var_name=var_name)])
except Exception as e:
raise e.__class__(
f"Encountered error trying to compute {ic} from model {name}: {e}"
) from e
except Exception as e: # pylint: disable=invalid-name
raise e.__class__(f"Encountered error trying to compute {ic} from model {name}.") from e
ics.index = names
ics.sort_values(by=ic, inplace=True, ascending=ascending)
ics[ic_i] = ics[ic_i].apply(lambda x: x.values.flatten())
Expand Down

0 comments on commit 9325310

Please sign in to comment.