Files
2125_GCE/glyphs/__pycache__/super_registry.cpython-314.pyc
T

143 lines
12 KiB
Plaintext
Raw Normal View History

+
°-ãóêaRt0tRt^RIHtHtHtHt^RIt^RIH t Rs
]^kRs ]^kRs Rs
]^kRRRlltRRltR R
ltR RR ^/R
RlltRRltRRRlltRRltRRltRRltR#)Supercharged Glyph Registry (LedoGlyph600)
Registry for 600-glyph supercharged dataset with:
- 112 superpowers per glyph
- frequency signatures (praw: P, R, A, W)
- contributor inheritance (lineage)
- symbolic anatomy (originalMetrics)
- activation envelopes (activation modes)
- resonance profiles (activation signatures)
- extended metadata (governance, routing, storage)
Data source: /mnt/d/users/dave/Downloads/LEDONOVA/LedoGlyph600.json
)ÚOptionalÚListÚDictÚAnyN)ÚPathFcó>V^8„dQhR\\,RR/#)éÚpathÚreturnN)rÚstr)Úformats"Ú-/home/dave/superdave/glyphs/super_registry.pyÚ __annotate__rs÷8ñ8¤¬¥
ð8¸ñ8ócó¬\'dR#VfRp\V4pVP4'g\RV 24hVs\ V4;_uu_4p\ P!V4pRRR4\X\4'dRV9d VR,pM$\V\4'dTpM \R4h\V4R8wd\R\V4 24h/s
VF'pVPR4pV'gKV\V&K) \\\P!444sR sR# +'giLÛ;i)
Load all 600 supercharged glyphs from JSON file.
Lazy-loads and caches glyphs in module-level variables.
Validates that exactly 600 glyphs are present.
Args:
path: Optional path to LedoGlyph600.json file.
Defaults to /mnt/d/users/dave/Downloads/LEDONOVA/LedoGlyph600.json
Raises:
FileNotFoundError: If file doesn't exist
ValueError: If glyph count != 600
json.JSONDecodeError: If JSON is malformed
Nz6/mnt/d/users/dave/Downloads/LEDONOVA/LedoGlyph600.jsonz#Supercharged glyph file not found: ÚglyphszInvalid glyph data structureiXzExpected 600 glyphs, got ÚidT)Ú_loadedrÚexistsÚFileNotFoundErrorÚ
_load_pathÚopenÚjsonÚloadÚ
isinstanceÚdictÚlistÚ
ValueErrorÚlenÚ_glyphsÚgetÚsortedÚkeysÚ
_glyph_ids)r ÚfilepathÚdataÚ
glyph_listÚglyphÚglyph_ids& r
Úload_all_superchargedr*s÷"ƒwÙð ‚|ØäD‹z€HØ ?‰?× Ò ÜÐ"EÀhÀZÐ PÓ€Jô
ˆhŒ˜1ÜyŠy˜‹|ˆ÷
ô×Ò (¨dÔ"2ؘ(•^‰
Ü Dœ$× Ò Ø
äÐ ˆ:ƒ˜#ÔÜÐ4´S¸³_Ð4EЀGۈؗ9‘9˜T“?ˆß ‰8Ø %ŒG ñô œœWŸ\™\›^Ó-€Jà‚G÷3
ús ÁEÅ E cóFV^8„dQhR\R\\,/#)rr)r
)r rr)r s"r
rrUs÷ð¬¥ñ6rcót\'g \4\'d\PV4#R#)a'Get a single supercharged glyph by ID.
Returns all fields: id, name, category, period, band, originalMetrics,
praw, score, lineage, activation, routing, storage, governance.
Args:
glyph_id: Glyph ID (e.g. "G001")
Returns:
Glyph dict with all supercharged fields, or None if not found
N)rr*rr )r)s&r
Ú get_superr-Us'÷ Ôç$+£GŒ7;‰; ÐÐ5rcó:V^8„dQhR\\,/#©rr
)rr )r s"r
rrgs÷  œS ñ /rcód\'g \4\'d\R,#.#)zNList all supercharged glyph IDs (sorted).
Returns:
List of 600 glyph IDs
:NNN)rr*r#©rr
Úlist_super_idsr2gs"÷ Ôç&JŒ:a.¨BÐ.rÚfieldsÚlimitc óŠV^8„dQhR\R\\\,,R\R\\,/#)rÚqueryr3r4r
)r rrÚintr)r s"r
rrss?÷7ñ7Ü ð7ô
”Tœ#•YÕ ð7ô ð 7ô

