unitypredict 1.1.58__tar.gz → 1.1.60__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: unitypredict
3
- Version: 1.1.58
3
+ Version: 1.1.60
4
4
  Summary:
5
5
  Home-page: https://unitypredict.com
6
6
  Author: UnityPredict
@@ -89,7 +89,6 @@ class UnityPredictResponse:
89
89
  RequestId: str = ''
90
90
  ErrorMessages: str = ''
91
91
  ComputeCost: float = 0.0
92
- OutcomeValues: dict = {}
93
92
  Outcomes: dict = {}
94
93
  Status: str|None = None
95
94
 
@@ -215,25 +214,6 @@ class UnityPredictClient:
215
214
 
216
215
  finalResponseRequestId: str = finalResponseJson.get('requestId')
217
216
 
218
- outcomeValues = finalResponseJson.get('outcomeValues')
219
- for outputVarName in outcomeValues:
220
- outcome: dict = outcomeValues.get(outputVarName)
221
- if outcome.get('dataType') == 'File':
222
-
223
- tempOutputFolder: str = os.path.join(outputFolderPath, "chainedResults", finalResponseRequestId)
224
- if not os.path.exists(tempOutputFolder):
225
- os.makedirs(tempOutputFolder)
226
-
227
- fileName = outcome.get('value')
228
-
229
- tempFilePath = os.path.join(tempOutputFolder, fileName)
230
- response = requests.get(url = "{}/predict/download/{}/{}".format(apiBaseUrl, finalResponseRequestId, fileName), headers={"Authorization": "Bearer {}".format(apiKey)})
231
- with open(tempFilePath, 'wb') as f:
232
- f.write(response.content)
233
-
234
- fileReceived: UnityPredictFileReceivedDto = UnityPredictFileReceivedDto(fileName, tempFilePath)
235
- outcome['value'] = fileReceived
236
-
237
217
  outcomes = finalResponseJson.get('outcomes')
238
218
  for outputVarName in outcomes:
239
219
  outcome: list = outcomes.get(outputVarName)
@@ -253,7 +233,6 @@ class UnityPredictClient:
253
233
  try:
254
234
  results.Status = finalResponseJson.get('status')
255
235
  results.ComputeCost = finalResponseJson.get('computeCost')
256
- results.OutcomeValues = outcomeValues
257
236
  results.Outcomes = outcomes
258
237
  results.RequestId = finalResponseRequestId
259
238
  results.ContextId = finalResponseJson.get('contextId')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: unitypredict
3
- Version: 1.1.58
3
+ Version: 1.1.60
4
4
  Summary:
5
5
  Home-page: https://unitypredict.com
6
6
  Author: UnityPredict
File without changes
File without changes
File without changes