Skip to content

Commit 6d939cc

Browse files
committed
Small changes to README.md
1 parent 686254c commit 6d939cc

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

Diff for: .calculate_totals.py.swp

12 KB
Binary file not shown.

Diff for: README.md

+12
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,16 @@ Update `ingredients_list.xlsx` and `packing_list.xlsx` then run
66

77
```
88
python3 calculate_totals.py
9+
```
10+
The output is the daily total for each nutrient, e.g.:
11+
12+
```
13+
Energy (kcal) 2483.9
14+
Fat (g) 120.4
15+
Saturated fat (g) 38.7
16+
Carbohydrates (g) 249.1
17+
Sugar (g) 102.9
18+
Fibre (g) 32.7
19+
Protein (g) 87.4
20+
Salt (mg) 3776.3
921
```

Diff for: calculate_totals.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ def main():
5050
# Divide by the number of days to get the daily amount of each nutrient.
5151
n_days = 7 + (1.0/3.0)
5252
daily_totals = totals / n_days
53-
53+
54+
print("Daily totals for {:.2f} days:".format(n_days))
5455
with pd.option_context("display.precision", 1):
5556
print(daily_totals)
5657

0 commit comments

Comments
 (0)