+
    !âk#  ã                  óÖ   € R t ^ RIHt ^ RIt^ RIHt ^ RIt^ RIH	t	 ^ RI
Ht ]! ]4      P                  4       P                  P                  t]R,          t]R,          t ! R R	4      tR# )
zHRead extra UDE development crops and optional unverified mask proposals.)ÚannotationsN)ÚPath)ÚImage)Úsha256z&results/r112/species-breadth-extensionú5results/r112/species-scaleup/location-partitions.jsonc                  ó@   € ] tR t^t]3R]RR/R R llltR tR tRt	R	# )
ÚUDEBreadthExtensionDatasetÚprior_splitÚinclude_unverified_masksFc               ó   € V ^8„  d   QhRR/# )é   ÚscopeÚstr© )Úformats   "ÚV/home/mchadwick/src/ansp/diatom-research/diatom_pilot/ude_breadth_extension_dataset.pyÚ__annotate__Ú'UDEBreadthExtensionDataset.__annotate__   s   € ÷ ,Sñ ,S˜cñ ,Só    c               	ó0  € VR 8w  d   \        R4      h\        V4      V n        W@n        V P                  R,          pV P                  R,          pV P                  R,          p\        V4      p\        P
                  ! VP                  4       4      p	\        P
                  ! VP                  4       4      p
\        P
                  ! VP                  4       4      p\        P
                  ! VP                  4       4      pV	P                  R4      V
P                  R4      VP                  R4      3R8w  d   \        R4      hV
R,          \        V4      8w  gM   V
R,          \        V4      8w  g6   V	R,          \        V4      8w  g   VR	,          R
,          \        V4      8w  d   \        R4      hV	R,          V n	        \        V P                  4      V
R,          8w  d   \        R4      h\        4       pV P                   Fh  pVR,          pVP                  4       '       d+   Wý9   g%   VR,          P                  VR,          4      R8w  d   \        R4      hVP                  V4       Kj  	  V'       Ed%   V P                  R,          pVR,          p\        P
                  ! VR,          P                  4       4      p\        P
                  ! VP                  4       4      pVP                  R4      R8w  g—   VR,          \        V4      8w  g€   VR,          \        V4      8w  gi   VR,          \        V4      8w  gR   VR,          \        V P                  4      8w  g1   VR,          \        V P                  4      8w  g   VR,          '       d   \        R4      hR# R# ) Úprior_training_componentsz=Only prior_training_components development scope is availablezassets.jsonzverify.jsonzselection.jsonr   z Unsupported extension provenanceÚassets_sha256Úselection_sha256Úinputs_sha256r   z&Source or location provenance mismatchÚrecordsÚassets_checked_pixel_for_pixelzSource count mismatchÚannotation_idÚgroup_partitionÚsource_site_componentÚtrainingz0Invalid source or nontraining location componentúmask-hypothesesúprotocol.jsonz+r112-breadth-extension-mask-verification-v1Úprotocol_sha256Úsource_assets_sha256Úsource_verify_sha256Úrequested_sourcesÚverified_recordsÚmissing_idsz.Incomplete or mismatched proposal verificationN)z&r112-breadth-depth-extension-assets-v1z&r112-breadth-depth-extension-verify-v1z)r112-breadth-depth-extension-selection-v1)Ú
ValueErrorr   Úrootr
   ÚjsonÚloadsÚ	read_textÚgetr   r   ÚlenÚsetÚ	isdecimalÚadd)Úselfr   r)   r	   r
   Úassets_pathÚverify_pathÚselection_pathÚ
split_pathÚassetsÚverifyÚ	selectionÚsplitÚidsÚrowÚidentÚmasksÚprotocolÚqÚps   &&&$$               r   Ú__init__Ú#UDEBreadthExtensionDataset.__init__   sÙ  € àÐ/Ô/ÜÐ\Ó]Ð]Ü˜“JˆŒ	Ø(@Ô%Ø—i‘i -Õ/ˆØ—i‘i -Õ/ˆØŸ™Ð%5Õ5ˆÜ˜+Ó&ˆ
Ü—’˜K×1Ñ1Ó3Ó4ˆÜ—’˜K×1Ñ1Ó3Ó4ˆÜ—J’J˜~×7Ñ7Ó9Ó:ˆ	Ü—
’
˜:×/Ñ/Ó1Ó2ˆØ�J‰J�xÓ  &§*¡*¨XÓ"6¸	¿¹ÀhÓ8OÐPð U=ô =ô Ð?Ó@Ð@Ø�?Õ#¤v¨kÓ':Ô:ØÐ,Õ-´¸Ó1GÔGØÐ,Õ-´¸Ó1GÔGØ˜_Õ-Ð.eÕfÔjpÐq{Ój|Ô|ÜÐEÓFÐFØ˜iÕ(ˆŒÜˆt�|‰|Ó Ð'GÕ HÔHÜÐ4Ó5Ð5Ü‹eˆØ—<”<ˆCØ˜Õ(ˆEØ—O‘O×%Ò%¨¬ØÐ.Õ/×3Ñ3°CÐ8OÕ4PÓQÐU_Ô_Ü Ð!SÓTÐTØ�G‰G�EŽNñ  ÷ $Ð#Ø—I‘IÐ 1Õ1ˆEØ˜Õ.ˆHÜ—
’
˜E MÕ1×<Ñ<Ó>Ó?ˆAÜ—
’
˜8×-Ñ-Ó/Ó0ˆAØ—‘�h“Ð#PÔPØÐ*Õ+¬v°hÓ/?Ô?ØÐ/Õ0´F¸;Ó4GÔGØÐ/Õ0´F¸;Ó4GÔGØÐ,Õ-´°T·\±\Ó1BÔBØÐ+Õ,´°D·L±LÓ0AÔAÀQÀ}×EUÔEUÜ Ð!QÓRÐRñ FVñ $r   c                	ó,   € \        V P                  4      # )N)r.   r   )r2   s   &r   Ú__len__Ú"UDEBreadthExtensionDataset.__len__@   s   € Ü�4—<‘<Ó Ð r   c                	ó´  € V P                   V,          pVR ,          pV P                  VR,          ,          pVP                  4       V P                  R,          V R2,          P                  4       8w  g   \        V4      VR,          8w  d   \	        R4      h\
        P                  ! V4      P                  R4      pVP                  4        RVR VRVR	,          R
