Skip to content

Commit

Permalink
fixed error check in oceaneyes runner
Browse files Browse the repository at this point in the history
  • Loading branch information
jpswinski committed Oct 24, 2024
1 parent 5308512 commit 031cb52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions datasets/bathy/docker/oceaneyes/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,14 @@ def runClassifier(classifier, classifier_func, num_processes=6):
pool.close()
pool.join()
for i in range(len(beam_list)):
if results[i] != None:
if results[i] is not None:
beam_table[beam_list[i]][classifier] = results[i]
else:
beam_failures.append(beam_list[i])
else:
for beam in beam_list:
result = classifier_func(spot_table[beam], beam_table[beam])
if result != None:
if result is not None:
beam_table[beam][classifier] = result
else:
beam_failures.append(beam)
Expand Down
3 changes: 1 addition & 2 deletions datasets/bathy/endpoints/atl24g.lua
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ for beam,dataframe in pairs(dataframes) do
end
failed_processing_run = failed_processing_run or failed_dataframe
end
-- delay clean up and exit because race condition exists for
-- dataframes that otherwise might not have finished yet
-- exit here after all dataframes have finished
if failed_processing_run then
cleanup(crenv, transaction_id)
return
Expand Down

0 comments on commit 031cb52

Please sign in to comment.