Skip to content

Commit

Permalink
Raise exception if the first trial doesn't start from the center well.
Browse files Browse the repository at this point in the history
  • Loading branch information
edeno committed Nov 18, 2017
1 parent 249d667 commit 1e129aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions loren_frank_data_processing/position.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ def get_correct_inbound_outbound(segments_df):

task[0] = 'outbound'
is_correct[0] = segments_df.iloc[0].from_well == 'center'
if ~is_correct:
raise ValueError('First segment does not start from the center well.')

task[1] = 'inbound'
is_correct[1] = segments_df.iloc[1].to_well == 'center'
Expand Down

0 comments on commit 1e129aa

Please sign in to comment.