Mercurial > repos > ecology > otb_mean_shift_smoothing
comparison OTB_MeanShiftSmoothing.R @ 1:dd397752ad21 draft default tip
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/interpolation commit 5e963dcfe6e22e42473987179b70ad490f918cb9
author | ecology |
---|---|
date | Fri, 12 Apr 2024 18:41:57 +0000 |
parents | 6c6e8b16dba6 |
children |
comparison
equal
deleted
inserted
replaced
0:6c6e8b16dba6 | 1:dd397752ad21 |
---|---|
165 } else { | 165 } else { |
166 print(paste("HTTP", status_code3, "Error:", resp3$status_message)) | 166 print(paste("HTTP", status_code3, "Error:", resp3$status_message)) |
167 } | 167 } |
168 } else if (response2$status == "failed") { | 168 } else if (response2$status == "failed") { |
169 status <- "failed" | 169 status <- "failed" |
170 message("An error occurred. For further details, check OGC Job status | |
171 through https://ospd.geolabs.fr:8300/ogc-api/jobs/", response2$jobID) | |
172 q(status = 1) | |
170 } | 173 } |
171 } else { | 174 } else { |
172 status <- "failed" | 175 status <- "failed" |
173 print(paste("HTTP", status_code2, "Error:", resp2$status_message)) | 176 print(paste("HTTP", status_code2, "Error:", resp2$status_message, "An error occurred. For further details, |
177 check OGC Job status through https://ospd.geolabs.fr:8300/ogc-api/jobs/", response2$jobID)) | |
178 q(status = 1) | |
174 } | 179 } |
175 Sys.sleep(3) | 180 Sys.sleep(3) |
176 } | 181 } |
177 print(status) | 182 print(status) |
178 } else if (status_code1 == 400) { | 183 } else if (status_code1 == 400) { |
182 } else if (status_code1 == 500) { | 187 } else if (status_code1 == 500) { |
183 print("The requested URI was not found.") | 188 print("The requested URI was not found.") |
184 } else { | 189 } else { |
185 print(paste("HTTP", status_code1, "Error:", resp1$status_message)) | 190 print(paste("HTTP", status_code1, "Error:", resp1$status_message)) |
186 } | 191 } |
192 }, error = function(e) { | |
193 message("An error occurred:", e) | |
194 # Exit with code 1 | |
195 q(status = 1) | |
187 }) | 196 }) |