+
    VÂk€  ã                  ó.  € R t ^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	H
t
 ^ RIHt ]
! ]4      P                  4       P                  P                  t]R,          t]R,          t]R,          t]R,          tR	tR
tR R ltR R lt ! R R4      tR# )a1  Fail-closed access to eligible UDE development cutouts in a verified archive.

The source taxonomy is from the UDE dataset; it has not been independently
adjudicated against Academy taxonomy. Bounding crops can contain other diatoms,
and this reader supplies neither instance masks nor background labels.
)ÚannotationsN)ÚPath)ÚImagez#datasets/r112-ude-full/ude-2024.zipz6results/r112/ude-sampling-metadata/exposure-ledger.csvz7results/r112/ude-sampling-metadata/exposure-report.jsonz<results/r112/ude-sampling-metadata/archive-verification.jsonz$UDE Diatoms in the Wild 2024/images/Ú 4b46497fb17693aa361e59a0fc91c8bfc               ó    € V ^8„  d   QhRRRR/# )é   Úpathr   ÚreturnÚstr© )Úformats   "Ú'diatom_pilot/ude_development_archive.pyÚ__annotate__r      s   € ÷ ñ �ð �sñ ó    c                ó$  a€ \         P                  ! 4       pV P                  R 4      ;_uu_ 4       o\        V3R lR4       F  q!P	                  V4       K  	  RRR4       VP                  4       #   + '       g   i     TP                  4       # ; i)Úrbc                 ó&   <€ S P                  R4      # )i   i   )Úread)Úfs   €r   Ú<lambda>Úsha256.<locals>.<lambda>   s   ø€ ˜1Ÿ6™6 )Ô,r   r   N)ÚhashlibÚsha256ÚopenÚiterÚupdateÚ	hexdigest)r   ÚhÚblockr   s   &  @r   r   r      s[   ø€ Ü
‡>‚>Ó€Ø
‡i�i�‡o„o˜ÜÔ,¨SÖ1€e·(±(¸5¶/Ñ1÷ à	�‰‹Ð÷ †oà	�‰‹Ðús   °(A0Á0B	c               ó$   € V ^8„  d   QhRRRRRR/# )r   Úgenusr
   Úspeciesr	   z	list[str]r   )r   s   "r   r   r      s!   € ÷ ñ ˜Cð ¨ð ¨iñ r   c                óV  a€ . q!P                  4       oV P                  4       pSR9   d   VP                  R4       \        P                  ! RS\        P                  4      '       d   VP                  R4       \
        ;QJ d    V3R lR 4       F  '       g   K   RM	  RM! V3R lR 4       4      '       d   VP                  R	4       S'       dY   SR8w  dR   V'       dJ   SP                  4       ^ ,          P                  4       VP                  4       8w  d   VP                  R
4       V# )zIFlag literal uncertainty; this does not perform taxonomic reconciliation.ÚNoneÚgenus_only_or_missingz\b(?:sp|spp|cf|aff)\s*\.Úqualified_or_morphotypec              3  ó,   <"  € T F	  qS9   x € K  	  R # 5i©Nr   )Ú.0ÚcÚnames   & €r   Ú	<genexpr>Ú$source_name_flags.<locals>.<genexpr>   s   øé € Ð!™5�aˆTŽ	›5ùs   ƒz()=TFÚalternate_name_syntaxÚgenus_string_mismatch)Ú r#   )ÚstripÚappendÚreÚsearchÚIÚanyÚsplitÚcasefold)r    r!   ÚflagsÚgr*   s   &&  @r   Úsource_name_flagsr:      s»   ø€ à	€�}‰}‹ˆ$ §¡£˜qØˆKÔ˜Ÿ™Ð%<Ô=Ü‡I‚IÐ)¨$¬r¯t©t×4Ò4°U·\±\ÐB[Ô5\ßƒCÔ!™5Ó!‡C‡C‚CÔ!™5Ó!×!Ò! %§,¡,Ð/FÔ"GßˆT�6Œ\Ÿa D§J¡J£L°¥O×$<Ñ$<Ó$>ÀÇ
Á
ÃÔ$LÈUÏ\É\ÐZqÔMrØ€r   c                  óZ   € ] tR t^tRt]]]]3R]	/R llt
R tR tR tRR/R	 R
 lltRtR# )ÚUDEDevelopmentArchivezPRead only prior-development components; protected or unmatched rows fail closed.Úexpected_md5c               	ó  € \        V4      V n        \        V4      p\        V4      p\        V4      pV P                  P                  P                  R 4      '       d   \	        R4      h\
        P                  ! VP                  4       4      p\
        P                  ! VP                  4       4      pVP                  R4      R8w  g   VP                  R4      R8w  d   \	        R4      hV P                  P                  4       P                  VR,          8w  g[   \        V P                  4      VR,          8w  g:   VR,          VR	,          8w  g%   VR	,          V8w  g   VP                  R
4      ^ 8w  d   \	        R4      h\        V4      VR,          8w  d   \	        R4      h/ V n        VP                  RRR7      ;_uu_ 4       p\        P                  ! V4       F=  p	V	R,          p
V
'       d   W P                  9   d   \	        R4      hW�P                  V
&   K?  	  RRR4       \!        V P                  4      VR,          8w  d   \	        R4      h\"        P$                  ! V P                  R4      V n        R#   + '       g   i     Ld; i)z.partialzPartial archives cannot be usedr   zr112-ude-full-archive-v1zr112-ude-exposure-ledger-v1z)Unsupported verification or ledger reportÚbytesÚcomputed_sha256Úcomputed_md5Úpublished_md5Úduplicate_member_nameszArchive verification mismatchÚledger_sha256z%Exposure ledger verification mismatchr/   zutf-8)ÚnewlineÚencodingÚannotation_idz"Invalid or duplicate annotation IDNÚmetadata_rowszLedger row count mismatchÚr)r   Úarchiver*   ÚendswithÚ
ValueErrorÚjsonÚloadsÚ	read_textÚgetÚstatÚst_sizer   Úrowsr   ÚcsvÚ
DictReaderÚlenÚzipfileÚZipFileÚ_zip)ÚselfrJ   ÚledgerÚreportÚverificationr=   ÚdrI   r   ÚrowÚidents   &&&&&$     r   Ú__init__ÚUDEDevelopmentArchive.__init__!   s8  € Ü�G‹}€$„,¤D¨£L˜V¼¸V»°ÔRVÐWcÓRdÀ\Ø	‡\�\×Ñ×Ñ 
×+Ò+´*Ð=^Ó2_Ð,_Ü‡J‚Jˆ|×%Ñ%Ó'Ó(€!¬4¯:ª:°f×6FÑ6FÓ6HÓ+I¨Ø‡U�Uˆ8ƒ_Ð0Ô0°A·E±E¸(³OÐEbÔ4bÔisð  u`ó  jað  daØ	‡\�\×ÑÓ× Ñ  ! G¥*Ô,´°t·|±|Ó0DÀaÐHYÕFZÔ0ZÐ^_Ð`nÕ^oÐqrð  tCõ  rDô  _Dð  HIð  JYõ  HZð  \hô  Hhð  lm÷  lqñ  lqð  rJó  lKð  MNô  lNô  U_ð  `ó  U@ð  O@ÜˆFƒ^�Q�Õ'Ô'¬jÐ9`Ó.aÐ(aØ€$„)Ø‡{�{˜2 w€{×/Ô/°1Ü�nŠn˜QÖ€sØ
ˆoÕ
€Eß�EŸY™YÔ&¬ZÐ8\Ó-]Ð']Ø‡I�IˆeÓñ  ÷ 0ô
 	ˆ�‰ƒ^�Q�Õ'Ô'¬jÐ9TÓ.UÐ(UÜ�OŠO˜DŸL™L¨Ó-€$†)÷ 0×/ús   Ç AI4É4J	c                	ó:   € V P                   P                  4        R # r'   )rY   Úclose©rZ   s   &r   rd   ÚUDEDevelopmentArchive.close0   s   € �—‘—‘Ö"r   c                	ó   € V # r'   r   re   s   &r   Ú	__enter__ÚUDEDevelopmentArchive.__enter__1   s   € ˜D�[r   c                	ó&   € V P                  4        R # r'   )rd   )rZ   Úargss   &*r   Ú__exit__ÚUDEDevelopmentArchive.__exit__2   s
   € ˜$Ÿ*™*ž,r   Úrequire_plain_speciesFc               ó$   € V ^8„  d   QhRRRRRR/# )r   rG   r
   rn   Úboolr	   Údictr   )r   s   "r   r   Ú"UDEDevelopmentArchive.__annotate__3   s&   € ÷ t	ñ t	˜Sð t	¸ð t	Àdñ t	r   c               	óH  € V P                   \        V4      ,          pVR ,          R8w  d   \        R4      h\        VR,          VR,          4      pV'       d   V'       d   \	        R4      hVR,          pV'       d   RV9   g   RV9   g   VR$9   d   \	        R	4      hV P
                  P                  \        V,           4      pVP                  4       '       g   ^ VP                  u;8  d   R%8:  g   M \	        R
