(self, input1)
| 185 | |
| 186 | # Pipe an input into this algorithm |
| 187 | def pipe(self, input1): |
| 188 | |
| 189 | if self.output_type == OutputType.raw: |
| 190 | return self._postRawOutput(input1) |
| 191 | elif self.output_type == OutputType.void: |
| 192 | return self._postVoidOutput(input1) |
| 193 | else: |
| 194 | return AlgoResponse.create_algo_response( |
| 195 | self.client.postJsonHelper(self.url, input1, **self.query_parameters)) |
| 196 | |
| 197 | def _postRawOutput(self, input1): |
| 198 | # Don't parse response as json |