aplos-nca-saas-sdk 0.0.20__py3-none-any.whl → 0.0.22__py3-none-any.whl

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.
@@ -194,7 +194,7 @@ class NCAExecutionConfigs(ConfigBase):
194
194
  raise RuntimeError("Failed to load the config data")
195
195
 
196
196
  meta_data = self.__load_dictionary_data_or_file(key="meta", analysis=analysis, optional=True)
197
- data_cleaning = self.__load_dictionary_data_or_file(key="data_cleaning", analysis=analysis, optional=True)
197
+ data_cleaning = self.__load_dictionary_data_or_file(key="data_processing", analysis=analysis, optional=True)
198
198
  post_processing = self.__load_dictionary_data_or_file(key="post_processing", analysis=analysis, optional=True)
199
199
  wait_for_results =str(analysis.get("wait_for_results", True)).lower() == "true"
200
200
  max_wait_in_seconds = int(analysis.get("max_wait_in_seconds", 600))
@@ -76,14 +76,17 @@ class NCAAnalysisTest(IntegrationTestBase):
76
76
  logger.info(
77
77
  {"message": "Execution complete. Verifying results download."}
78
78
  )
79
-
80
- expected_output_file = execution_response.get("results", {}).get("file")
81
- if expected_output_file is None:
82
- raise RuntimeError(
83
- "Expected populated output_file from NCAExecution was None."
84
- )
85
- elif not Path(expected_output_file).is_file():
86
- raise RuntimeError("Expected downloaded file does not exist.")
79
+ status_code = execution_response.get("results", {}).get("status_code")
80
+ if status_code == 201:
81
+ pass # No output file expected
82
+ else:
83
+ expected_output_file = execution_response.get("results", {}).get("file")
84
+ if expected_output_file is None:
85
+ raise RuntimeError(
86
+ "Expected populated output_file from NCAExecution was None."
87
+ )
88
+ elif not Path(expected_output_file).is_file():
89
+ raise RuntimeError("Expected downloaded file does not exist.")
87
90
 
88
91
  except Exception as e: # pylint: disable=w0718
89
92
  test_response.error = str(e)
@@ -128,7 +128,8 @@ class NCAAnalysis(NCAApiBaseClass):
128
128
  response["results"]["file"] = file_path
129
129
  else:
130
130
  self.log("Bypassed results download.")
131
-
131
+ response["results"]["status_code"] = 201
132
+ response["results"]["message"] = "Waiting for results download bypassed. Running Fast Executions."
132
133
  return response
133
134
 
