Skip to content

Commit

Permalink
Instead of ignoring self loops (same well to same well traversals), c…
Browse files Browse the repository at this point in the history
…onsider the minimum distance traveled
  • Loading branch information
edeno committed Nov 18, 2017
1 parent 1e129aa commit 57a8859
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions loren_frank_data_processing/position.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,8 @@ def get_correct_inbound_outbound(segments_df):


def score_inbound_outbound(segments_df):
# Ignore self loops (i.e. center well -> center_well)
segments_df = (segments_df.copy()
.loc[segments_df.from_well != segments_df.to_well]
.loc[segments_df.distance_traveled > min_distance_traveled]
.dropna())
WELL_NAMES = {
1: 'center',
Expand Down

0 comments on commit 57a8859

Please sign in to comment.