Update script_for_automation.py
Browse files- script_for_automation.py +6 -18
script_for_automation.py
CHANGED
|
@@ -517,26 +517,14 @@ def drive_process():
|
|
| 517 |
completed_processed_interactions_json = sanitize_json_for_yaml(processed_interactions_json)
|
| 518 |
completed_processed_trials_json = sanitize_json_for_yaml(processed_trials_json)
|
| 519 |
|
| 520 |
-
completed_gold_standard_planting_yaml = yaml.
|
| 521 |
-
completed_gold_standard_interactions_yaml = yaml.
|
| 522 |
-
completed_gold_standard_trials_yaml = yaml.
|
| 523 |
|
| 524 |
-
completed_comparison_planting_yaml = yaml.
|
| 525 |
-
completed_comparison_interactions_yaml = yaml.
|
| 526 |
-
completed_comparison_trials_yaml = yaml.
|
| 527 |
|
| 528 |
-
try:
|
| 529 |
-
yaml.safe_load(completed_gold_standard_planting_yaml)
|
| 530 |
-
yaml.safe_load(completed_gold_standard_interactions_yaml)
|
| 531 |
-
yaml.safe_load(completed_gold_standard_trials_yaml)
|
| 532 |
-
|
| 533 |
-
yaml.safe_load(completed_comparison_planting_yaml)
|
| 534 |
-
yaml.safe_load(completed_comparison_interactions_yaml)
|
| 535 |
-
yaml.safe_load(completed_comparison_trials_yaml)
|
| 536 |
-
print("YAML output is valid!")
|
| 537 |
-
except yaml.YAMLError as e:
|
| 538 |
-
print("YAML output is invalid:", e)
|
| 539 |
-
|
| 540 |
|
| 541 |
json_diff = {
|
| 542 |
"planting": differences_planting,
|
|
|
|
| 517 |
completed_processed_interactions_json = sanitize_json_for_yaml(processed_interactions_json)
|
| 518 |
completed_processed_trials_json = sanitize_json_for_yaml(processed_trials_json)
|
| 519 |
|
| 520 |
+
completed_gold_standard_planting_yaml = yaml.safe_load(completed_gold_standard_planting_json, default_flow_style=False)
|
| 521 |
+
completed_gold_standard_interactions_yaml = yaml.safe_load(completed_gold_standard_interactions_json, default_flow_style=False)
|
| 522 |
+
completed_gold_standard_trials_yaml = yaml.safe_load(completed_gold_standard_trials_json, default_flow_style=False)
|
| 523 |
|
| 524 |
+
completed_comparison_planting_yaml = yaml.safe_load(completed_processed_farm_activity_json, default_flow_style=False)
|
| 525 |
+
completed_comparison_interactions_yaml = yaml.safe_load(completed_processed_interactions_json, default_flow_style=False)
|
| 526 |
+
completed_comparison_trials_yaml = yaml.safe_load(completed_processed_trials_json, default_flow_style=False)
|
| 527 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 528 |
|
| 529 |
json_diff = {
|
| 530 |
"planting": differences_planting,
|