You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cell 23 in the walkthrough removes individual timesteps that are not compliant, but it needs to remove the entire bad particle trajectory: t2 = t1[((t1['mass'] > 50) & (t1['size'] < 2.6) & (t1['ecc'] < 0.3))]
should be something like: t1_means = t1.groupby('particle').mean() good_particles = t1_means[(t1_means['mass'] > 50) & (t1_means['size'] < 2.6) & (t1_means['ecc']<0.3)] # particle id is index of good_particles t2 = t1[t1['particle'].isin(good_particles.index)]
The text was updated successfully, but these errors were encountered:
imruffin
changed the title
Bug in walkthrough guide
Error in walkthrough guide during particle filtering
Sep 2, 2024
Cell 23 in the walkthrough removes individual timesteps that are not compliant, but it needs to remove the entire bad particle trajectory:
t2 = t1[((t1['mass'] > 50) & (t1['size'] < 2.6) & (t1['ecc'] < 0.3))]
should be something like:
t1_means = t1.groupby('particle').mean()
good_particles = t1_means[(t1_means['mass'] > 50) & (t1_means['size'] < 2.6) & (t1_means['ecc']<0.3)]
# particle id is index of good_particles
t2 = t1[t1['particle'].isin(good_particles.index)]
The text was updated successfully, but these errors were encountered: