qqubb commited on
Commit
10ec901
·
1 Parent(s): b5c1e12

updates to analysis messages

Browse files
__pycache__/compliance_analysis.cpython-310.pyc CHANGED
Binary files a/__pycache__/compliance_analysis.cpython-310.pyc and b/__pycache__/compliance_analysis.cpython-310.pyc differ
 
compliance_analysis.py CHANGED
@@ -151,6 +151,7 @@ def run_compliance_analysis_on_project(dispositive_variables, project_cc_yaml):
151
  dispositive_variables['msg'].append("Project is within the scope of the Compliance Cards system. Let's continue...")
152
  else:
153
  dispositive_variables['msg'].append("Project is not within the scope of the initial version of the Compliance Cards system.")
 
154
  return dispositive_variables
155
 
156
  # Check if the project is within scope of the Act. If it's not, the analysis is over.
@@ -158,6 +159,7 @@ def run_compliance_analysis_on_project(dispositive_variables, project_cc_yaml):
158
  dispositive_variables['msg'].append("Project is within the scope of Act. Let's continue...")
159
  else:
160
  dispositive_variables['msg'].append("Project is not within the scope of what is regulated by the Act.")
 
161
  return dispositive_variables
162
 
163
  # Check for prohibited practices. If any exist, the analysis is over.
@@ -281,7 +283,7 @@ def check_intended_purpose(dispositive_variables, project_cc, other_cc):
281
  dispositive_variables['data_cc_non-compliant'][card_label] = {
282
  "intended_purpose": []
283
  }
284
- dispositive_variables['data_cc_non-compliant'][card_label]['intended_purpose'].append((f"{purpose}"))
285
  else:
286
  dispositive_variables['data_cc_compliant'].append(data_cc['card_details']['card_label'])
287
 
@@ -301,8 +303,7 @@ def check_intended_purpose(dispositive_variables, project_cc, other_cc):
301
  dispositive_variables['model_cc_non-compliant'][card_label] = {
302
  "intended_purpose": []
303
  }
304
- dispositive_variables['model_cc_non-compliant'][card_label]['intended_purpose'].append((f"{purpose}"))
305
- dispositive_variables['model_cc_non-compliant'].append(f"{model_cc['card_details']['card_label']}, intended_purpose: {purpose}")
306
  else:
307
  dispositive_variables['model_cc_compliant'].append(model_cc['card_details']['card_label'])
308
 
 
151
  dispositive_variables['msg'].append("Project is within the scope of the Compliance Cards system. Let's continue...")
152
  else:
153
  dispositive_variables['msg'].append("Project is not within the scope of the initial version of the Compliance Cards system.")
154
+ dispositive_variables['project_cc_pass'] = True
155
  return dispositive_variables
156
 
157
  # Check if the project is within scope of the Act. If it's not, the analysis is over.
 
159
  dispositive_variables['msg'].append("Project is within the scope of Act. Let's continue...")
160
  else:
161
  dispositive_variables['msg'].append("Project is not within the scope of what is regulated by the Act.")
162
+ dispositive_variables['project_cc_pass'] = True
163
  return dispositive_variables
164
 
165
  # Check for prohibited practices. If any exist, the analysis is over.
 
283
  dispositive_variables['data_cc_non-compliant'][card_label] = {
284
  "intended_purpose": []
285
  }
286
+ # dispositive_variables['data_cc_non-compliant'][card_label]['intended_purpose'].append((f"{purpose}"))
287
  else:
288
  dispositive_variables['data_cc_compliant'].append(data_cc['card_details']['card_label'])
289
 
 
303
  dispositive_variables['model_cc_non-compliant'][card_label] = {
304
  "intended_purpose": []
305
  }
306
+ # dispositive_variables['model_cc_non-compliant'][card_label]['intended_purpose'].append((f"{purpose}"))
 
307
  else:
308
  dispositive_variables['model_cc_compliant'].append(model_cc['card_details']['card_label'])
309