Skip to content

Commit

Permalink
Merge pull request #555 from ggmarshall/main
Browse files Browse the repository at this point in the history
bugfix for load_data put run timestamp in later
  • Loading branch information
jasondet authored Feb 3, 2024
2 parents 3399d20 + 4155a0c commit 77cc5ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pygama/pargen/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ def load_data(

for param in params:
file_df[param] = table[param]

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

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

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

elif isinstance(files, list):
Expand Down

0 comments on commit 77cc5ee

Please sign in to comment.