Exemplo n.º 1
0
 def test_parse_03(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse(
             "reproductive data: 4 embryos - 15 mm, crown-rump length"
         ),
         [Trait(value=15, units="mm", units_inferred=False, start=21, end=55)],
     )
Exemplo n.º 2
0
 def test_parse_14(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse(
             "Embryos of AF 48621. Eight embryos of AF 48621.  CR=6"
         ),
         [Trait(value=6, units=None, units_inferred=True, start=49, end=53)],
     )
Exemplo n.º 3
0
 def test_parse_28(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse(
             "uterus large, embryos 1 + 1 = 2 (29763, 29764) CR = 30 mm."
         ),
         [Trait(value=30.0, units="mm", units_inferred=False, start=47, end=57)],
     )
Exemplo n.º 4
0
 def test_parse_12(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse(
             "reproductive data=Embryos: 2 (1 resorbing) R, 3 Left, "
             "crown-rump length, 36 mm."
         ),
         [Trait(value=36, units="mm", units_inferred=False, start=54, end=78)],
     )
Exemplo n.º 5
0
 def test_parse_24(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse("reproductive data=embryos: 2L, 1R-0.5x0.5 mm ;"),
         [
             Trait(
                 value=[0.5, 0.5], units="mm", units_inferred=False, start=18, end=44
             )
         ],
     )
Exemplo n.º 6
0
 def test_parse_21(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse("3 embs, 2L, 1R, 19 mm, 17 mm, 17 mm"),
         [
             Trait(value=19, units="mm", units_inferred=False, start=2, end=35),
             Trait(value=17, units="mm", units_inferred=False, start=2, end=35),
             Trait(value=17, units="mm", units_inferred=False, start=2, end=35),
         ],
     )
Exemplo n.º 7
0
 def test_parse_17(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse(
             "sex=female ; total length=158 mm; tail length=28 mm; "
             "hind foot with claw=20 mm; ear from notch=12 mm; "
             "weight=60 g; reproductive data=embryos 2R,3L CR=15mm "
             "left intact"
         ),
         [Trait(value=15, units="mm", units_inferred=False, start=147, end=154)],
     )
Exemplo n.º 8
0
 def test_parse_18(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse("OCGR pg, 4 embs, 2R, 2L, 12 mm 4 2 2"),
         [
             Trait(value=12, units="mm", units_inferred=False, start=11, end=36),
             Trait(value=4, units="mm", units_inferred=True, start=11, end=36),
             Trait(value=2, units="mm", units_inferred=True, start=11, end=36),
             Trait(value=2, units="mm", units_inferred=True, start=11, end=36),
         ],
     )
Exemplo n.º 9
0
 def test_parse_22(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse(
             "Mammals v****a open; mammae tiny; not lactating9 embryos; " "cr-10 ?"
         ),
         [
             Trait(
                 value=10,
                 units=None,
                 units_inferred=True,
                 start=58,
                 end=65,
                 uncertain=True,
             )
         ],
     )
Exemplo n.º 10
0
 def test_parse_04(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse(", CR (crown-rump length) =7 ;"),
         [Trait(value=7, units=None, units_inferred=True, start=6, end=27)],
     )
Exemplo n.º 11
0
 def test_parse_13(self):
     self.assertEqual(EMBRYO_LENGTH.parse("collector=CR 910025, E. E. Makela ;"), [])
Exemplo n.º 12
0
 def test_parse_10(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse(", cr=5x5 ;"),
         [Trait(value=[5, 5], units=None, units_inferred=True, start=2, end=8)],
     )
Exemplo n.º 13
0
 def test_parse_11(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse("sex=recorded as unknown ; reproductive data=cr=9x8mm"),
         [Trait(value=[9, 8], units="mm", units_inferred=False, start=44, end=52)],
     )
Exemplo n.º 14
0
 def test_parse_08(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse("4 embs/1R/3L/cr=2mm"),
         [Trait(value=2, units="mm", units_inferred=False, start=13, end=19)],
     )
Exemplo n.º 15
0
 def test_parse_09(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse("3 embs/2L+2R/cr=X34mm"),
         [Trait(value=34, units="mm", units_inferred=False, start=13, end=21)],
     )
Exemplo n.º 16
0
 def test_parse_06(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse("pregnant; 1 emb; cr-28"),
         [Trait(value=28, units=None, units_inferred=True, start=17, end=22)],
     )
Exemplo n.º 17
0
 def test_parse_07(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse("embryos left horn, cr-rump: 23mm."),
         [Trait(value=23, units="mm", units_inferred=False, start=19, end=32)],
     )
Exemplo n.º 18
0
 def test_parse_20(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse("Mammals 3 embs, 24mm"),
         [Trait(value=24, units="mm", units_inferred=False, start=10, end=20)],
     )
Exemplo n.º 19
0
 def test_parse_05(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse(", CRL=59 mm; "),
         [Trait(value=59, units="mm", units_inferred=False, start=2, end=11)],
     )
Exemplo n.º 20
0
 def test_parse_01(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse("crown-rump length=13 mm"),
         [Trait(value=13, units="mm", units_inferred=False, start=0, end=23)],
     )
Exemplo n.º 21
0
 def test_parse_02(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse("Embryo crown-rump length 22"),
         [Trait(value=22, units=None, units_inferred=True, start=0, end=27)],
     )
Exemplo n.º 22
0
 def test_parse_26(self):
     self.assertEqual(EMBRYO_LENGTH.parse("no emb, 155-79-18-13=13.5"), [])
Exemplo n.º 23
0
 def test_parse_25(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse("7 embryos, 4 male, and 3 female, CRL=59 mm;"),
         [Trait(value=59.0, units="mm", units_inferred=False, start=33, end=42)],
     )
Exemplo n.º 24
0
 def test_parse_23(self):
     self.assertEqual(
         EMBRYO_LENGTH.parse("4 embs: 2(R)&2(L)=9mm "),
         [Trait(value=9, units="mm", units_inferred=False, start=2, end=21)],
     )
Exemplo n.º 25
0
 def test_parse_15(self):
     self.assertEqual(EMBRYO_LENGTH.parse("snap 47: middle Cow Cr."), [])
Exemplo n.º 26
0
 def test_parse_16(self):
     self.assertEqual(EMBRYO_LENGTH.parse("headwaters Kaluich Cr, ca 1500 ft"), [])