+
    *§k°  ã                   ó4  € R t ^ RIt^ RIt^ RIHt ^ RIHt ]P                  P                  ^ ]	! ]! ]
4      P                  4       P                  ^,          R,          4      4       ^ RIt ! R R]P                  4      t]R8X  d   ]P$                  ! 4        R# R# )zHBox scoring must not count one candidate for two overlapping references.N)ÚPath)ÚpatchÚresearchc                   ó,   a € ] tR t^t o R tR tRtV tR# )ÚBoxMatchingTestc           
     óÞ  a€ RRRRRRRR/o\         P                  ! \        RR R7      ;_uu_ 4        \         P                  ! \        RV3R	 lR7      ;_uu_ 4        \        P                  ! ^ ^.R
^ /R
^/.4      pRRR4       RRR4       V P	                  XR,          ^4       V P                  \        VR,          4      R4       R#   + '       g   i     LU; i  + '       g   i     L`; i)é    çÍÌÌÌÌÌì?gffffffæ?gš™™™™™é?gš™™™™™¹?Úmask_boxc                 ó   € V # ©N© ©Úms   &ÚP/home/mchadwick/src/ansp/diatom-research/diatom_pilot/tests/test_l38_matching.pyÚ<lambda>Ú>BoxMatchingTest.test_maximizes_matched_boxes.<locals>.<lambda>   ó   € ¹ó    ©Úside_effectÚbox_iouc                 ó   <€ SW3,          # r   r   )ÚaÚbÚscoress   &&€r   r   r      s   ø€ ÐmsÐtuÐtwÖmxr   ÚmaskNÚmatchedÚmatched_box_iousg      ø?)r   r   )r   é   )r   r   )r   r   )r   ÚobjectÚl38Úmatch_boxesÚassertEqualÚassertAlmostEqualÚsum)ÚselfÚoutr   s   & @r   Útest_maximizes_matched_boxesÚ,BoxMatchingTest.test_maximizes_matched_boxes	   s©   ø€ Ø
��5˜˜E " U¨2Ð	.€&Ü‡|‚|”C˜
©z×:Ö:¼5¿<º<ÌÈIÔbx×;yÖ;yÜ
‡‚˜˜!�u˜v a˜j¨&°¨Ð4Ó5€3÷ <z×:à×Ñ�3�y•> !Ô$ T×%;Ñ%;¼CÀÐDVÕ@WÓ<XÐY\Ö%]÷ <z×;yú×:×:ús#   ²*CÁ C		Á<CÃ	CÃCÃC,	c           	     óv  € \         P                  ! \        R R R7      ;_uu_ 4        \         P                  ! \        RRR7      ;_uu_ 4        \        P                  ! ^ ^.R^ /.4      pRRR4       RRR4       V P	                  XR,          ^4       R#   + '       g   i     L3; i  + '       g   i     L>; i)	r
   c                 ó   € V # r   r   r   s   &r   r   ÚMBoxMatchingTest.test_single_candidate_cannot_cover_two_refs.<locals>.<lambda>   r   r   r   r   r	   )Úreturn_valuer   Nr   )r   r    r!   r"   r#   )r&   r'   s   & r   Ú+test_single_candidate_cannot_cover_two_refsÚ;BoxMatchingTest.test_single_candidate_cannot_cover_two_refs   sp   € Ü‡|‚|”C˜
©z×:Ö:¼5¿<º<ÌÈIÐce×;fÖ;fÜ
‡‚˜˜!�u˜v a˜j˜\Ó*€3÷ <g×:à×Ñ�3�y•> !Ö$÷ <g×;fú×:×:ús#   §&B(ÁB	Á*B(ÂB%Â B(Â(B8	r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r(   r.   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r      s   ø‡ € ò^÷
%ð %r   r   Ú__main__)Ú__doc__ÚsysÚunittestÚpathlibr   Úunittest.mockr   ÚpathÚinsertÚstrÚ__file__ÚresolveÚparentsÚl38_real_multiobjectr!   ÚTestCaser   r0   Úmainr   r   r   Ú<module>rF      so   ðÙ Nß Ý Ý Ø ‡�‡��‘#‘d˜8“n×,Ñ,Ó.×6Ñ6°qÕ9¸*ÕDÓEÔ FÛ "ô	%�h×'Ñ'ô 	%ð ˆZÔ˜ŸšžÑr   