rosemariafontana commited on
Commit
a4d2607
·
verified ·
1 Parent(s): 77ccac9

Update script_for_automation.py

Browse files
Files changed (1) hide show
  1. script_for_automation.py +9 -9
script_for_automation.py CHANGED
@@ -466,14 +466,7 @@ def drive_process():
466
  # Prepare the data for the structured output setup
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)
474
- processed_trials_json = json.loads(processed_trials_json)
475
-
476
- print("Gold Standard diff and stuff")
477
  # Get the gold standard for this input_chunk (key = liz_carrot, ben_soybean, wally_squash)
478
  gold_standard_json = gold_standards[key]
479
 
@@ -487,10 +480,17 @@ 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
  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))
 
466
  # Prepare the data for the structured output setup
467
  proc_spec = get_data_ready(recipe_dict, input_data_piece)
468
 
469
+ print("Gold Standard")
 
 
 
 
 
 
 
470
  # Get the gold standard for this input_chunk (key = liz_carrot, ben_soybean, wally_squash)
471
  gold_standard_json = gold_standards[key]
472
 
 
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)
486
+
487
  processed_farm_activity_json = gold_standard_planting_json
488
  processed_interactions_json = gold_standard_interactions_json
489
  processed_trials_json = processed_trials_json
490
+
491
+ processed_farm_activity_json = json.loads(processed_farm_activity_json)
492
+ processed_interactions_json = json.loads(processed_interactions_json)
493
+ processed_trials_json = json.loads(processed_trials_json)
494
 
495
  # Compare the generated JSON to the gold standard
496
  differences_planting = list(diff(gold_standard_planting_json, processed_farm_activity_json))