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 Aug 25, 2024
1 parent 087b028 commit ee73d2a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/pygama/pargen/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ def load_data(
)

if return_selection_mask:
file_df[0]["run_timestamp"] = np.full(len(file_df[0]), tstamp, dtype=object)
file_df[0]["run_timestamp"] = np.full(
len(file_df[0]), tstamp, dtype=object
)
df.append(file_df[0])
masks.append(file_df[1])
else:
Expand Down Expand Up @@ -116,9 +118,11 @@ def load_data(
)
df_fields = params & (fields | set(cal_dict))
if df_fields != params:
log.debug(f"load_data(): params not found in data files or cal_dict: {params-df_fields}")
log.debug(
f"load_data(): params not found in data files or cal_dict: {params-df_fields}"
)
df = pd.DataFrame(columns=list(df_fields))

for table, entry, n_rows in lh5_it:
# Evaluate all provided expressions and add to table
for outname, info in cal_dict.items():
Expand Down

0 comments on commit ee73d2a

Please sign in to comment.