Skip to content

Commit

Permalink
[evt] array_idx must be made of integers too
Browse files Browse the repository at this point in the history
  • Loading branch information
gipert committed Nov 8, 2023
1 parent d273965 commit 9d21d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pygama/evt/tcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def generate_tcm_cols(
array_id = np.full_like(array, array_id, dtype=int)
col_dict = {"array_id": array_id, "coin_data": array}
if array_idxs is not None:
col_dict["array_idx"] = array_idxs[ii]
col_dict["array_idx"] = array_idxs.astype(int)[ii]
dfs.append(pd.DataFrame(col_dict, copy=False)) # don't copy the data!

# concat and sort
Expand Down

0 comments on commit 9d21d37

Please sign in to comment.