In this section
- Furnace — Electron ingest · cosmic / tools/explore/periodic/furnace/electron/common.py lines 581–906
- E1 transform · cosmic / tools/explore/periodic/furnace/electron/e1.py lines 1–29
- E10 transform · cosmic / tools/explore/periodic/furnace/electron/e10.py lines 1–29
- E100 transform · cosmic / tools/explore/periodic/furnace/electron/e100.py lines 1–29
- E101 transform · cosmic / tools/explore/periodic/furnace/electron/e101.py lines 1–29
- E102 transform · cosmic / tools/explore/periodic/furnace/electron/e102.py lines 1–29
- E103 transform · cosmic / tools/explore/periodic/furnace/electron/e103.py lines 1–29
- E104 transform · cosmic / tools/explore/periodic/furnace/electron/e104.py lines 1–29
- E105 transform · cosmic / tools/explore/periodic/furnace/electron/e105.py lines 1–29
- E106 transform · cosmic / tools/explore/periodic/furnace/electron/e106.py lines 1–29
- E107 transform · cosmic / tools/explore/periodic/furnace/electron/e107.py lines 1–29
- E108 transform · cosmic / tools/explore/periodic/furnace/electron/e108.py lines 1–29
- E109 transform · cosmic / tools/explore/periodic/furnace/electron/e109.py lines 1–29
Furnace — Electron
A Python module in the periodic folder of Cosmic that reads build graph and elements118. It ranks top (`rank_top`) and runs element (`run_element`).
ingestcosmic / tools/explore/periodic/furnace/electron/common.py · lines 581–906 of 906 (continued from section 1111) · Not reached from any entry point (candidate for review) · pattern fam_isolation (shared by 2 files)
- What it does
- It loads build graph and elements118. Defines 47 functions or classes, including layout_from_z, _valence_from_layout, _elements_file, _pick, element_params. Uses libraries __future__, json, math, os, re. Side effects: reads or writes files.
- Inputs & outputs
- In: JSON file build_graph.json; JSON file elements118.json.
- What it achieves
- ELECTRON shared helpers: graph arrays, element parameters, the 20 measure families.
- Why it matters
- No other file in the estate was found to import it.
- Application
- cosmic · tools/explore/periodic/furnace/electron · Python module
- Uses
- __future__, json, math, os, re, numpy
- Used by
- none found
- Produces
- layout_from_z, element_params, graph_arrays, edge_set, py, scatter_max, raw, degrees, rank_top, q_cut, bfs, trim_to_cycles
- Defines here
- fam_folderdist, _role_index, fam_rolecohesion, fam_domaincross, fam_duplication, fam_sizegini, fam_langcross, fam_defdensity, fam_purehubs, fam_unreach, fam_status, fam_isolation, fam_signatures, fam_namewords, run_element
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cosmic@51bebf892d63a617408bc5e25b270b9f893e9c03 tools/explore/periodic/furnace/electron/common.py:581-906 · blob bf6124cb0a7418ec8d907c489a48806fb16c8510 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: ingest · effects: filesystem · domain stage: unknown · users: none · canonical: unreached_review
"""
src, dst, _ = edge_set(G, P["edge_block"], xp)
n, d = G["n"], P["d"]
lv = max(1, d - 2)
H = G["H"]
Hs, Hd = H[src][:, :lv], H[dst][:, :lv]
cross = (Hs != Hd).any(axis=1)
m = int(src.size)
repo_cross = G["repo_id"][src] != G["repo_id"][dst]
per_level = [int((H[src][:, :l] != H[dst][:, :l]).any(axis=1).sum()) if m else 0
for l in range(1, H.shape[1] + 1)]
cdeg = xp.bincount(src[cross], minlength=n) + xp.bincount(dst[cross], minlength=n)
named = rank_top(cdeg, cdeg > 0, P["v"], xp)
return dict(
measure="share of %s crossing a boundary in the first %d folder levels (level 1 = repo)"
% (BLOCK_TITLE[P["edge_block"]], lv),
value=raw(cross.sum() / m) if m else 0.0, score=cdeg[cdeg > 0],
detail={"edges": m, "crossing": int(cross.sum()), "repo_crossing": int(repo_cross.sum())},
named=named, bars=per_level, hi=[lv - 1], labels="edges crossing within levels 1..9")
def fam_folderdist(G, P, xp):
src, dst, _ = edge_set(G, P["edge_block"], xp)
d = P["d"]
H = G["H"]
eq = (H[src] == H[dst]) & (H[src] >= 0)
common = xp.cumprod(eq.astype(xp.int64), axis=1).sum(axis=1)
la = G["fdepth"][src] + 1
lb = G["fdepth"][dst] + 1
dist = la + lb - 2 * common
m = int(src.size)
val = raw((dist <= d).sum() / m) if m else 0.0
far = scatter_max(src, dist, G["n"], xp) if m else xp.zeros(G["n"], dtype=xp.int64)
named = rank_top(far, far > 0, P["v"], xp)
return dict(
measure="share of %s whose endpoints are <= %d folder steps apart"
% (BLOCK_TITLE[P["edge_block"]], d),
value=val, score=dist,
detail={"edges": m, "max_distance": py(dist.max()) if m else 0},
named=named, bars=[int(x) for x in xp.bincount(dist, minlength=12)[:12].tolist()],
hi=list(range(0, d + 1)), labels="folder distance 0..11")
def _role_index(P):
return P["d"] - 1
def fam_rolecohesion(G, P, xp):
src, dst, _ = edge_set(G, P["edge_block"], xp)
r = _role_index(P)
R = G["roles"][r]
fr = G["role_id"][src] == r
same = fr & (G["role_id"][dst] == r)
m = int(fr.sum())
out = xp.bincount(src[fr], minlength=G["n"])
named = rank_top(out, out > 0, P["v"], xp)
dst_roles = xp.bincount(G["role_id"][dst[fr]] + 1, minlength=len(G["roles"]) + 1)[1:]
return dict(
measure="share of %s from role '%s' files that stay inside the role"
% (BLOCK_TITLE[P["edge_block"]], R),
value=raw(same.sum() / m) if m else 0.0, score=out[out > 0],
detail={"role": R, "edges_from_role": m, "inside": int(same.sum())},
named=named, bars=[int(x) for x in dst_roles.tolist()], hi=[r],
labels="target role of edges (12 roles)")
def fam_domaincross(G, P, xp):
src, dst, _ = edge_set(G, P["edge_block"], xp)
di = P["d"] - 1
D = G["doms"][di]
fr = G["dom_id"][src] == di
cross = fr & (G["dom_id"][dst] != di)
deg = xp.bincount(src[cross], minlength=G["n"])
named = rank_top(deg, deg > 0, P["v"], xp)
tgt = xp.bincount(G["dom_id"][dst[fr]] + 1, minlength=len(G["doms"]) + 1)[1:]
return dict(
measure="%s leaving domain stage '%s' for another domain stage"
% (BLOCK_TITLE[P["edge_block"]], D),
value=int(cross.sum()), score=deg[deg > 0],
detail={"domain_stage": D, "edges_from_stage": int(fr.sum())},
named=named, bars=[int(x) for x in tgt.tolist()], hi=[di],
labels="target domain stage (8)")
def fam_duplication(G, P, xp):
src, dst, dupkey = edge_set(G, P["edge_block"], xp)
r = _role_index(P)
R = G["roles"][r]
inrole = G["role_id"] == r
dups = inrole & G["dup"]
m = int(inrole.sum())
named = rank_top(G["lines"], dups, P["v"], xp)
per_role = [int(x) for x in xp.bincount(G["role_id"][G["dup"]], minlength=len(G["roles"])).tolist()]
return dict(
measure="share of role '%s' files marked duplicate_of another file" % R,
value=raw(dups.sum() / m) if m else 0.0, score=G["lines"][dups],
detail={"role": R, "files_in_role": m, "duplicates": int(dups.sum()),
"duplicate_flagged_edges": int(xp.unique(dupkey).size)},
named=named, bars=per_role, hi=[r], labels="duplicates per role (12)")
def fam_sizegini(G, P, xp):
src, dst, _ = edge_set(G, P["edge_block"], xp)
t = max(1, P["d"] - 3)
out, inn = degrees(src, dst, G["n"], xp)
m = (out + inn) >= t
x = G["lines"][m]
named = rank_top(G["lines"], m, P["v"], xp)
bins = xp.bincount(xp.minimum(xp.floor(xp.log2(xp.maximum(x, 1))).astype(xp.int64), 15),
minlength=16) if int(x.size) else xp.zeros(16, dtype=xp.int64)
return dict(
measure="Gini of line counts over files with total degree >= %d (%s)"
% (t, BLOCK_TITLE[P["edge_block"]]),
value=gini(x, xp), score=x, detail={"files": int(m.sum()),
"lines_total": py(x.sum()) if int(x.size) else 0},
named=named, bars=[int(v) for v in bins.tolist()], hi=[], labels="files per log2(lines)")
def fam_langcross(G, P, xp):
"""Language L = (d-1)-th most common language by file count (ties: first seen)."""
src, dst, _ = edge_set(G, P["edge_block"], xp)
nl = len(G["langs"])
lc = xp.bincount(G["lang_id"], minlength=nl)
order = xp.lexsort(xp.stack([xp.arange(nl), -lc]))
li = int(order[min(P["d"] - 2, nl - 1)])
lang = G["langs"][li]
fr = G["lang_id"][src] == li
cross = fr & (G["lang_id"][dst] != li)
m = int(fr.sum())
cdeg = xp.bincount(src[cross], minlength=G["n"])
named = rank_top(cdeg, cdeg > 0, P["v"], xp)
tgt = xp.bincount(G["lang_id"][dst[fr]], minlength=nl)
return dict(
measure="share of %s from %s files that point to another language"
% (BLOCK_TITLE[P["edge_block"]], lang),
value=raw(cross.sum() / m) if m else 0.0, score=cdeg[cdeg > 0],
detail={"language": lang, "edges_from_language": m, "crossing": int(cross.sum())},
named=named, bars=[int(x) for x in tgt[order].tolist()],
hi=[int(xp.nonzero(order == li)[0][0])], labels="target language (by file count)")
def fam_defdensity(G, P, xp):
src, dst, _ = edge_set(G, P["edge_block"], xp)
thr = 10 * 2 ** (P["d"] - 1)
out, inn = degrees(src, dst, G["n"], xp)
m = (G["lines"] >= thr) & ((out + inn) > 0)
dens = G["n_def"].astype(xp.float64) * 100.0 / xp.maximum(G["lines"], 1)
x = dens[m]
named = rank_top(dens, m, P["v"], xp)
med = raw(xp.median(x)) if int(x.size) else 0.0
bins = xp.bincount(xp.minimum(x.astype(xp.int64), 15), minlength=16) if int(x.size) else []
return dict(
measure="median definitions per 100 lines, files >= %d lines with %s" %
(thr, BLOCK_TITLE[P["edge_block"]]),
value=med, score=x, detail={"files": int(m.sum())}, named=named,
bars=[int(v) for v in bins.tolist()] if int(x.size) else [], hi=[],
labels="defs/100 lines 0..15+")
def fam_purehubs(G, P, xp):
src, dst, _ = edge_set(G, P["edge_block"], xp)
_o, inn = degrees(src, dst, G["n"], xp)
m = inn >= P["d"]
pm = m & G["pure"]
named = rank_top(inn, pm, P["v"], xp)
return dict(
measure="share of pure (no side effect) files among files with in-degree >= %d (%s)"
% (P["d"], BLOCK_TITLE[P["edge_block"]]),
value=raw(pm.sum() / m.sum()) if int(m.sum()) else 0.0, score=inn[pm],
detail={"hubs": int(m.sum()), "pure_hubs": int(pm.sum())}, named=named,
bars=[int((inn >= t).sum()) for t in range(1, 10)], hi=[P["d"] - 1],
labels="files in-degree>=1..9")
def fam_unreach(G, P, xp):
src, dst, _ = edge_set(G, P["edge_block"], xp)
dep = P["d"] - 2 # period 2 -> repo root files ... 7 -> depth >= 5
out, inn = degrees(src, dst, G["n"], xp)
fd = G["fdepth"]
lvl = (fd >= dep) if P["d"] == 7 else (fd == dep)
m = lvl & ((out + inn) > 0)
um = m & ~G["reachable"]
named = rank_top(G["lines"], um, P["v"], xp)
per = [int(((fd == i) & ~G["reachable"]).sum()) for i in range(9)]
return dict(
measure="share of unreachable files at folder depth %s%d among files with %s"
% (">=" if P["d"] == 7 else "", dep, BLOCK_TITLE[P["edge_block"]]),
value=raw(um.sum() / m.sum()) if int(m.sum()) else 0.0, score=G["lines"][um],
detail={"files": int(m.sum()), "unreachable": int(um.sum())}, named=named,
bars=per, hi=[min(dep, 8)], labels="unreachable files per depth 0..8")
def fam_status(G, P, xp):
src, dst, _ = edge_set(G, P["edge_block"], xp)
m = int(src.size)
ss, sd = G["status_id"][src], G["status_id"][dst]
if P["d"] == 7:
hit = ss == sd
what = "any equal canonical status"
si = -1
else:
si = (P["d"] - 2) % len(G["statuses"])
hit = (ss == si) & (sd == si)
what = "both '%s'" % G["statuses"][si]
deg = xp.bincount(src[hit], minlength=G["n"]) + xp.bincount(dst[hit], minlength=G["n"])
named = rank_top(deg, deg > 0, P["v"], xp)
return dict(
measure="share of %s whose endpoints have %s" % (BLOCK_TITLE[P["edge_block"]], what),
value=raw(hit.sum() / m) if m else 0.0, score=deg[deg > 0],
detail={"edges": m, "hits": int(hit.sum())}, named=named,
bars=[int(x) for x in xp.bincount(ss + 1, minlength=6)[1:].tolist()],
hi=[si] if si >= 0 else [], labels="edge source status (5)")
def fam_isolation(G, P, xp):
src, dst, _ = edge_set(G, P["edge_block"], xp)
r = _role_index(P)
R = G["roles"][r]
out, inn = degrees(src, dst, G["n"], xp)
inrole = G["role_id"] == r
iso = inrole & ((out + inn) == 0)
named = rank_top(G["lines"], iso, P["v"], xp)
per = []
for j in range(len(G["roles"])):
rm = G["role_id"] == j
per.append(int((rm & ((out + inn) == 0)).sum()))
return dict(
measure="share of role '%s' files with no %s" % (R, BLOCK_TITLE[P["edge_block"]]),
value=raw(iso.sum() / inrole.sum()) if int(inrole.sum()) else 0.0, score=G["lines"][iso],
detail={"role": R, "files_in_role": int(inrole.sum()), "isolated": int(iso.sum())},
named=named, bars=per, hi=[r], labels="isolated files per role (12)")
def fam_signatures(G, P, xp):
i = P["f_index"]
t = (i + 1) // 2
lang = "JavaScript" if i % 2 == 1 else "Python"
li = G["langs"].index(lang) if lang in G["langs"] else -1
m = (G["lang_id"] == li) & (G["maxpar"] >= t)
named = rank_top(G["maxpar"], m, P["v"], xp)
mp = G["maxpar"][G["lang_id"] == li]
bins = xp.bincount(xp.clip(mp, 0, 11), minlength=12) if int(mp.size) else []
return dict(
measure="%s files whose widest signature has >= %d parameters" % (lang, t),
value=int(m.sum()), score=G["maxpar"][m],
detail={"language": lang, "threshold": t,
"files_with_signatures": int((mp >= 0).sum()) if int(mp.size) else 0},
named=named, bars=[int(v) for v in bins.tolist()] if int(mp.size) else [],
hi=list(range(t, 12)), labels="widest signature params 0..11+")
def fam_namewords(G, P, xp):
src, dst, _ = edge_set(G, P["edge_block"], xp)
i = P["f_index"]
nw = len(G["words"])
cnt = xp.bincount(G["w_word"], minlength=nw)
order = xp.lexsort(xp.stack([xp.arange(nw), -cnt])) # count desc, first-seen asc
w = int(order[i - 1])
word = G["words"][w]
fm = xp.zeros(G["n"], dtype=bool)
fm[G["w_file"][G["w_word"] == w]] = True
out, inn = degrees(src, dst, G["n"], xp)
named = rank_top(out + inn, fm, P["v"], xp)
repos = int(xp.unique(G["repo_id"][fm]).size)
return dict(
measure="files whose name words include the rank-%d word '%s'" % (i, word),
value=int(fm.sum()), score=(out + inn)[fm],
detail={"word": word, "rank": i, "repos": repos},
named=named, bars=[int(x) for x in cnt[order[:15]].tolist()], hi=[i - 1],
labels="top 15 name words by files")
FAMILIES = {
"1": ("fan-out", fam_fanout),
"2": ("fan-in", lambda G, P, xp: fam_fanout(G, P, xp, rev=True)),
"3": ("forward reach", fam_reach),
"4": ("impact (reverse reach)", fam_impact),
"5": ("weak components", fam_components),
"6": ("short cycles", fam_cycles),
"7": ("folder boundary crossing", fam_crossrepo),
"8": ("folder distance", fam_folderdist),
"9": ("role cohesion", fam_rolecohesion),
"10": ("domain stage crossing", fam_domaincross),
"11": ("duplication share by role", fam_duplication),
"12": ("size inequality", fam_sizegini),
"13": ("language crossing by language", fam_langcross),
"14": ("definition density", fam_defdensity),
"15": ("purity of hubs", fam_purehubs),
"16": ("unreachable by folder depth", fam_unreach),
"17": ("canonical status pairing", fam_status),
"18": ("isolation by role", fam_isolation),
"L": ("signature width", fam_signatures),
"A": ("name vocabulary", fam_namewords),
}
def run_element(z: int, ctx, xp) -> dict:
"""Primary (electron) computation for element Z."""
if xp is None:
xp = _np
P = element_params(z, ctx if isinstance(ctx, dict) else {})
G = graph_arrays(ctx if isinstance(ctx, dict) else {}, xp)
title, fn = FAMILIES[P["family"]]
r = fn(G, P, xp)
src, dst, _ = edge_set(G, P["edge_block"], xp)
named = [int(i) for i in r["named"]][:P["v"]]
detail = dict(r["detail"])
detail["q_cut"] = q_cut(r["score"], P["q"], xp) if int(r["score"].size) else None
value = r["value"]
if hasattr(value, "item"):
value = value.item()
return {
"Z": z,
"value": value,
"detail": detail,
"family": P["family"],
"family_title": title,
"measure": r["measure"],
"measures": "%s %s: %s" % (P["symbol"] or ("Z=%d" % z), title, r["measure"]),
"params": {k: P[k] for k in ("d", "v", "q", "k", "edge_block", "f_index")},
"element": {k: P[k] for k in ("symbol", "name", "group", "period", "block",
"electronegativity", "valence")},
"files": [G["paths"][i] for i in named],
"evidence": [G["evidence"][i] for i in named],
"picture": picture(r["bars"], set(r["hi"]), named, src, dst, z, xp, r.get("labels")),
}E1
A Python module in the electron folder of Cosmic. It is built from the run step (`run`).
transformcosmic / tools/explore/periodic/furnace/electron/e1.py · lines 1–29 of 29 · Not reached from any entry point (candidate for review)
- What it does
- It calculates its inputs. Defines _common, run. Uses libraries importlib.util, os, sys.
- What it achieves
- E1 H — ELECTRON (primary computation).
- Why it matters
- No other file in the estate was found to import it.
- Application
- cosmic · tools/explore/periodic/furnace/electron · Python module
- Uses
- importlib.util, os, sys
- Used by
- none found
- Produces
- run
- Defines here
- _common, run
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cosmic@51bebf892d63a617408bc5e25b270b9f893e9c03 tools/explore/periodic/furnace/electron/e1.py:1-29 · blob d656c75aefcfa3bb13ada90a459ba7b89fc749ed · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: transform · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
"""e1 H — ELECTRON (primary computation). Grid cell: group 1, period 1, s-block.
Family "1" (fan-out); see ../electron/GRID.md for how group, period,
block, Z, electronegativity and valence set the measure and its parameters.
"""
import importlib.util as _u
import os as _os
import sys as _sys
Z = 1
SYMBOL = "H"
FAMILY = "1"
TOL = {"rtol": 1e-9, "atol": 1e-9}
def _common():
name = "furnace_electron_common"
if name not in _sys.modules:
path = _os.path.join(_os.path.dirname(_os.path.abspath(__file__)), "common.py")
spec = _u.spec_from_file_location(name, path)
mod = _u.module_from_spec(spec)
_sys.modules[name] = mod
spec.loader.exec_module(mod)
return _sys.modules[name]
def run(ctx, xp):
"""Return {"value", "picture", "detail", "measure", "evidence", ...} for Z=1."""
return _common().run_element(Z, ctx, xp)E10
A Python module in the electron folder of Cosmic. It is built from the run step (`run`).
transformcosmic / tools/explore/periodic/furnace/electron/e10.py · lines 1–29 of 29 · Not reached from any entry point (candidate for review)
- What it does
- It calculates its inputs. Defines _common, run. Uses libraries importlib.util, os, sys.
- What it achieves
- E10 Ne — ELECTRON (primary computation).
- Why it matters
- No other file in the estate was found to import it.
- Application
- cosmic · tools/explore/periodic/furnace/electron · Python module
- Uses
- importlib.util, os, sys
- Used by
- none found
- Produces
- run
- Defines here
- _common, run
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cosmic@51bebf892d63a617408bc5e25b270b9f893e9c03 tools/explore/periodic/furnace/electron/e10.py:1-29 · blob 79b8f876057822690f6f36d07055a28481eada79 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: transform · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
"""e10 Ne — ELECTRON (primary computation). Grid cell: group 18, period 2, p-block.
Family "18" (isolation by role); see ../electron/GRID.md for how group, period,
block, Z, electronegativity and valence set the measure and its parameters.
"""
import importlib.util as _u
import os as _os
import sys as _sys
Z = 10
SYMBOL = "Ne"
FAMILY = "18"
TOL = {"rtol": 1e-9, "atol": 1e-9}
def _common():
name = "furnace_electron_common"
if name not in _sys.modules:
path = _os.path.join(_os.path.dirname(_os.path.abspath(__file__)), "common.py")
spec = _u.spec_from_file_location(name, path)
mod = _u.module_from_spec(spec)
_sys.modules[name] = mod
spec.loader.exec_module(mod)
return _sys.modules[name]
def run(ctx, xp):
"""Return {"value", "picture", "detail", "measure", "evidence", ...} for Z=10."""
return _common().run_element(Z, ctx, xp)E100
A Python module in the electron folder of Cosmic. It is built from the run step (`run`).
transformcosmic / tools/explore/periodic/furnace/electron/e100.py · lines 1–29 of 29 · Not reached from any entry point (candidate for review)
- What it does
- It calculates its inputs. Defines _common, run. Uses libraries importlib.util, os, sys.
- What it achieves
- E100 Fm — ELECTRON (primary computation).
- Why it matters
- No other file in the estate was found to import it.
- Application
- cosmic · tools/explore/periodic/furnace/electron · Python module
- Uses
- importlib.util, os, sys
- Used by
- none found
- Produces
- run
- Defines here
- _common, run
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cosmic@51bebf892d63a617408bc5e25b270b9f893e9c03 tools/explore/periodic/furnace/electron/e100.py:1-29 · blob e92aa45947fddbf9dbae33b21513982ab859159f · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: transform · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
"""e100 Fm — ELECTRON (primary computation). Grid cell: group f-row, period 7, f-block.
Family "A" (name vocabulary); see ../electron/GRID.md for how group, period,
block, Z, electronegativity and valence set the measure and its parameters.
"""
import importlib.util as _u
import os as _os
import sys as _sys
Z = 100
SYMBOL = "Fm"
FAMILY = "A"
TOL = {"rtol": 1e-9, "atol": 1e-9}
def _common():
name = "furnace_electron_common"
if name not in _sys.modules:
path = _os.path.join(_os.path.dirname(_os.path.abspath(__file__)), "common.py")
spec = _u.spec_from_file_location(name, path)
mod = _u.module_from_spec(spec)
_sys.modules[name] = mod
spec.loader.exec_module(mod)
return _sys.modules[name]
def run(ctx, xp):
"""Return {"value", "picture", "detail", "measure", "evidence", ...} for Z=100."""
return _common().run_element(Z, ctx, xp)E101
A Python module in the electron folder of Cosmic. It is built from the run step (`run`).
transformcosmic / tools/explore/periodic/furnace/electron/e101.py · lines 1–29 of 29 · Not reached from any entry point (candidate for review)
- What it does
- It calculates its inputs. Defines _common, run. Uses libraries importlib.util, os, sys.
- What it achieves
- E101 Md — ELECTRON (primary computation).
- Why it matters
- No other file in the estate was found to import it.
- Application
- cosmic · tools/explore/periodic/furnace/electron · Python module
- Uses
- importlib.util, os, sys
- Used by
- none found
- Produces
- run
- Defines here
- _common, run
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cosmic@51bebf892d63a617408bc5e25b270b9f893e9c03 tools/explore/periodic/furnace/electron/e101.py:1-29 · blob 4f0d99261708c8bb656ee9efed9a8e5a78f4268f · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: transform · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
"""e101 Md — ELECTRON (primary computation). Grid cell: group f-row, period 7, f-block.
Family "A" (name vocabulary); see ../electron/GRID.md for how group, period,
block, Z, electronegativity and valence set the measure and its parameters.
"""
import importlib.util as _u
import os as _os
import sys as _sys
Z = 101
SYMBOL = "Md"
FAMILY = "A"
TOL = {"rtol": 1e-9, "atol": 1e-9}
def _common():
name = "furnace_electron_common"
if name not in _sys.modules:
path = _os.path.join(_os.path.dirname(_os.path.abspath(__file__)), "common.py")
spec = _u.spec_from_file_location(name, path)
mod = _u.module_from_spec(spec)
_sys.modules[name] = mod
spec.loader.exec_module(mod)
return _sys.modules[name]
def run(ctx, xp):
"""Return {"value", "picture", "detail", "measure", "evidence", ...} for Z=101."""
return _common().run_element(Z, ctx, xp)E102
A Python module in the electron folder of Cosmic. It is built from the run step (`run`).
transformcosmic / tools/explore/periodic/furnace/electron/e102.py · lines 1–29 of 29 · Not reached from any entry point (candidate for review)
- What it does
- It calculates its inputs. Defines _common, run. Uses libraries importlib.util, os, sys.
- What it achieves
- E102 No — ELECTRON (primary computation).
- Why it matters
- No other file in the estate was found to import it.
- Application
- cosmic · tools/explore/periodic/furnace/electron · Python module
- Uses
- importlib.util, os, sys
- Used by
- none found
- Produces
- run
- Defines here
- _common, run
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cosmic@51bebf892d63a617408bc5e25b270b9f893e9c03 tools/explore/periodic/furnace/electron/e102.py:1-29 · blob d797c8773f04cb02c3984321a981358abcaa758c · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: transform · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
"""e102 No — ELECTRON (primary computation). Grid cell: group f-row, period 7, f-block.
Family "A" (name vocabulary); see ../electron/GRID.md for how group, period,
block, Z, electronegativity and valence set the measure and its parameters.
"""
import importlib.util as _u
import os as _os
import sys as _sys
Z = 102
SYMBOL = "No"
FAMILY = "A"
TOL = {"rtol": 1e-9, "atol": 1e-9}
def _common():
name = "furnace_electron_common"
if name not in _sys.modules:
path = _os.path.join(_os.path.dirname(_os.path.abspath(__file__)), "common.py")
spec = _u.spec_from_file_location(name, path)
mod = _u.module_from_spec(spec)
_sys.modules[name] = mod
spec.loader.exec_module(mod)
return _sys.modules[name]
def run(ctx, xp):
"""Return {"value", "picture", "detail", "measure", "evidence", ...} for Z=102."""
return _common().run_element(Z, ctx, xp)E103
A Python module in the electron folder of Cosmic. It is built from the run step (`run`).
transformcosmic / tools/explore/periodic/furnace/electron/e103.py · lines 1–29 of 29 · Not reached from any entry point (candidate for review)
- What it does
- It calculates its inputs. Defines _common, run. Uses libraries importlib.util, os, sys.
- What it achieves
- E103 Lr — ELECTRON (primary computation).
- Why it matters
- No other file in the estate was found to import it.
- Application
- cosmic · tools/explore/periodic/furnace/electron · Python module
- Uses
- importlib.util, os, sys
- Used by
- none found
- Produces
- run
- Defines here
- _common, run
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cosmic@51bebf892d63a617408bc5e25b270b9f893e9c03 tools/explore/periodic/furnace/electron/e103.py:1-29 · blob 8f2a6c49a0cbe63cc69a4128dfa7574a57a2ab6a · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: transform · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
"""e103 Lr — ELECTRON (primary computation). Grid cell: group 3, period 7, d-block.
Family "3" (forward reach); see ../electron/GRID.md for how group, period,
block, Z, electronegativity and valence set the measure and its parameters.
"""
import importlib.util as _u
import os as _os
import sys as _sys
Z = 103
SYMBOL = "Lr"
FAMILY = "3"
TOL = {"rtol": 1e-9, "atol": 1e-9}
def _common():
name = "furnace_electron_common"
if name not in _sys.modules:
path = _os.path.join(_os.path.dirname(_os.path.abspath(__file__)), "common.py")
spec = _u.spec_from_file_location(name, path)
mod = _u.module_from_spec(spec)
_sys.modules[name] = mod
spec.loader.exec_module(mod)
return _sys.modules[name]
def run(ctx, xp):
"""Return {"value", "picture", "detail", "measure", "evidence", ...} for Z=103."""
return _common().run_element(Z, ctx, xp)E104
A Python module in the electron folder of Cosmic. It is built from the run step (`run`).
transformcosmic / tools/explore/periodic/furnace/electron/e104.py · lines 1–29 of 29 · Not reached from any entry point (candidate for review)
- What it does
- It calculates its inputs. Defines _common, run. Uses libraries importlib.util, os, sys.
- What it achieves
- E104 Rf — ELECTRON (primary computation).
- Why it matters
- No other file in the estate was found to import it.
- Application
- cosmic · tools/explore/periodic/furnace/electron · Python module
- Uses
- importlib.util, os, sys
- Used by
- none found
- Produces
- run
- Defines here
- _common, run
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cosmic@51bebf892d63a617408bc5e25b270b9f893e9c03 tools/explore/periodic/furnace/electron/e104.py:1-29 · blob 543de47e18b9a34e1c33a994d8f4691d8988ec40 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: transform · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
"""e104 Rf — ELECTRON (primary computation). Grid cell: group 4, period 7, d-block.
Family "4" (impact (reverse reach)); see ../electron/GRID.md for how group, period,
block, Z, electronegativity and valence set the measure and its parameters.
"""
import importlib.util as _u
import os as _os
import sys as _sys
Z = 104
SYMBOL = "Rf"
FAMILY = "4"
TOL = {"rtol": 1e-9, "atol": 1e-9}
def _common():
name = "furnace_electron_common"
if name not in _sys.modules:
path = _os.path.join(_os.path.dirname(_os.path.abspath(__file__)), "common.py")
spec = _u.spec_from_file_location(name, path)
mod = _u.module_from_spec(spec)
_sys.modules[name] = mod
spec.loader.exec_module(mod)
return _sys.modules[name]
def run(ctx, xp):
"""Return {"value", "picture", "detail", "measure", "evidence", ...} for Z=104."""
return _common().run_element(Z, ctx, xp)E105
A Python module in the electron folder of Cosmic. It is built from the run step (`run`).
transformcosmic / tools/explore/periodic/furnace/electron/e105.py · lines 1–29 of 29 · Not reached from any entry point (candidate for review)
- What it does
- It calculates its inputs. Defines _common, run. Uses libraries importlib.util, os, sys.
- What it achieves
- E105 Db — ELECTRON (primary computation).
- Why it matters
- No other file in the estate was found to import it.
- Application
- cosmic · tools/explore/periodic/furnace/electron · Python module
- Uses
- importlib.util, os, sys
- Used by
- none found
- Produces
- run
- Defines here
- _common, run
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cosmic@51bebf892d63a617408bc5e25b270b9f893e9c03 tools/explore/periodic/furnace/electron/e105.py:1-29 · blob 87c77eab9ae68bc199eac2f7d8501e694e716a8c · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: transform · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
"""e105 Db — ELECTRON (primary computation). Grid cell: group 5, period 7, d-block.
Family "5" (weak components); see ../electron/GRID.md for how group, period,
block, Z, electronegativity and valence set the measure and its parameters.
"""
import importlib.util as _u
import os as _os
import sys as _sys
Z = 105
SYMBOL = "Db"
FAMILY = "5"
TOL = {"rtol": 1e-9, "atol": 1e-9}
def _common():
name = "furnace_electron_common"
if name not in _sys.modules:
path = _os.path.join(_os.path.dirname(_os.path.abspath(__file__)), "common.py")
spec = _u.spec_from_file_location(name, path)
mod = _u.module_from_spec(spec)
_sys.modules[name] = mod
spec.loader.exec_module(mod)
return _sys.modules[name]
def run(ctx, xp):
"""Return {"value", "picture", "detail", "measure", "evidence", ...} for Z=105."""
return _common().run_element(Z, ctx, xp)E106
A Python module in the electron folder of Cosmic. It is built from the run step (`run`).
transformcosmic / tools/explore/periodic/furnace/electron/e106.py · lines 1–29 of 29 · Not reached from any entry point (candidate for review)
- What it does
- It calculates its inputs. Defines _common, run. Uses libraries importlib.util, os, sys.
- What it achieves
- E106 Sg — ELECTRON (primary computation).
- Why it matters
- No other file in the estate was found to import it.
- Application
- cosmic · tools/explore/periodic/furnace/electron · Python module
- Uses
- importlib.util, os, sys
- Used by
- none found
- Produces
- run
- Defines here
- _common, run
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cosmic@51bebf892d63a617408bc5e25b270b9f893e9c03 tools/explore/periodic/furnace/electron/e106.py:1-29 · blob a7b80be9feaacb83706abfc53fecd709f5376c7f · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: transform · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
"""e106 Sg — ELECTRON (primary computation). Grid cell: group 6, period 7, d-block.
Family "6" (short cycles); see ../electron/GRID.md for how group, period,
block, Z, electronegativity and valence set the measure and its parameters.
"""
import importlib.util as _u
import os as _os
import sys as _sys
Z = 106
SYMBOL = "Sg"
FAMILY = "6"
TOL = {"rtol": 1e-9, "atol": 1e-9}
def _common():
name = "furnace_electron_common"
if name not in _sys.modules:
path = _os.path.join(_os.path.dirname(_os.path.abspath(__file__)), "common.py")
spec = _u.spec_from_file_location(name, path)
mod = _u.module_from_spec(spec)
_sys.modules[name] = mod
spec.loader.exec_module(mod)
return _sys.modules[name]
def run(ctx, xp):
"""Return {"value", "picture", "detail", "measure", "evidence", ...} for Z=106."""
return _common().run_element(Z, ctx, xp)E107
A Python module in the electron folder of Cosmic. It is built from the run step (`run`).
transformcosmic / tools/explore/periodic/furnace/electron/e107.py · lines 1–29 of 29 · Not reached from any entry point (candidate for review)
- What it does
- It calculates its inputs. Defines _common, run. Uses libraries importlib.util, os, sys.
- What it achieves
- E107 Bh — ELECTRON (primary computation).
- Why it matters
- No other file in the estate was found to import it.
- Application
- cosmic · tools/explore/periodic/furnace/electron · Python module
- Uses
- importlib.util, os, sys
- Used by
- none found
- Produces
- run
- Defines here
- _common, run
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cosmic@51bebf892d63a617408bc5e25b270b9f893e9c03 tools/explore/periodic/furnace/electron/e107.py:1-29 · blob a34ac46295ca4116dc9a03ece65da90177311b08 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: transform · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
"""e107 Bh — ELECTRON (primary computation). Grid cell: group 7, period 7, d-block.
Family "7" (folder boundary crossing); see ../electron/GRID.md for how group, period,
block, Z, electronegativity and valence set the measure and its parameters.
"""
import importlib.util as _u
import os as _os
import sys as _sys
Z = 107
SYMBOL = "Bh"
FAMILY = "7"
TOL = {"rtol": 1e-9, "atol": 1e-9}
def _common():
name = "furnace_electron_common"
if name not in _sys.modules:
path = _os.path.join(_os.path.dirname(_os.path.abspath(__file__)), "common.py")
spec = _u.spec_from_file_location(name, path)
mod = _u.module_from_spec(spec)
_sys.modules[name] = mod
spec.loader.exec_module(mod)
return _sys.modules[name]
def run(ctx, xp):
"""Return {"value", "picture", "detail", "measure", "evidence", ...} for Z=107."""
return _common().run_element(Z, ctx, xp)E108
A Python module in the electron folder of Cosmic. It is built from the run step (`run`).
transformcosmic / tools/explore/periodic/furnace/electron/e108.py · lines 1–29 of 29 · Not reached from any entry point (candidate for review)
- What it does
- It calculates its inputs. Defines _common, run. Uses libraries importlib.util, os, sys.
- What it achieves
- E108 Hs — ELECTRON (primary computation).
- Why it matters
- No other file in the estate was found to import it.
- Application
- cosmic · tools/explore/periodic/furnace/electron · Python module
- Uses
- importlib.util, os, sys
- Used by
- none found
- Produces
- run
- Defines here
- _common, run
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cosmic@51bebf892d63a617408bc5e25b270b9f893e9c03 tools/explore/periodic/furnace/electron/e108.py:1-29 · blob 69cef7614342e69de03463979f60a696c6780d64 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: transform · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
"""e108 Hs — ELECTRON (primary computation). Grid cell: group 8, period 7, d-block.
Family "8" (folder distance); see ../electron/GRID.md for how group, period,
block, Z, electronegativity and valence set the measure and its parameters.
"""
import importlib.util as _u
import os as _os
import sys as _sys
Z = 108
SYMBOL = "Hs"
FAMILY = "8"
TOL = {"rtol": 1e-9, "atol": 1e-9}
def _common():
name = "furnace_electron_common"
if name not in _sys.modules:
path = _os.path.join(_os.path.dirname(_os.path.abspath(__file__)), "common.py")
spec = _u.spec_from_file_location(name, path)
mod = _u.module_from_spec(spec)
_sys.modules[name] = mod
spec.loader.exec_module(mod)
return _sys.modules[name]
def run(ctx, xp):
"""Return {"value", "picture", "detail", "measure", "evidence", ...} for Z=108."""
return _common().run_element(Z, ctx, xp)E109
A Python module in the electron folder of Cosmic. It is built from the run step (`run`).
transformcosmic / tools/explore/periodic/furnace/electron/e109.py · lines 1–29 of 29 · Not reached from any entry point (candidate for review)
- What it does
- It calculates its inputs. Defines _common, run. Uses libraries importlib.util, os, sys.
- What it achieves
- E109 Mt — ELECTRON (primary computation).
- Why it matters
- No other file in the estate was found to import it.
- Application
- cosmic · tools/explore/periodic/furnace/electron · Python module
- Uses
- importlib.util, os, sys
- Used by
- none found
- Produces
- run
- Defines here
- _common, run
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cosmic@51bebf892d63a617408bc5e25b270b9f893e9c03 tools/explore/periodic/furnace/electron/e109.py:1-29 · blob d419b76c9fe1616339dc3d012da2ad3f696a12d7 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: transform · effects: none found · domain stage: unknown · users: none · canonical: unreached_review
"""e109 Mt — ELECTRON (primary computation). Grid cell: group 9, period 7, d-block.
Family "9" (role cohesion); see ../electron/GRID.md for how group, period,
block, Z, electronegativity and valence set the measure and its parameters.
"""
import importlib.util as _u
import os as _os
import sys as _sys
Z = 109
SYMBOL = "Mt"
FAMILY = "9"
TOL = {"rtol": 1e-9, "atol": 1e-9}
def _common():
name = "furnace_electron_common"
if name not in _sys.modules:
path = _os.path.join(_os.path.dirname(_os.path.abspath(__file__)), "common.py")
spec = _u.spec_from_file_location(name, path)
mod = _u.module_from_spec(spec)
_sys.modules[name] = mod
spec.loader.exec_module(mod)
return _sys.modules[name]
def run(ctx, xp):
"""Return {"value", "picture", "detail", "measure", "evidence", ...} for Z=109."""
return _common().run_element(Z, ctx, xp)