Skip to content

Commit

Permalink
in case predict_ndarray_fb doesn't find picks, it return -999.03125
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirMardan committed Jan 16, 2025
1 parent bfe109e commit 244efbb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion first_break_picking/train_eval/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ def predict_ndarray_fb(self,
data_info=data_info,
case_specific_parameters=self.case_specific_parameters
)
return np.array(predicted_pick * self.dt)
if predicted_pick is None:
return -999.03125 * np.ones(shot.shape[1])
else:
return np.array(predicted_pick * self.dt)

def predict(self, path_data: str):
"""Predict FB
Expand Down

0 comments on commit 244efbb

Please sign in to comment.