Update process_data.py
Browse files- process_data.py +10 -5
process_data.py
CHANGED
|
@@ -171,8 +171,8 @@ def generate_json_pieces(specification, model_version, additional_json_creation_
|
|
| 171 |
except Exception as e:
|
| 172 |
return {"error": "Failed to generate valid JSON. " + str(e)}
|
| 173 |
|
| 174 |
-
def process_specifications(data, model_version, json_creation, additional_json_creation_options, field_data_input, planting_data_input, logs_data_input, soil_data_input, yield_data_input):
|
| 175 |
-
# This method just drives the process
|
| 176 |
|
| 177 |
# Uncomment when working on flippers
|
| 178 |
#if json_creation == "Single JSON Creation":
|
|
@@ -180,9 +180,14 @@ def process_specifications(data, model_version, json_creation, additional_json_c
|
|
| 180 |
#elif json_creation == "Step-wise JSON Creation":
|
| 181 |
# resulting_schema = generate_json_pieces(data, model_version, additional_json_creation_options, field_data_input, planting_data_input, logs_data_input, soil_data_input, yield_data_input)
|
| 182 |
#return resulting_schema
|
| 183 |
-
global original_outputs, xml_outputs
|
| 184 |
|
| 185 |
-
output1, output2, output3 = generate_json(data, model_version)
|
| 186 |
|
| 187 |
|
| 188 |
-
return output1, output2, output3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 171 |
except Exception as e:
|
| 172 |
return {"error": "Failed to generate valid JSON. " + str(e)}
|
| 173 |
|
| 174 |
+
#def process_specifications(data, model_version, json_creation, additional_json_creation_options, field_data_input, planting_data_input, logs_data_input, soil_data_input, yield_data_input):
|
| 175 |
+
# # This method just drives the process
|
| 176 |
|
| 177 |
# Uncomment when working on flippers
|
| 178 |
#if json_creation == "Single JSON Creation":
|
|
|
|
| 180 |
#elif json_creation == "Step-wise JSON Creation":
|
| 181 |
# resulting_schema = generate_json_pieces(data, model_version, additional_json_creation_options, field_data_input, planting_data_input, logs_data_input, soil_data_input, yield_data_input)
|
| 182 |
#return resulting_schema
|
| 183 |
+
# global original_outputs, xml_outputs
|
| 184 |
|
| 185 |
+
# output1, output2, output3 = generate_json(data, model_version)
|
| 186 |
|
| 187 |
|
| 188 |
+
# return output1, output2, output3
|
| 189 |
+
|
| 190 |
+
def parse_survey_stack(data):
|
| 191 |
+
actual_data = data[0]['data']
|
| 192 |
+
return "not ready"
|
| 193 |
+
|