Skip to content

Commit

Permalink
eblondel#10 fix getter
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Jul 7, 2021
1 parent d82c6aa commit 3d5d32b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/WPSClient.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ WPSClient <- R6Class("WPSClient",
#describeProcess
describeProcess = function(identifier){
processes <- self$getProcesses()
processes <- processes[sapply(processes, function(process){process$identifier == identifier})]
processes <- processes[sapply(processes, function(process){process$getIdentifier() == identifier})]
if(length(processes)==0){
errMsg <- sprintf("There is no process with identifier '%s'", identifier)
self$ERROR(errMsg)
Expand All @@ -99,7 +99,7 @@ WPSClient <- R6Class("WPSClient",
#execute
execute = function(identifier, request, dataInputs, responseForm, language){
processes <- self$getProcesses()
processes <- processes[sapply(processes, function(process){process$identifier == identifier})]
processes <- processes[sapply(processes, function(process){process$getIdentifier() == identifier})]
if(length(processes)==0){
errMsg <- sprintf("There is no process with identifier '%s'", identifier)
self$ERROR(errMsg)
Expand Down

0 comments on commit 3d5d32b

Please sign in to comment.