Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nkeesey committed Dec 2, 2024
1 parent ed9b11b commit 0b992f4
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

LEFT, RIGHT, IGNORE = 0, 1, 2


def compute_trial_metrics(nwb):
"""
Computes trial by trial metrics
Expand All @@ -41,7 +42,6 @@ def compute_trial_metrics(nwb):

df_trials = nwb.df_trials.copy()


# --- Add reward-related columns ---
df_trials["reward"] = False
df_trials.loc[
Expand Down Expand Up @@ -147,7 +147,6 @@ def compute_trial_metrics(nwb):
df_trials.loc[i, "n_valid_licks_right"] = 0
df_trials.loc[i, "n_valid_licks_all"] = 0


df_trials["RESPONDED"] = [x in [0, 1] for x in df_trials["animal_response"].values]
# Rolling fraction of goCues with a response
df_trials["response_rate"] = (
Expand Down Expand Up @@ -191,7 +190,6 @@ def compute_trial_metrics(nwb):
]
df_trials = df_trials.drop(columns=drop_cols)


return df_trials


Expand Down Expand Up @@ -291,5 +289,4 @@ def compute_bias(nwb):
df_trials["bias_ci_lower"] = df_trials["bias_ci_lower"].bfill().ffill()
df_trials["bias_ci_upper"] = df_trials["bias_ci_upper"].bfill().ffill()


return df_trials

0 comments on commit 0b992f4

Please sign in to comment.