Skip to content

Commit

Permalink
more linting...
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhou committed Jun 21, 2024
1 parent 506d932 commit 9a95ed0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ def moving_average(a, n=3):
"""Compute moving average of a list or array."""
ret = np.nancumsum(a, dtype=float)
ret[n:] = ret[n:] - ret[:-n]
return ret[n - 1 :] / n
return ret[n - 1:] / n


def plot_foraging_session(
def plot_foraging_session( # noqa: C901
choice_history: Union[List, np.ndarray],
reward_history: Union[List, np.ndarray],
p_reward: Union[List, np.ndarray],
Expand All @@ -40,7 +40,7 @@ def plot_foraging_session(
base_color: str = "y",
ax: plt.Axes = None,
vertical: bool = False,
) -> Tuple[plt.Figure, List[plt.Axes]]: # noqa: C901
) -> Tuple[plt.Figure, List[plt.Axes]]:
"""Plot dynamic foraging session.
Parameters
Expand Down

0 comments on commit 9a95ed0

Please sign in to comment.