VR
,          RVR,          RRRRRVR,          RVR,          RRRRRR/pV P                  '       Ed½   V P                  R,          p\        P                  ! VR,          V R2,          P                  4       4      pVR,          VR,          8w  g   VR,          \        VR,          4      8w  d   \	        R4      h. p	R* Fú  p
VR,          V
,          pW{R ,          ,          pVP                  4       VR,          V R!V
 R2,          P                  4       8w  g   \        V4      VR",          8w  d   \	        R#4      h\        P                  ! \
        P                  ! V4      P                  R4      4      ^ 8„  pVP                  VP                   VP"                  38w  d   \	        R$4      hV	P%                  V4       Kü  	  VP'                  R%\        P(                  ! V	4      R&R*R'VR(,          RR)/4       V# )+r   Úsource_cropÚimagesz.pngÚsource_sha256zSource crop checksum mismatchÚLÚimageÚsource_nameÚsource_speciesÚsource_genusr   Úprior_80_location_partitionr   r   r   Úsource_um_per_pixel_xyÚsource_scale_um_pxÚtaxonomic_statusÚmask_statuszno verified instance maskÚbackground_statusz)unknown; crop may contain other organismsÚcomparison_statusz9development only, not an independent biological benchmarkr    r   z.jsonr"   r!   z!Mask proposal provenance mismatchr>   ÚfileÚ-r   zMask proposal checksum mismatchzMask shape mismatchÚweak_mask_proposalsÚweak_mask_orderÚmask_triageÚtriagez=three unverified model proposals; not biological ground truth)ÚcenterÚminusÚplus)r   r)   Úresolver   r(   r   ÚopenÚconvertÚloadr
   r*   r+   r,   ÚnpÚasarrayÚshapeÚheightÚwidthÚappendÚupdateÚstack)r2   Úindexr<   r=   ÚpathrL   ÚresultÚ	directoryÚrecordr>   ÚkÚitemÚmasks   &&           r   Ú__getitem__Ú&UDEBreadthExtensionDataset.__getitem__C   s˜  € Ø�l‰l˜5Õ!ˆØ�OÕ$ˆØ�y‰y˜3˜}Õ-Õ-ˆØ�<‰<‹>˜dŸi™i¨(Õ2¸°w¸d°^ÕC×LÑLÓNÔNÔRXÐY]ÓR^ÐbeÐfuÕbvÔRvÜÐ<Ó=Ð=Ü—
’
˜4Ó ×(Ñ(¨Ó-ˆØ�
‰
ŒØ˜5 /°5¸-ÈÐM]ÕI^Ø  # nÕ"5Ð7NÐPSÐTkÕPlØ/°¸WÐFaØ*¨CÐ0DÕ,EØ$ cÐ*<Õ&=¸}ÐNiØ%Ð'RØ%Ð'bðdˆð ×(×(Ñ(ØŸ	™	Ð$5Õ5ˆIÜ—Z’Z ¨YÕ!6¸E¸7À%¸Õ!H× SÑ SÓ UÓVˆFØ�oÕ&¨#¨oÕ*>Ô>À&ÐIZÕB[Ô_eÐfoð  sBõ  gBó  `Cô  CCÜ Ð!DÓEÐEØˆEÛ0�Ø˜g• qÕ)�Ø ¨¥<Õ/�Ø—<‘<“> i°'Õ&9¸u¸gÀQÀqÀcÈÐ<NÕ&N×%WÑ%WÓ%YÔYÔ]cÐdhÓ]iÐmqÐrzÕm{Ô]{Ü$Ð%FÓGÐGÜ—z’z¤%§*¢*¨TÓ"2×":Ñ":¸3Ó"?Ó@À1ÑD�Ø—:‘: %§,¡,°·±Ð!<Ô<Ü$Ð%:Ó;Ð;Ø—‘˜TÖ"ñ 1ð �M‰MÐ0´"·(²(¸5³/Ø,Ð.IØ(¨&°Õ*:Ø(Ð*iðkô lð ˆr   )r
   r   r)   N)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__ÚDEFAULTÚSPLITrB   rE   rt   Ú__static_attributes__r   r   r   r   r      s-   † Ø(/ñ ,SÀð ,SØ*/÷,Sð ,Sò\!ö"r   r   )Ú__doc__Ú
__future__r   r*   Úpathlibr   Únumpyrd   ÚPILr   Ú diatom_pilot.ude_scaleup_datasetr   Ú__file__r`   ÚparentÚROOTrz   r{   r   r   r   r   Ú<module>r†      sZ   ðÙ NÝ "ã Ý ã Ý å 3áˆHƒ~×ÑÓ×&Ñ&×-Ñ-€Ø
Ð9Õ
9€ØÐFÕF€÷Tó Tr   