Skip to content

Commit 80785f9

Browse files
authored
Merge pull request #223 from American-Institutes-for-Research/HEA-815/miking_animals_regex_updates
Address testing feedback on remaining patterns see HEA-815
2 parents 6e7cb5f + 129c5de commit 80785f9

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

pipelines/assets/livelihood_activity_regexes.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,18 @@
349349
false,
350350
"milking_animals"
351351
],
352+
[
353+
"(?P<season>season 1): (?:no\\.|no|number) milking animals",
354+
"MilkProduction",
355+
false,
356+
"milking_animals"
357+
],
358+
[
359+
"(?P<season>season 2): (?:no\\.|no|number) milking animals",
360+
"MilkProduction",
361+
true,
362+
"milking_animals"
363+
],
352364
[
353365
"daily milk production per animal \\({unit_of_measure_pattern}\\)",
354366
null,

pipelines_tests/test_assets/test_livelihood_activity_regexes.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@
2424
"number milking animals": {
2525
"attribute": "milking_animals"
2626
},
27+
"season 1: no. milking animals": {
28+
"strategy_type": "MilkProduction",
29+
"season": "season 1",
30+
"attribute": "milking_animals"
31+
},
32+
"season 2: no. milking animals": {
33+
"strategy_type": "MilkProduction",
34+
"is_start": true,
35+
"season": "season 2",
36+
"attribute": "milking_animals"
37+
},
2738
"season 1: lactation period (days)": {
2839
"strategy_type": "MilkProduction",
2940
"season": "season 1",

0 commit comments

Comments
 (0)