GEO-BON / bon-in-a-box-pipelines

BON in a Box 2.0 - Sampling optimisation and indicator pipelines
MIT License
10 stars 7 forks source link

CleanCoordinates is often crashing or hanging #159

Open jmlord opened 2 weeks ago

jmlord commented 2 weeks ago

Clean coordinates has several different crashes that can occur. Last one I got was:

Error in if (class(ref) == "try-error") { : the condition has length > 1
Calls: tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>

Also, when running "sea" test with a consequent number of occurrences, the script takes get killed after crossing the 1h threshold.

This script needs to be cleaned up / optimized / better tested. It dates from the early stages of BON in a Box and was mostly untouched since.

jmlord commented 1 week ago

@glaroc removed the problematic checks temporarily e60bac5d40fe034e4adc4a0e1f0ef068b44141b7