Skip to content

Commit

Permalink
add result to bursts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhsmit committed Nov 22, 2024
1 parent b12fe89 commit 8881c6f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions templates/07_c_kde.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,15 @@
kde_data = photons.data.select(
[pl.col("timestamps"), pl.col("stream"), pl.lit(DA).alias("DA"), pl.lit(DD).alias("DD")]
)
kde_rates = kde_data

# 500 ms
fret_2cde = compute_fret_2cde(bursts.photon_data, kde_data)

# modify bursts inplace
bursts.burst_data = bursts.burst_data.with_columns(pl.lit(fret_2cde).alias("fret_2cde"))

# %%
burst_photons = bursts.photon_data
joined_df = burst_photons.join(kde_rates, on=["timestamps"], how="left").filter(
pl.col("stream") == pl.col("stream_right")
)


# %%

Expand Down

0 comments on commit 8881c6f

Please sign in to comment.