Spaces:
Paused
Paused
Commit
•
e3071d6
1
Parent(s):
8826d52
more fixes
Browse files
algo.py
CHANGED
@@ -293,11 +293,7 @@ class Algo:
|
|
293 |
**mapping
|
294 |
}
|
295 |
|
296 |
-
|
297 |
-
print(mapping['weight_metric_tonnes'])
|
298 |
-
print(mapping['dry_matter_content'])
|
299 |
-
print(mapping['ef'])
|
300 |
-
print()
|
301 |
baseline_emissions = mapping['weight_metric_tonnes'] * mapping['dry_matter_content'] * mapping['ef']
|
302 |
leakage_emissions = mapping['leakage'] * baseline_emissions
|
303 |
project_emissions = mapping['distance'] * mapping['mt_lb_mile'] * baseline_emissions
|
|
|
293 |
**mapping
|
294 |
}
|
295 |
|
296 |
+
|
|
|
|
|
|
|
|
|
297 |
baseline_emissions = mapping['weight_metric_tonnes'] * mapping['dry_matter_content'] * mapping['ef']
|
298 |
leakage_emissions = mapping['leakage'] * baseline_emissions
|
299 |
project_emissions = mapping['distance'] * mapping['mt_lb_mile'] * baseline_emissions
|
run.py
CHANGED
@@ -11,7 +11,6 @@ if __name__ == "__main__":
|
|
11 |
|
12 |
input_data = [(desc, donor, date, weight) for desc, donor, date, weight in zip(df_input['description'].astype(str).tolist(), df_input['donor'].astype(str).tolist(), df_input['date'].astype(str).tolist(), df_input['weight'].astype(str).tolist())]
|
13 |
|
14 |
-
input_data = input_data[:10]
|
15 |
algo.match_words(input_data)
|
16 |
# algo.match_words([['bananas']])
|
17 |
|
|
|
11 |
|
12 |
input_data = [(desc, donor, date, weight) for desc, donor, date, weight in zip(df_input['description'].astype(str).tolist(), df_input['donor'].astype(str).tolist(), df_input['date'].astype(str).tolist(), df_input['weight'].astype(str).tolist())]
|
13 |
|
|
|
14 |
algo.match_words(input_data)
|
15 |
# algo.match_words([['bananas']])
|
16 |
|