Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Feb 3, 2024
1 parent 70d6ecd commit 4155a0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pygama/pargen/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def load_data(
file_df[param] = table[param]

file_df["run_timestamp"] = np.full(len(file_df), tstamp, dtype=object)

if threshold is not None:
mask = file_df[cal_energy_param] > threshold
file_df.drop(np.where(~mask)[0], inplace=True)
Expand All @@ -93,7 +93,7 @@ def load_data(
masks = np.append(masks, mask)
df.append(file_df)
all_files += tfiles

params.append("run_timestamp")
df = pd.concat(df)

Expand Down

0 comments on commit 4155a0c

Please sign in to comment.