Œ$…Zñ 7rcó<\'g \4\'g.#Vf.ROpVP4p.p\p\V,pVpVP V4pVfK\
V\4'd*W8P49dVPV4MUKY\
V\\34'gKwV\V4P49gK—VPV4M \V4VgM VRV#)Search supercharged glyphs by query across specified fields.
Performs case-insensitive substring matching on string fields and
numeric fields converted to strings.
Args:
query: Search string (case-insensitive substring match)
fields: List of field names to search.
Defaults to ['id', 'name', 'category']
limit: Maximum results to return (default 20)
Returns:
List of matching glyph dicts (up to limit)
N)rÚnameÚcategory) rr*rÚlowerr#r rr Úappendr7Úfloatr) r6r3r4Ú query_lowerÚresultsr)r(ÚfieldÚvalues &$$ r
Ú search_superrBs÷( ‹7ÜÔç ‹7؈ à
‚~Úà—+‘+“-€KØ€GçˆÜ˜ÕóˆEØ—I‘I˜eÓ$ˆEØŠ}Ùô˜%¤×§+¡+£-Ô—N‘N 5Ôñ˜E¤C¬ <פ# e£*×"2Ñ"2Ó"4Ö—NN ñô ˆw‹<˜5Ö Ù ñ+ð. 6Eˆrcó$V^8„dQhR\/#r/)r)r s"r
rr­s÷,ñ,”Tñ,rcóF\'g \4\'gR^R.R.R.RRRR/#\4p\4p\P 4FNpVP VP
44VPR 4pV'gK=VPV4KP R\\4R\\V44R\'d\R
,M.R\\V44R\R\'d\\4/#R/#) Get statistics about the supercharged glyph registry.
Validates registry integrity and returns metadata.
Returns:
Dict with keys:
- total_glyphs: Count of glyphs (should be 600)
- fields_present: List of all field names found across glyphs
- sample_ids: First 5 glyph IDs
- categories: List of all unique categories
- loaded: Whether registry is loaded
- load_path: Path to data file
Ú total_glyphsÚfields_presentÚ
sample_idsÚ
categoriesÚloadedFÚ load_pathNr::NéN)rr*rÚsetÚvaluesÚupdater"r Úaddrr!rr#rr )Ú
all_fieldsÚall_categoriesr(r:s r
Ú super_statsrR­÷ ‹7ÜÔç ‹7à ˜AØ ˜ ˜ ˜  ˜ð

ð
ô€JÜ“U€NäÖØ×ј%Ÿ*™*›,Ô—9‘9˜ZÓß ‰8Ø × Ñ ˜xÖ  œœG Øœ&¤ jÓ!1Ó¯
«
”j –n¸Ø”fœT ”'د
«
”Sœ“_ð
 ðð 9=ð
 ðrcóHV^8„dQhR\R\R\R\/#)rr)Ú
field_pathÚdefaultr
)r r)r s"r
rrÜs(÷ñœcð¬sð¼SðÌCñrcóÆ\V4pVfV#VPR4pTpVF6p\V\4'dVP V4pVfVu#K4Vu# V#)a3Get a nested field from a supercharged glyph.
Supports dot-notation for nested fields (e.g. "activation.score",
"praw.P", "lineage.signature").
Args:
glyph_id: Glyph ID
field_path: Field path (supports dots for nesting)
default: Default value if not found
Returns:
Field value or default
Ú.)r-Úsplitrrr )r)rTrUr(ÚpartsrAÚparts&&& r
Úget_super_fieldr[Üspô
 €EØ ‚}؈ð
× Ñ ˜SÓ !€EØ €EãˆÜ eœT× —II˜d“OˆEØŠ}ØñðŠNñ
ð €LrcóFV^8„dQhR\R\\,/#)rr:r
)r rr)r s"r
rrýs"÷JñJ¤SðJ¬T´$­JrcóÊ\'g \4\'g.#\P4Uu.uFqP R4V8XgKVNK up#uupi)zList all supercharged glyphs in a category.
Args:
category: Category name (e.g. "neural", "harmonic")
Returns:
List of matching glyphs
r:)rr*rrMr )r:Úgs& r