Update script_for_automation.py
Browse files- script_for_automation.py +5 -1
script_for_automation.py
CHANGED
|
@@ -467,7 +467,7 @@ def drive_process():
|
|
| 467 |
proc_spec = get_data_ready(recipe_dict, input_data_piece)
|
| 468 |
|
| 469 |
print("PROCESSING SPECIFICATIONS!!!!!!!!!!!!!!!")
|
| 470 |
-
processed_farm_activity_json, processed_interactions_json, processed_trials_json = process_specifications(proc_spec)
|
| 471 |
|
| 472 |
processed_farm_activity_json = json.loads(processed_farm_activity_json)
|
| 473 |
processed_interactions_json = json.loads(processed_interactions_json)
|
|
@@ -487,6 +487,10 @@ def drive_process():
|
|
| 487 |
gold_standard_interactions_json = json.loads(gold_standard_json["interactions"])
|
| 488 |
gold_standard_trials_json = json.loads(gold_standard_json["trials"])
|
| 489 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 490 |
|
| 491 |
# Compare the generated JSON to the gold standard
|
| 492 |
differences_planting = list(diff(gold_standard_planting_json, processed_farm_activity_json))
|
|
|
|
| 467 |
proc_spec = get_data_ready(recipe_dict, input_data_piece)
|
| 468 |
|
| 469 |
print("PROCESSING SPECIFICATIONS!!!!!!!!!!!!!!!")
|
| 470 |
+
#processed_farm_activity_json, processed_interactions_json, processed_trials_json = process_specifications(proc_spec)
|
| 471 |
|
| 472 |
processed_farm_activity_json = json.loads(processed_farm_activity_json)
|
| 473 |
processed_interactions_json = json.loads(processed_interactions_json)
|
|
|
|
| 487 |
gold_standard_interactions_json = json.loads(gold_standard_json["interactions"])
|
| 488 |
gold_standard_trials_json = json.loads(gold_standard_json["trials"])
|
| 489 |
|
| 490 |
+
processed_farm_activity_json = gold_standard_planting_json
|
| 491 |
+
processed_interactions_json = gold_standard_interactions_json
|
| 492 |
+
processed_trials_json = processed_trials_json
|
| 493 |
+
|
| 494 |
|
| 495 |
# Compare the generated JSON to the gold standard
|
| 496 |
differences_planting = list(diff(gold_standard_planting_json, processed_farm_activity_json))
|