+
    =‡kå  ã                   ó`   € R t ^ RIt^ RIt^ RIt^ RIHt ^ RIHt R t]	R8X  d
   ]! 4        R# R# )z@Create a static, unassigned scan-to-biological-sample inventory.N)ÚPath)Údigestc                  ó\  € \         P                  ! \        R 7      q P                  R\        RR7       V P                  R\        RR7       V P                  4       pVP                  P                  4       '       g   \        R4      h. p\        VP                  P                  4       R R7       F]  pVP                  4       '       g   K  VP                  4       P                  pVR8¼  g   K>  VP                  R	VP                  R
V/4       K_  	  V'       g   \        R4      hVP                   P#                  4       '       d5   \%        VP                   P                  4       4      '       d   \'        R4      hVP                   P)                  RRR7       RRRRRVRR/pVP                   R,          qfP+                  \,        P.                  ! V^R7      R,           4       RVR\1        V4      /p\	        \2        4      P5                  R4      P7                  4       p\,        P.                  ! VRR#R7      P9                  RR4      p	VP;                  R4      ^8w  d   \        R4      hVP                   R,          P+                  VP9                  RV	4      4       \=        R \?        V4       R!24       R"# )$)Údescriptionz--scansT)ÚtypeÚrequiredz--outputzScans directory not foundc                 ó   € V P                   # )N)Úname)Úxs   &Ú$diatom_pilot/make_sample_registry.pyÚ<lambda>Úmain.<locals>.<lambda>   s   € °a·f²fó    )Úkeyi Êš;r	   Ú
size_bytesz/No files at least 1 GB found in scans directoryzOutput directory must be empty)ÚparentsÚexist_okÚformatzdiatom-scan-inventory-v1Úminimum_size_bytesÚslidesÚwarningzrFilename and size are inventory metadata, not file hashes, copy-completion proof, or biological sample identities.zinventory.json)ÚindentÚ
Ú	inventoryÚinventory_sha256zsample_registry.html)Úensure_asciiÚ
separatorsz</z<\/ÚINVENTORY_PAYLOADz Invalid sample registry templatez
index.htmlz	Prepared z< unassigned scans; no biological sample identities inferred.N)Ú,Ú:) ÚargparseÚArgumentParserÚ__doc__Úadd_argumentr   Ú
parse_argsÚscansÚis_dirÚ
ValueErrorÚsortedÚiterdirÚis_fileÚstatÚst_sizeÚappendr	   ÚoutputÚexistsÚanyÚFileExistsErrorÚmkdirÚ
write_textÚjsonÚdumpsr   Ú__file__Ú	with_nameÚ	read_textÚreplaceÚcountÚprintÚlen)
ÚpÚaÚentriesÚpathÚsizer   ÚfileÚpayloadÚtemplateÚembeddeds
             r   ÚmainrF   	   s‡  € Ü×Ò¬'Ô2€A·>±>À)ÔQUÐ_c°>Ô3dÐef×esÑesÐt~ô  EIð  SWÐesô  fXð  [\÷  [gñ  [gó  [ið  YZØ�7‰7�>‰>×Ò¤*Ð-HÓ"IÐIØ€GÜ�q—w‘w—‘Ó(©_×=ˆØ�<‰<�>Œ>Ø—‘“×$Ñ$ˆDØ�]Ö" 7§>¡>°6¸$¿)¹)ÀLÐQUÐ2VÖ#Wñ >÷ œÐ$UÓVÐVØ‡x�x‡�×ÒœS §¡×!1Ñ!1Ó!3×4Ò4¼?ÐKkÓ;lÐ5lØ‡H�H‡N�N˜4¨€NÔ.¸(ÐC]Ð^rð  tAð  BJð  KRØð  Gð:H¨yà	
�‰Ð"Õ	"€D§?¡?´4·:²:¸iÈqÔ3QÐRVÕ3VÔ#WÐalÐmvð  xJô  KQð  RVó  KWð  aXÐX_Ü”(‹^×%Ñ%Ð&<Ó=×GÑGÓI€HÔSW×S]ÒS]Ð^eÐswð  DMô  TN÷  TVñ  TVð  W[ð  \bó  TcÈ(Ø‡~�~Ð)Ó*¨AÔ-´JÐ?aÓ4bÐ.bØ‡X�XˆlÕ×&Ñ& x×'7Ñ'7Ð8KÈHÓ'UÔVÔW\Ð_hÔilÐmtÓiuÐhvð  wsð  ^tö  Xur   Ú__main__)
r"   r    r4   ÚshutilÚpathlibr   Úingest_reviewr   rF   Ú__name__© r   r   Ú<module>rM      s.   ðÙ FÛ Û Û Ý Ý  òuð$ ˆZÔ™žÑr   