4      hV P
                  P                  V4      p\        P                  ! \        P                  ! V4      4      pVP                  R8w  g#   VP                   VP"                  ,          R8”  d   \	        R4      hVP%                  R4      qˆP'                  4        RVR\        V4      RVR,          RVR,          RVRRRVR,          RVR,          R VR ,          RVR,          R\(        P*                  ! V4      P-                  4       RVP.                  R RRR.R R!R"R#/# )&Úexposure_statusÚprior_developmentzRSource location is reserved, unmatched, conflicted, or not cleared for developmentr    r!   zCSource name has unresolved taxonomic flags or lacks a species labelÚcutout_filenameÚ/Ú\zInvalid source member namezUnexpected crop sizeÚPNGi $ô z%Unexpected image format or dimensionsÚLÚimagerG   Úsource_nameÚsource_genusr:   Úsource_taxonomy_statusz3source dataset label; not independently adjudicatedÚsource_slideÚimage_filenameÚsite_componentÚsource_annotation_shapeÚannotation_shapeÚarchive_member_sha256Úarchive_member_crc32Ú08xÚsource_um_per_pixel_xyg
×£p=
·?Úmask_statuszno verified instance maskÚbackground_statusz)unknown; crop can contain other organisms)Ú.z..i  @ )rS   r
   ÚPermissionErrorr:   rL   rY   ÚgetinfoÚPREFIXÚis_dirÚ	file_sizer   r   r   ÚioÚBytesIOr   ÚwidthÚheightÚconvertÚloadr   r   r   ÚCRC)	rZ   rG   rn   r_   r8   r*   ÚinfoÚblobr{   s	   &&$      r   r   ÚUDEDevelopmentArchive.read3   sŠ  € Ø
‡i�i”�MÓ"Õ#€#ØÐ	ÕÐ0Ô0´ð  H\ó  8]ð  2]Ü˜#˜g�, s¨9¥~Ó6€%ßŸu¬:Ð6{Ó+|Ð%|Ø
ÐÕ€$ß	�˜” ¨¤°¸
Ô0BÌÐTpÓIqÐCqØ‡y�y×Ñœ �Ó%€$Ø	‡[�[‡]‚]˜!˜DŸN™NÖ7¨KÖ7¼jÐI_Ó>`Ð8`Ø‡y�y‡~�~�dÓ€$Ü�
Š
”2—:’:˜dÓ#Ó$€%Ø
‡\�\�5Ô˜EŸK™K¨¯©Õ4°ZÔ?ÄjÐQxÓFyÐ@yØ�‰�cÓ€%Ÿ:™:œ<Ø
�%˜¬¨MÓ(:¸=ÈÈYÍÐXfÐgjÐkrÕgsð  uHð  INð  Ogð  h]ð  ^lð  mpð  qAõ  mBð  CSð  TWð  Xhõ  Tið  j{ð  |ð  @Qõ  |Rð  Slð  mpð  qCõ  mDð  E\ô  ]d÷  ]kò  ]kð  lpó  ]q÷  ]{ñ  ]{ó  ]}ð  ~Tð  X\÷  X`ñ  X`ð  adð  Weð  gð  ADð  EHð  @Ið  JWð  Xsð  tG	ð  H	s	ð  
t	ð  t	r   )rY   rJ   rS   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__ÚDEFAULT_ARCHIVEÚDEFAULT_LEDGERÚDEFAULT_REPORTÚDEFAULT_VERIFICATIONÚPUBLISHED_MD5ra   rd   rh   rl   r   Ú__static_attributes__r   r   r   r<   r<      s?   † ÙWØ*°.ÈÐdxñ .ð  IVõ .ò #Ú Ú&ðt	¸e÷ t	ó t	r   r<   )rž   Ú
__future__r   rT   r   r�   rM   r2   rW   Úpathlibr   ÚPILr   Ú__file__ÚresolveÚparentÚROOTrŸ   r    r¡   r¢   r�   r£   r   r:   r<   r   r   r   Ú<module>r¬      s‰   ðñõ #ß %× %× %Ý Ý Ù	ˆ(ƒ^×ÑÓ×$Ñ$×+Ñ+€ØÐ:Õ:€ØÐLÕL€ØÐMÕM€ØÐXÕXÐ Ø-€Ø0€õõ
÷!t	ó !t	r   