134
135
  def __add_to_queue(
@@ -165,6 +166,8 @@ class NCAAnalysis(NCAApiBaseClass):
165
166
 
166
167
  if full_payload:
167
168
  submission = full_payload
169
+ # we still need to add the file id at this point
170
+ submission["file"] = {"id": file_id}
168
171
  else:
169
172
  submission = {
170
173
  "file": {"id": file_id},
@@ -1,4 +1,4 @@
1
1
  # Aplos NCA SaaS SDK Version File
2
2
  # This is automatically generated during the build process.
3
3
  # DO NOT UPDATE IT DIRECTLY. IT WILL BE OVERWRITTEN.
4
- __version__ = '0.0.20'
4
+ __version__ = '0.0.22'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aplos_nca_saas_sdk
3
- Version: 0.0.20
3
+ Version: 0.0.22
4
4
  Summary: Aplos NCA SaaS SDK
5
5
  Project-URL: Homepage, https://aplosanalytics.com/
6
6
  Project-URL: Documentation, https://docs.aplosanalytics.com/
@@ -1,6 +1,6 @@
1
1
  aplos_nca_saas_sdk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  aplos_nca_saas_sdk/run_analysis_execution.py,sha256=H425VMCtxIX1vlWac0Wex2CJXVzQQwgv5AGNCpaVqN4,4446
3
- aplos_nca_saas_sdk/version.py,sha256=iWzaFvlsG_6Lq-Tq62PPcvLULIrMAVU3RiPKg8-qn1I,172
3
+ aplos_nca_saas_sdk/version.py,sha256=gOKyPzMwi8E4tXQBz77NiqUoiJj1L1M3ybEtodYU4Bg,172
4
4
  aplos_nca_saas_sdk/integration_testing/example_main.py,sha256=9SXu8s7B4MLe53WDkr0GuMu8h4oyfmltYOH1XT_fqC4,2500
5
5
  aplos_nca_saas_sdk/integration_testing/integration_test_base.py,sha256=ci3oOfz_McdDKGSrqOHF7F_vrvgTWo7HzxydNdPSHLs,2787
6
6
  aplos_nca_saas_sdk/integration_testing/integration_test_configurations.py,sha256=GRDHSy0ZiAJtZQvL7uPlYG2oYVo9nWlP7hNZbNnrz7U,1900
@@ -13,7 +13,7 @@ aplos_nca_saas_sdk/integration_testing/configs/app_settings_config.py,sha256=F2g
13
13
  aplos_nca_saas_sdk/integration_testing/configs/config_sample.json,sha256=zeflEvdtpknGjk42FXHGG3cBbvLcbSnj1_99o21JiDc,3566
14
14
  aplos_nca_saas_sdk/integration_testing/configs/file_upload_config.py,sha256=NZsE7n9bkZOVEDFC8jDEO4XAIb5Vzsd62_CnSDLNDj8,3034
15
15
  aplos_nca_saas_sdk/integration_testing/configs/login_config.py,sha256=5AaCzlT9T9aC_gBLs9vsS4dDCXB3FhDnlbIrp5NGaeM,3612
16
- aplos_nca_saas_sdk/integration_testing/configs/nca_execution_config.py,sha256=1Fj-OdSHJZZMVR0HxGlxO71fSSO9EYN-THVuS9-HRWQ,8266
16
+ aplos_nca_saas_sdk/integration_testing/configs/nca_execution_config.py,sha256=WIwV6iVXGfI2_PuWx3OjAjxTAzUcyUvah5iFHyLJACM,8268
17
17
  aplos_nca_saas_sdk/integration_testing/configs/nca_validation_config.py,sha256=veqCTMsRTailuP-P5JX8JU7BkRMzC4-sxZM9tYG52ug,2595
18
18
  aplos_nca_saas_sdk/integration_testing/files/executions/config1.json,sha256=m6-wSzfrB-7w4CgIGpmT9y0_zevp-Q6So9eXU9HsVpQ,945
19
19
  aplos_nca_saas_sdk/integration_testing/files/uploads/input1.csv,sha256=9TGDiMkft7ltFFKk_8RyzuhuloIpe_fZs0Nw0PN3BkM,263
@@ -25,13 +25,13 @@ aplos_nca_saas_sdk/integration_testing/files/uploads/input1.xpt,sha256=vve5eYrs3
25
25
  aplos_nca_saas_sdk/integration_testing/tests/app_configuration_test.py,sha256=f5kvHEAOmYKUn9gjuVNjEI5t7G8aJSbz3rfIh9133VQ,1567
26
26
  aplos_nca_saas_sdk/integration_testing/tests/app_login_test.py,sha256=NLI4DUICspa_uZi-w2Q3XufDL0ERLVvn1DavNpYDK7I,1650
27
27
  aplos_nca_saas_sdk/integration_testing/tests/file_upload_test.py,sha256=7DihdcbmrL5Fr9RPIjxIdAmrgdBaDM0ccCerh2VLMV4,3666
28
- aplos_nca_saas_sdk/integration_testing/tests/nca_analysis_test.py,sha256=UYe4v9dPdpiImyxhgAgeq9rx1KQ-PoOFM47hF2rsKSw,3592
28
+ aplos_nca_saas_sdk/integration_testing/tests/nca_analysis_test.py,sha256=ge-3pl5izTcwG3CU3ligYSqdj3Ho2HXfKut1cNB2VII,3819
29
29
  aplos_nca_saas_sdk/integration_testing/tests/nca_analysis_validation_test.py,sha256=IlnkaO_KSrm0tch0gxM0rZP59m1PHzUow4kZm9CiBqY,2042
30
30
  aplos_nca_saas_sdk/nca_resources/_api_base.py,sha256=qxMSiHV4014L733ii4EJ2JUwQwKkuHi5Rm6cPEdS3cA,1278
31
31
  aplos_nca_saas_sdk/nca_resources/aws_cognito.py,sha256=lc6GCvoTBx_Dmezoxt80xksiuxXjSwkynj-1Sg0vzwY,6576
32
32
  aplos_nca_saas_sdk/nca_resources/aws_s3_presigned_payload.py,sha256=S9LvUEjzJqLYob-JmNXdIe0Uj__fVtcF4LDQB5538vk,2001
33
33
  aplos_nca_saas_sdk/nca_resources/aws_s3_presigned_upload.py,sha256=ExZUjJ4Yyu-oQyVMNtyl7KqxFfr4hIwIN31RFxg6EfM,4476
34
- aplos_nca_saas_sdk/nca_resources/nca_analysis.py,sha256=lW957B4L1jnEMIknhx-thOTFFPKsL4r2srbBvG_w8mk,11133
34
+ aplos_nca_saas_sdk/nca_resources/nca_analysis.py,sha256=2tJ-NbqGhOY957NsKL2aRBmd-8s2WRWSWY6F8FZd2Qc,11406
35
35
  aplos_nca_saas_sdk/nca_resources/nca_app_configuration.py,sha256=VZNZi0_NV4QjNgBSM9csq5qedc6-qvzaXwXyLfymB6M,1845
36
36
  aplos_nca_saas_sdk/nca_resources/nca_authenticator.py,sha256=tyhAHrf4PlLYarYXtY4ARCtSdGAL9GciqifDDck1KSQ,3354
37
37
  aplos_nca_saas_sdk/nca_resources/nca_endpoints.py,sha256=4nAh6JD-EUZj-Zv4EGv-W1Lgf3ww5OAQqqZu56IkPuw,2538
@@ -46,7 +46,7 @@ aplos_nca_saas_sdk/utilities/environment_services.py,sha256=b4FGtdZshidrutE8K3Rm
46
46
  aplos_nca_saas_sdk/utilities/environment_vars.py,sha256=aXheFXg6FVMaSYLe2LmoWRF5Ks9vwxDazO4XYb4vLjc,1132
47
47
  aplos_nca_saas_sdk/utilities/file_utility.py,sha256=EUvQ65aXN6OdILniuiDQ2rPRA9sFmvUoAehifEjRgUY,1025
48
48
  aplos_nca_saas_sdk/utilities/http_utility.py,sha256=DQ-ClLOmNoyPn5vhrSh4q-2wi4ViP_gplJD9asEKDM8,464
49
- aplos_nca_saas_sdk-0.0.20.dist-info/METADATA,sha256=ZVIEktqOTzAXRQT11mPPoespUm4mqbTWJZyUnUMWOrs,3792
50
- aplos_nca_saas_sdk-0.0.20.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
51
- aplos_nca_saas_sdk-0.0.20.dist-info/licenses/LICENSE,sha256=JQMpBrnqu_m2tISmyh6_dTgb8-m3HNnA51fuOh2TzkE,1076
52
- aplos_nca_saas_sdk-0.0.20.dist-info/RECORD,,
49
+ aplos_nca_saas_sdk-0.0.22.dist-info/METADATA,sha256=aRoTCWp4-UOQQZPgISA9aMzLzMyWBo70Y0phyXqXMts,3792
50
+ aplos_nca_saas_sdk-0.0.22.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
51
+ aplos_nca_saas_sdk-0.0.22.dist-info/licenses/LICENSE,sha256=JQMpBrnqu_m2tISmyh6_dTgb8-m3HNnA51fuOh2TzkE,1076
52
+ aplos_nca_saas_sdk-0.0.22.dist-info/RECORD,,