Update script_for_automation.py
Browse files- script_for_automation.py +9 -10
script_for_automation.py
CHANGED
|
@@ -480,16 +480,6 @@ def drive_process():
|
|
| 480 |
gold_standard_interactions_json = json.loads(gold_standard_json["interactions"])
|
| 481 |
gold_standard_trials_json = json.loads(gold_standard_json["trials"])
|
| 482 |
|
| 483 |
-
|
| 484 |
-
# Convert to yaml
|
| 485 |
-
completed_gold_standard_planting_json = sanitize_json_for_yaml(gold_standard_planting_json)
|
| 486 |
-
completed_gold_standard_interactions_json = sanitize_json_for_yaml(gold_standard_interactions_json)
|
| 487 |
-
completed_gold_standard_trials_json = sanitize_json_for_yaml(gold_standard_trials_json)
|
| 488 |
-
|
| 489 |
-
completed_processed_farm_activity_json = sanitize_json_for_yaml(processed_farm_activity_json)
|
| 490 |
-
completed_processed_interactions_json = sanitize_json_for_yaml(processed_interactions_json)
|
| 491 |
-
completed_processed_trials_json = sanitize_json_for_yaml(processed_trials_json)
|
| 492 |
-
|
| 493 |
|
| 494 |
print("PROCESSING SPECIFICATIONS!!!!!!!!!!!!!!!")
|
| 495 |
#processed_farm_activity_json, processed_interactions_json, processed_trials_json = process_specifications(proc_spec)
|
|
@@ -509,6 +499,15 @@ def drive_process():
|
|
| 509 |
differences_interactions = list(diff(gold_standard_interactions_json, processed_interactions_json))
|
| 510 |
differences_trials = list(diff(gold_standard_trials_json, processed_trials_json))
|
| 511 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 512 |
json_diff = {
|
| 513 |
"planting": differences_planting,
|
| 514 |
"interactions": differences_interactions,
|
|
|
|
| 480 |
gold_standard_interactions_json = json.loads(gold_standard_json["interactions"])
|
| 481 |
gold_standard_trials_json = json.loads(gold_standard_json["trials"])
|
| 482 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 483 |
|
| 484 |
print("PROCESSING SPECIFICATIONS!!!!!!!!!!!!!!!")
|
| 485 |
#processed_farm_activity_json, processed_interactions_json, processed_trials_json = process_specifications(proc_spec)
|
|
|
|
| 499 |
differences_interactions = list(diff(gold_standard_interactions_json, processed_interactions_json))
|
| 500 |
differences_trials = list(diff(gold_standard_trials_json, processed_trials_json))
|
| 501 |
|
| 502 |
+
# Convert to yaml
|
| 503 |
+
completed_gold_standard_planting_json = sanitize_json_for_yaml(gold_standard_planting_json)
|
| 504 |
+
completed_gold_standard_interactions_json = sanitize_json_for_yaml(gold_standard_interactions_json)
|
| 505 |
+
completed_gold_standard_trials_json = sanitize_json_for_yaml(gold_standard_trials_json)
|
| 506 |
+
|
| 507 |
+
completed_processed_farm_activity_json = sanitize_json_for_yaml(processed_farm_activity_json)
|
| 508 |
+
completed_processed_interactions_json = sanitize_json_for_yaml(processed_interactions_json)
|
| 509 |
+
completed_processed_trials_json = sanitize_json_for_yaml(processed_trials_json)
|
| 510 |
+
|
| 511 |
json_diff = {
|
| 512 |
"planting": differences_planting,
|
| 513 |
"interactions": differences_interactions,
|