dairy-data-tools 0.2.2__tar.gz → 0.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/CITATION.cff +1 -1
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/PKG-INFO +23 -26
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/README.md +22 -25
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/plugins/dairy-data-tools/README.md +17 -20
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/plugins/dairy-data-tools/sample-herd/README.md +1 -1
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/pyproject.toml +1 -1
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/tools/dairytools/cards.py +4 -4
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/.gitignore +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/LICENSE +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/LICENSE-skills.md +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/NOTICE +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/plugins/dairy-data-tools/LICENSE +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/plugins/dairy-data-tools/LICENSE-skills.md +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/plugins/dairy-data-tools/NOTICE +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/tools/dairyread.py +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/tools/dairytools/__init__.py +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/tools/dairytools/cli.py +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/tools/dairytools/commands.py +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/tools/dairytools/cowcard.py +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/tools/dairytools/data/NOTICE-nasem.md +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/tools/dairytools/data/nasem_feeds.csv +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/tools/dairytools/explorer.py +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/tools/dairytools/feeding.py +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/tools/dairytools/herd.py +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/tools/dairytools/io.py +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/tools/dairytools/nutrients.py +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/tools/dairytools/reference.py +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/tools/dairytools/stats.py +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/tools/dairytools/weekly.py +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/tools/dairytools/weeklycard.py +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/tools/pen_milk.py +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/tools/ration_change.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: dairy-data-tools
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Read a dairy farm's DairyComp and EZfeed exports: the herd, each pen and cow, pen cows joined to pen feed, a weekly or visit review, and a ration change with the season taken out.
|
|
5
5
|
Project-URL: Homepage, https://github.com/padge01/dairy-data-tools
|
|
6
6
|
Project-URL: Issues, https://github.com/padge01/dairy-data-tools/issues
|
|
@@ -19,7 +19,7 @@ Description-Content-Type: text/markdown
|
|
|
19
19
|
|
|
20
20
|
<div align="center">
|
|
21
21
|
|
|
22
|
-
<img src="
|
|
22
|
+
<img src="plugins/dairy-data-tools/.claude-plugin/icon.png" alt="" width="96">
|
|
23
23
|
|
|
24
24
|
# Dairy Data Tools
|
|
25
25
|
|
|
@@ -31,9 +31,9 @@ Description-Content-Type: text/markdown
|
|
|
31
31
|
[](https://doi.org/10.5281/zenodo.23493936)
|
|
32
32
|
[](LICENSE)
|
|
33
33
|
|
|
34
|
-
[Quick start](#quick-start) · [Other apps](#other-apps) · [What's in it](#whats-in-it) · [Your files](#what-it-does-with-your-files)
|
|
34
|
+
[Quick start](#quick-start) · [What you get](#what-you-get) · [Other apps](#other-apps) · [What's in it](#whats-in-it) · [Your files](#what-it-does-with-your-files)
|
|
35
35
|
|
|
36
|
-
Free, for dairy vets, nutritionists and consultants. By Pádraig Lucey, MVB, MPVM, Ph.D
|
|
36
|
+
Free, for dairy vets, nutritionists and consultants. By Pádraig Lucey, MVB, MPVM, Ph.D., DACVPM-Epi
|
|
37
37
|
([Dairy Data Science](https://dairydatascience.com)).
|
|
38
38
|
|
|
39
39
|
</div>
|
|
@@ -57,38 +57,38 @@ Attach the farm's DairyComp and EZfeed exports (or this kit's [sample herd](http
|
|
|
57
57
|
ask, for example:
|
|
58
58
|
|
|
59
59
|
```text
|
|
60
|
-
How is pen 21 doing?
|
|
60
|
+
How is pen 21 doing?
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
You get the figures, where each came from and what it's out of, and a card like this one:
|
|
64
64
|
|
|
65
|
-
<p align="center"><img src="
|
|
65
|
+
<p align="center"><img src="docs/images/pen-card.png" alt="Pen 21's card from the sample herd: milk, days in milk, lactation and intake; ECM by day above intake split into aNDF, starch, CP and fat, with the ration change marked; the ration as bars; feed cost and health." width="760"></p>
|
|
66
66
|
|
|
67
67
|
No DairyComp export yet? Ask *"What do I type in DairyComp to export what you need?"*. It writes the SHOW commands from
|
|
68
68
|
the farm's own item list.
|
|
69
69
|
|
|
70
70
|
## What you get
|
|
71
71
|
|
|
72
|
-
Each answer comes back as a card. These are from the sample herd.
|
|
72
|
+
Each answer comes back as a card. These are from the sample herd. A six-page overview to share:
|
|
73
|
+
[dairy-data-tools-overview.pdf](https://github.com/padge01/dairy-data-tools/blob/main/docs/dairy-data-tools-overview.pdf).
|
|
73
74
|
|
|
74
75
|
<table>
|
|
75
76
|
<tr>
|
|
76
77
|
<td width="50%" valign="top"><b>A cow</b><br>Her milk this lactation, her place in the pen, what's happened to her.<br><br>
|
|
77
|
-
<img src="
|
|
78
|
+
<img src="docs/images/card-cow.png" alt="Cow 3004's card" width="100%"></td>
|
|
78
79
|
<td width="50%" valign="top"><b>Pen feed</b><br>Each pen's intake, efficiency, cost per cwt and ration side by side.<br><br>
|
|
79
|
-
<img src="
|
|
80
|
+
<img src="docs/images/card-pen-feed.png" alt="The pen feed card" width="100%"></td>
|
|
80
81
|
</tr>
|
|
81
82
|
<tr>
|
|
82
83
|
<td valign="top"><b>Visit review</b><br>Fresh cows, components, udder health, reproduction, who left, and what to check next.<br><br>
|
|
83
|
-
<img src="
|
|
84
|
+
<img src="docs/images/card-visit.png" alt="The visit review" width="100%"></td>
|
|
84
85
|
<td valign="top"><b>On a slide</b><br>Add <code>--slide</code>: bigger, fewer items, sized for a talk or a meeting.<br><br>
|
|
85
|
-
<img src="
|
|
86
|
+
<img src="docs/images/card-slide.png" alt="Pen 21's card as a slide" width="100%"></td>
|
|
86
87
|
</tr>
|
|
87
88
|
</table>
|
|
88
89
|
|
|
89
90
|
Herds that test get ECM from their tests. Herds that only weigh milk get each cow's daily weight, and the card says so.
|
|
90
|
-
Save the exports
|
|
91
|
-
tests.
|
|
91
|
+
Save the exports every day or every month and the cards join them into each pen's and each cow's milk over time.
|
|
92
92
|
|
|
93
93
|
## Other apps
|
|
94
94
|
|
|
@@ -109,17 +109,14 @@ Ask in plain words; the right skill picks itself. No commands to learn.
|
|
|
109
109
|
| herd-explorer | "How is pen 21 doing?" "What happened to cow 3004?" | The herd, every pen, one pen, one cow: milk and ECM as a spread, events, lactations |
|
|
110
110
|
| pen-feed | "What's pen 21's feed efficiency and IOFC?" "Is the feed loaded as called for?" | Each pen's cows joined to its feed: intake per cow, ECM per lb DM, cost per cwt, IOFC, NASEM's predicted intake; loading accuracy, refusals, consistency |
|
|
111
111
|
| weekly-review | "Get me ready for Thursday's visit." "How are the fresh cows doing?" | Fresh cows, components and MUN, udder health, reproduction, who left, the pens' feed, and actions for the next visit |
|
|
112
|
-
| ration-change | "Did pen 21's ration change work
|
|
113
|
-
| balance-ration | "Balance pen 21's ration" |
|
|
114
|
-
|
|
115
|
-
Plain Python, checked number for number against the author's earlier R version: every count says what it's out of,
|
|
116
|
-
milk is shown as a spread, and the farm is compared with itself, never with published targets.
|
|
112
|
+
| ration-change | "Did pen 21's ration change work?" | The weeks before against the weeks after, with the same weeks last year or another pen taken out |
|
|
113
|
+
| balance-ration | "Balance pen 21's ration" | Runs the free Dairy Ration Lab when it's connected; this kit never makes up a ration |
|
|
117
114
|
|
|
118
115
|
**A sample herd** (`sample-herd/`): a made-up California dairy's exports, to try every skill before using a real farm's.
|
|
119
116
|
|
|
120
|
-
**
|
|
121
|
-
|
|
122
|
-
|
|
117
|
+
**Also from Dairy Data Science:** the **Dairy Ration Lab**, a free ration balancer, at https://lab.dairydatascience.com
|
|
118
|
+
(for agents: `https://mcp.dairydatascience.com`, sign in with Google), and **BESTPRED**, USDA's best prediction of
|
|
119
|
+
305-day and mature-equivalent milk, in this marketplace and at `https://bestpred.dairydatascience.com/mcp`.
|
|
123
120
|
|
|
124
121
|
## What it does with your files
|
|
125
122
|
|
|
@@ -134,8 +131,8 @@ Lab** (a free ration balancer).
|
|
|
134
131
|
|
|
135
132
|
## Good to know
|
|
136
133
|
|
|
137
|
-
- Weights are in pounds.
|
|
138
|
-
targets.
|
|
134
|
+
- Weights are in pounds. Every count says what it's out of, and pens are compared with themselves and with the farm's
|
|
135
|
+
other pens, never with published targets.
|
|
139
136
|
- It's a teaching and planning tool, not veterinary or nutrition advice: check anything before it changes what cows are
|
|
140
137
|
fed.
|
|
141
138
|
- DairyComp 305 and EZfeed are Valley Ag Software's products; this project isn't affiliated with them.
|
|
@@ -143,12 +140,12 @@ Lab** (a free ration balancer).
|
|
|
143
140
|
## Cite it
|
|
144
141
|
|
|
145
142
|
If it helps your work, please cite it: Lucey, P. (2026). *Dairy Data Tools* [software]. Zenodo.
|
|
146
|
-
https://doi.org/10.5281/zenodo.23493936
|
|
147
|
-
"Cite this repository" button gives the same reference.
|
|
143
|
+
https://doi.org/10.5281/zenodo.23493936. GitHub's "Cite this repository" button gives the same reference.
|
|
148
144
|
|
|
149
145
|
## Licence
|
|
150
146
|
|
|
151
|
-
Code under Apache-2.0 (`LICENSE`); the skills' text under CC BY 4.0 (`LICENSE-skills.md`).
|
|
147
|
+
Code under Apache-2.0 (`LICENSE`); the skills' text under CC BY 4.0 (`LICENSE-skills.md`). The NASEM (2021) feed values
|
|
148
|
+
keep NASEM's own terms (see `NOTICE`). Questions and fixes:
|
|
152
149
|
[issues](https://github.com/padge01/dairy-data-tools/issues).
|
|
153
150
|
|
|
154
151
|
## Working on it
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
<img src="
|
|
3
|
+
<img src="plugins/dairy-data-tools/.claude-plugin/icon.png" alt="" width="96">
|
|
4
4
|
|
|
5
5
|
# Dairy Data Tools
|
|
6
6
|
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
[](https://doi.org/10.5281/zenodo.23493936)
|
|
13
13
|
[](LICENSE)
|
|
14
14
|
|
|
15
|
-
[Quick start](#quick-start) · [Other apps](#other-apps) · [What's in it](#whats-in-it) · [Your files](#what-it-does-with-your-files)
|
|
15
|
+
[Quick start](#quick-start) · [What you get](#what-you-get) · [Other apps](#other-apps) · [What's in it](#whats-in-it) · [Your files](#what-it-does-with-your-files)
|
|
16
16
|
|
|
17
|
-
Free, for dairy vets, nutritionists and consultants. By Pádraig Lucey, MVB, MPVM, Ph.D
|
|
17
|
+
Free, for dairy vets, nutritionists and consultants. By Pádraig Lucey, MVB, MPVM, Ph.D., DACVPM-Epi
|
|
18
18
|
([Dairy Data Science](https://dairydatascience.com)).
|
|
19
19
|
|
|
20
20
|
</div>
|
|
@@ -38,38 +38,38 @@ Attach the farm's DairyComp and EZfeed exports (or this kit's [sample herd](http
|
|
|
38
38
|
ask, for example:
|
|
39
39
|
|
|
40
40
|
```text
|
|
41
|
-
How is pen 21 doing?
|
|
41
|
+
How is pen 21 doing?
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
You get the figures, where each came from and what it's out of, and a card like this one:
|
|
45
45
|
|
|
46
|
-
<p align="center"><img src="
|
|
46
|
+
<p align="center"><img src="docs/images/pen-card.png" alt="Pen 21's card from the sample herd: milk, days in milk, lactation and intake; ECM by day above intake split into aNDF, starch, CP and fat, with the ration change marked; the ration as bars; feed cost and health." width="760"></p>
|
|
47
47
|
|
|
48
48
|
No DairyComp export yet? Ask *"What do I type in DairyComp to export what you need?"*. It writes the SHOW commands from
|
|
49
49
|
the farm's own item list.
|
|
50
50
|
|
|
51
51
|
## What you get
|
|
52
52
|
|
|
53
|
-
Each answer comes back as a card. These are from the sample herd.
|
|
53
|
+
Each answer comes back as a card. These are from the sample herd. A six-page overview to share:
|
|
54
|
+
[dairy-data-tools-overview.pdf](https://github.com/padge01/dairy-data-tools/blob/main/docs/dairy-data-tools-overview.pdf).
|
|
54
55
|
|
|
55
56
|
<table>
|
|
56
57
|
<tr>
|
|
57
58
|
<td width="50%" valign="top"><b>A cow</b><br>Her milk this lactation, her place in the pen, what's happened to her.<br><br>
|
|
58
|
-
<img src="
|
|
59
|
+
<img src="docs/images/card-cow.png" alt="Cow 3004's card" width="100%"></td>
|
|
59
60
|
<td width="50%" valign="top"><b>Pen feed</b><br>Each pen's intake, efficiency, cost per cwt and ration side by side.<br><br>
|
|
60
|
-
<img src="
|
|
61
|
+
<img src="docs/images/card-pen-feed.png" alt="The pen feed card" width="100%"></td>
|
|
61
62
|
</tr>
|
|
62
63
|
<tr>
|
|
63
64
|
<td valign="top"><b>Visit review</b><br>Fresh cows, components, udder health, reproduction, who left, and what to check next.<br><br>
|
|
64
|
-
<img src="
|
|
65
|
+
<img src="docs/images/card-visit.png" alt="The visit review" width="100%"></td>
|
|
65
66
|
<td valign="top"><b>On a slide</b><br>Add <code>--slide</code>: bigger, fewer items, sized for a talk or a meeting.<br><br>
|
|
66
|
-
<img src="
|
|
67
|
+
<img src="docs/images/card-slide.png" alt="Pen 21's card as a slide" width="100%"></td>
|
|
67
68
|
</tr>
|
|
68
69
|
</table>
|
|
69
70
|
|
|
70
71
|
Herds that test get ECM from their tests. Herds that only weigh milk get each cow's daily weight, and the card says so.
|
|
71
|
-
Save the exports
|
|
72
|
-
tests.
|
|
72
|
+
Save the exports every day or every month and the cards join them into each pen's and each cow's milk over time.
|
|
73
73
|
|
|
74
74
|
## Other apps
|
|
75
75
|
|
|
@@ -90,17 +90,14 @@ Ask in plain words; the right skill picks itself. No commands to learn.
|
|
|
90
90
|
| herd-explorer | "How is pen 21 doing?" "What happened to cow 3004?" | The herd, every pen, one pen, one cow: milk and ECM as a spread, events, lactations |
|
|
91
91
|
| pen-feed | "What's pen 21's feed efficiency and IOFC?" "Is the feed loaded as called for?" | Each pen's cows joined to its feed: intake per cow, ECM per lb DM, cost per cwt, IOFC, NASEM's predicted intake; loading accuracy, refusals, consistency |
|
|
92
92
|
| weekly-review | "Get me ready for Thursday's visit." "How are the fresh cows doing?" | Fresh cows, components and MUN, udder health, reproduction, who left, the pens' feed, and actions for the next visit |
|
|
93
|
-
| ration-change | "Did pen 21's ration change work
|
|
94
|
-
| balance-ration | "Balance pen 21's ration" |
|
|
95
|
-
|
|
96
|
-
Plain Python, checked number for number against the author's earlier R version: every count says what it's out of,
|
|
97
|
-
milk is shown as a spread, and the farm is compared with itself, never with published targets.
|
|
93
|
+
| ration-change | "Did pen 21's ration change work?" | The weeks before against the weeks after, with the same weeks last year or another pen taken out |
|
|
94
|
+
| balance-ration | "Balance pen 21's ration" | Runs the free Dairy Ration Lab when it's connected; this kit never makes up a ration |
|
|
98
95
|
|
|
99
96
|
**A sample herd** (`sample-herd/`): a made-up California dairy's exports, to try every skill before using a real farm's.
|
|
100
97
|
|
|
101
|
-
**
|
|
102
|
-
|
|
103
|
-
|
|
98
|
+
**Also from Dairy Data Science:** the **Dairy Ration Lab**, a free ration balancer, at https://lab.dairydatascience.com
|
|
99
|
+
(for agents: `https://mcp.dairydatascience.com`, sign in with Google), and **BESTPRED**, USDA's best prediction of
|
|
100
|
+
305-day and mature-equivalent milk, in this marketplace and at `https://bestpred.dairydatascience.com/mcp`.
|
|
104
101
|
|
|
105
102
|
## What it does with your files
|
|
106
103
|
|
|
@@ -115,8 +112,8 @@ Lab** (a free ration balancer).
|
|
|
115
112
|
|
|
116
113
|
## Good to know
|
|
117
114
|
|
|
118
|
-
- Weights are in pounds.
|
|
119
|
-
targets.
|
|
115
|
+
- Weights are in pounds. Every count says what it's out of, and pens are compared with themselves and with the farm's
|
|
116
|
+
other pens, never with published targets.
|
|
120
117
|
- It's a teaching and planning tool, not veterinary or nutrition advice: check anything before it changes what cows are
|
|
121
118
|
fed.
|
|
122
119
|
- DairyComp 305 and EZfeed are Valley Ag Software's products; this project isn't affiliated with them.
|
|
@@ -124,12 +121,12 @@ Lab** (a free ration balancer).
|
|
|
124
121
|
## Cite it
|
|
125
122
|
|
|
126
123
|
If it helps your work, please cite it: Lucey, P. (2026). *Dairy Data Tools* [software]. Zenodo.
|
|
127
|
-
https://doi.org/10.5281/zenodo.23493936
|
|
128
|
-
"Cite this repository" button gives the same reference.
|
|
124
|
+
https://doi.org/10.5281/zenodo.23493936. GitHub's "Cite this repository" button gives the same reference.
|
|
129
125
|
|
|
130
126
|
## Licence
|
|
131
127
|
|
|
132
|
-
Code under Apache-2.0 (`LICENSE`); the skills' text under CC BY 4.0 (`LICENSE-skills.md`).
|
|
128
|
+
Code under Apache-2.0 (`LICENSE`); the skills' text under CC BY 4.0 (`LICENSE-skills.md`). The NASEM (2021) feed values
|
|
129
|
+
keep NASEM's own terms (see `NOTICE`). Questions and fixes:
|
|
133
130
|
[issues](https://github.com/padge01/dairy-data-tools/issues).
|
|
134
131
|
|
|
135
132
|
## Working on it
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
[](https://doi.org/10.5281/zenodo.23493936)
|
|
13
13
|
[](LICENSE)
|
|
14
14
|
|
|
15
|
-
[Quick start](#quick-start) · [Other apps](#other-apps) · [What's in it](#whats-in-it) · [Your files](#what-it-does-with-your-files)
|
|
15
|
+
[Quick start](#quick-start) · [What you get](#what-you-get) · [Other apps](#other-apps) · [What's in it](#whats-in-it) · [Your files](#what-it-does-with-your-files)
|
|
16
16
|
|
|
17
|
-
Free, for dairy vets, nutritionists and consultants. By Pádraig Lucey, MVB, MPVM, Ph.D
|
|
17
|
+
Free, for dairy vets, nutritionists and consultants. By Pádraig Lucey, MVB, MPVM, Ph.D., DACVPM-Epi
|
|
18
18
|
([Dairy Data Science](https://dairydatascience.com)).
|
|
19
19
|
|
|
20
20
|
</div>
|
|
@@ -38,19 +38,20 @@ Attach the farm's DairyComp and EZfeed exports (or this kit's [sample herd](http
|
|
|
38
38
|
ask, for example:
|
|
39
39
|
|
|
40
40
|
```text
|
|
41
|
-
How is pen 21 doing?
|
|
41
|
+
How is pen 21 doing?
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
You get the figures, where each came from and what it's out of, and a card like this one:
|
|
45
45
|
|
|
46
|
-
<p align="center"><img src="https://raw.githubusercontent.com/padge01/dairy-data-tools/main/docs/images/pen-card.png" alt="Pen 21's card from the sample herd: milk
|
|
46
|
+
<p align="center"><img src="https://raw.githubusercontent.com/padge01/dairy-data-tools/main/docs/images/pen-card.png" alt="Pen 21's card from the sample herd: milk, days in milk, lactation and intake; ECM by day above intake split into aNDF, starch, CP and fat, with the ration change marked; the ration as bars; feed cost and health." width="760"></p>
|
|
47
47
|
|
|
48
48
|
No DairyComp export yet? Ask *"What do I type in DairyComp to export what you need?"*. It writes the SHOW commands from
|
|
49
49
|
the farm's own item list.
|
|
50
50
|
|
|
51
51
|
## What you get
|
|
52
52
|
|
|
53
|
-
Each answer comes back as a card. These are from the sample herd.
|
|
53
|
+
Each answer comes back as a card. These are from the sample herd. A six-page overview to share:
|
|
54
|
+
[dairy-data-tools-overview.pdf](https://github.com/padge01/dairy-data-tools/blob/main/docs/dairy-data-tools-overview.pdf).
|
|
54
55
|
|
|
55
56
|
<table>
|
|
56
57
|
<tr>
|
|
@@ -68,8 +69,7 @@ Each answer comes back as a card. These are from the sample herd.
|
|
|
68
69
|
</table>
|
|
69
70
|
|
|
70
71
|
Herds that test get ECM from their tests. Herds that only weigh milk get each cow's daily weight, and the card says so.
|
|
71
|
-
Save the exports
|
|
72
|
-
tests.
|
|
72
|
+
Save the exports every day or every month and the cards join them into each pen's and each cow's milk over time.
|
|
73
73
|
|
|
74
74
|
## Other apps
|
|
75
75
|
|
|
@@ -90,17 +90,14 @@ Ask in plain words; the right skill picks itself. No commands to learn.
|
|
|
90
90
|
| herd-explorer | "How is pen 21 doing?" "What happened to cow 3004?" | The herd, every pen, one pen, one cow: milk and ECM as a spread, events, lactations |
|
|
91
91
|
| pen-feed | "What's pen 21's feed efficiency and IOFC?" "Is the feed loaded as called for?" | Each pen's cows joined to its feed: intake per cow, ECM per lb DM, cost per cwt, IOFC, NASEM's predicted intake; loading accuracy, refusals, consistency |
|
|
92
92
|
| weekly-review | "Get me ready for Thursday's visit." "How are the fresh cows doing?" | Fresh cows, components and MUN, udder health, reproduction, who left, the pens' feed, and actions for the next visit |
|
|
93
|
-
| ration-change | "Did pen 21's ration change work
|
|
94
|
-
| balance-ration | "Balance pen 21's ration" |
|
|
95
|
-
|
|
96
|
-
Plain Python, checked number for number against the author's earlier R version: every count says what it's out of,
|
|
97
|
-
milk is shown as a spread, and the farm is compared with itself, never with published targets.
|
|
93
|
+
| ration-change | "Did pen 21's ration change work?" | The weeks before against the weeks after, with the same weeks last year or another pen taken out |
|
|
94
|
+
| balance-ration | "Balance pen 21's ration" | Runs the free Dairy Ration Lab when it's connected; this kit never makes up a ration |
|
|
98
95
|
|
|
99
96
|
**A sample herd** (`sample-herd/`): a made-up California dairy's exports, to try every skill before using a real farm's.
|
|
100
97
|
|
|
101
|
-
**
|
|
102
|
-
|
|
103
|
-
|
|
98
|
+
**Also from Dairy Data Science:** the **Dairy Ration Lab**, a free ration balancer, at https://lab.dairydatascience.com
|
|
99
|
+
(for agents: `https://mcp.dairydatascience.com`, sign in with Google), and **BESTPRED**, USDA's best prediction of
|
|
100
|
+
305-day and mature-equivalent milk, in this marketplace and at `https://bestpred.dairydatascience.com/mcp`.
|
|
104
101
|
|
|
105
102
|
## What it does with your files
|
|
106
103
|
|
|
@@ -115,8 +112,8 @@ Lab** (a free ration balancer).
|
|
|
115
112
|
|
|
116
113
|
## Good to know
|
|
117
114
|
|
|
118
|
-
- Weights are in pounds.
|
|
119
|
-
targets.
|
|
115
|
+
- Weights are in pounds. Every count says what it's out of, and pens are compared with themselves and with the farm's
|
|
116
|
+
other pens, never with published targets.
|
|
120
117
|
- It's a teaching and planning tool, not veterinary or nutrition advice: check anything before it changes what cows are
|
|
121
118
|
fed.
|
|
122
119
|
- DairyComp 305 and EZfeed are Valley Ag Software's products; this project isn't affiliated with them.
|
|
@@ -124,10 +121,10 @@ Lab** (a free ration balancer).
|
|
|
124
121
|
## Cite it
|
|
125
122
|
|
|
126
123
|
If it helps your work, please cite it: Lucey, P. (2026). *Dairy Data Tools* [software]. Zenodo.
|
|
127
|
-
https://doi.org/10.5281/zenodo.23493936
|
|
128
|
-
"Cite this repository" button gives the same reference.
|
|
124
|
+
https://doi.org/10.5281/zenodo.23493936. GitHub's "Cite this repository" button gives the same reference.
|
|
129
125
|
|
|
130
126
|
## Licence
|
|
131
127
|
|
|
132
|
-
Code under Apache-2.0 (`LICENSE`); the skills' text under CC BY 4.0 (`LICENSE-skills.md`).
|
|
128
|
+
Code under Apache-2.0 (`LICENSE`); the skills' text under CC BY 4.0 (`LICENSE-skills.md`). The NASEM (2021) feed values
|
|
129
|
+
keep NASEM's own terms (see `NOTICE`). Questions and fixes:
|
|
133
130
|
[issues](https://github.com/padge01/dairy-data-tools/issues).
|
{dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/plugins/dairy-data-tools/sample-herd/README.md
RENAMED
|
@@ -6,7 +6,7 @@ herd simulator, with a ration-change story laid over it by `tools/make_sample_he
|
|
|
6
6
|
| File | What it is | From |
|
|
7
7
|
| --- | --- | --- |
|
|
8
8
|
| `cows_2026-10-28.csv`, `tests_2026-10-28.csv` | Every animal on 28 Oct 2026 (in the herd, sold and dead), and each cow's tests | DairyComp SHOW reports, saved as CSV |
|
|
9
|
-
| `
|
|
9
|
+
| `tests_2025-12-28.csv` ... `tests_2026-09-28.csv` | The same test report saved each month for ten months: together, each cow's tests over her lactation | DairyComp SHOW reports, saved monthly |
|
|
10
10
|
| `events_*.csv` | Three years of events, one file a year | DairyComp EVENTS |
|
|
11
11
|
| `items.csv` | The farm's item list | DairyComp ALTER\2 export |
|
|
12
12
|
| `intake_2026-08-15_2026-10-28.csv`, `intake_2025-08-15_2025-10-31.csv` | Each pen's daily feed, this fall and last | EZfeed Ingredient Intake Tgt vs Act by Pen |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "dairy-data-tools"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.4"
|
|
4
4
|
description = "Read a dairy farm's DairyComp and EZfeed exports: the herd, each pen and cow, pen cows joined to pen feed, a weekly or visit review, and a ration change with the season taken out."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -568,11 +568,11 @@ def pen_card_html(herd: Herd, pen, pen_milk: dict | None = None, days: int = 75,
|
|
|
568
568
|
if recipe:
|
|
569
569
|
side.append(f"<h2>Ration, last 7 days</h2><div class='sub'>lb of dry matter per cow, called for</div>"
|
|
570
570
|
f"<div class='rbars'>{ration_bars(recipe)}</div>")
|
|
571
|
-
# Feed
|
|
571
|
+
# Feed goes under the charts; a slide leaves it out.
|
|
572
572
|
below = []
|
|
573
|
-
if pc["health"] and not slide:
|
|
574
|
-
|
|
575
|
-
|
|
573
|
+
if pc["health"] and not slide: # under the ration, so the two columns end together
|
|
574
|
+
side.append(f"<h2>Health, last {pc['days']} days</h2><div class='sub'>Cows in the pen now with each "
|
|
575
|
+
f"event</div>{health_rows(pc['health'], len(cows))}")
|
|
576
576
|
if feed and feed.get("dmi_lb_per_cow") and not slide:
|
|
577
577
|
eff_key = "ecm_per_lb_dm" if feed.get("ecm_per_lb_dm") else "milk_per_lb_dm"
|
|
578
578
|
efficiency = format(feed[eff_key], ".2f") if feed.get(eff_key) else "n/a"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dairy_data_tools-0.2.2 → dairy_data_tools-0.2.4}/plugins/dairy-data-tools/LICENSE-skills.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|