In this section
- Spider Navigation interaction · solar-electrical-topology-analysis-engine-text-based / spider-navigation.js lines 1–192
- Solar Electrical Topology Analysis Engine Text Based — Solar Topology other · solar-electrical-topology-analysis-engine-text-based / src/solar_topology/__init__.py lines 1–295
- Solar Topology — Array transform · solar-electrical-topology-analysis-engine-text-based / src/solar_topology/array/__init__.py lines 1–163
Spider Navigation
A JavaScript file in Solar Electrical Topology Analysis Engine Text Based that sets size (`setSize`) and zooms to (`zoomTo`), covering cables. Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/.
interactionsolar-electrical-topology-analysis-engine-text-based / spider-navigation.js · lines 1–192 of 192 · Entry point · pattern zoomTo (shared by 4 files)
- What it does
- It draws cables. Defines 11 functions or classes, including installTechnicalCommentary, select, clamp, point, world. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage agent_infra (path word 'spider'): AI-agent memory, coordination and code audit (the multi-agent journey named in Ventus Ltd's brief). Domain terms in the code: cables.
- Downstream impact
- Used directly by 2 files: Solar Electrical Topology Analysis Engine Text Based — Index Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/); Index V6 Before Leapfrog (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/restore_points/2026-07-27-v8-leapfrog/index-v6-before-leapfrog.html). Reached from 134 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); Homepage V002 (globalgrid2050, https://globalgrid2050.com/homepage_versions/homepage_v002.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/.
- What it achieves
- It sets size (`setSize`) and is built from the install technical commentary helper (`installTechnicalCommentary`) and the select step (`select`). Compatibility repair: the current V6/V7 `app.js` lost the `nearest` hit-test function that existed in the last working renderer. It responds to click, pointerdown and pointermove events.
- Why it matters
- Loaded by the Solar Electrical Topology Analysis Engine Text Based page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/ and 1 other page.
- Application
- solar-electrical-topology-analysis-engine-text-based · / · script
- Uses
- none found
- Used by
- loaded by Solar Electrical Topology Analysis Engine Text Based — Index Page (script src), loaded by Index V6 Before Leapfrog (script src)
- Produces
- installTechnicalCommentary, select, clamp, point, world, label, setSize, zoomTo, frame, finish, centre
- Defines here
- installTechnicalCommentary, select, clamp, point, world, label, setSize, zoomTo, frame, finish, centre
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- solar-electrical-topology-analysis-engine-text-based@d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9 spider-navigation.js:1-192 · blob 4cb3a4a024aba4d2ea1af00096745da3521f62ff · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: agent_infra · users: ai_agent · canonical: production_core
'use strict';
/*
* Compatibility repair: the current V6/V7 app.js lost the nearest() hit-test
* function that existed in the last working renderer. Both the canvas pointer
* handler and Spider-style navigation call it. Keep the fallback here so the
* selector works without disturbing the calculation engine.
*/
if(typeof window.nearest!=='function'){
window.nearest=function nearest(wx,wy,g){
if(!g||!Array.isArray(g.strings))return null;
return g.strings.find(s=>
wx>=s.x0&&wx<=s.x1&&
wy>=Math.min(s.y0,s.y1)&&wy<=Math.max(s.y0,s.y1)
)||null;
};
}
(function(){
const workbench=document.querySelector('.workbench');
const wrap=document.querySelector('.canvas-wrap');
const canvas=document.getElementById('scene');
const zoomIn=document.getElementById('zoomIn');
const zoomOut=document.getElementById('zoomOut');
const zoomReset=document.getElementById('zoomReset');
const zoomPercent=document.getElementById('zoomPercent');
if(!wrap||!canvas)return;
function installTechnicalCommentary(){
if(!workbench||document.getElementById('workbenchTabs'))return;
const style=document.createElement('style');
style.textContent=`
.workbench-tabs{position:sticky;top:0;z-index:20;display:flex;gap:.5rem;padding:.7rem .8rem;background:rgba(7,13,20,.96);border:1px solid #263342;border-radius:10px;margin-bottom:.8rem;backdrop-filter:blur(8px)}
.workbench-tab{appearance:none;border:1px solid #3a4b5e;background:#111b27;color:#b9c8d8;border-radius:8px;padding:.65rem 1rem;font-weight:800;letter-spacing:.035em;cursor:pointer}
.workbench-tab[aria-selected="true"]{background:#e9f3ff;color:#07101a;border-color:#e9f3ff}
.workbench-panel[hidden]{display:none!important}
.technical-commentary{max-width:1100px;margin:0 auto;padding:clamp(1rem,2vw,2rem)}
.technical-commentary h2{margin-top:0;font-size:clamp(1.4rem,3vw,2.2rem)}
.technical-commentary h3{margin-top:1.6rem;color:#dbeaff}
.technical-commentary p,.technical-commentary li{line-height:1.65;color:#c4d0dc}
.technical-commentary .technical-lead{font-size:1.08rem;color:#f2f7fb}
.technical-commentary .technical-rule{border-left:4px solid #ffb347;background:#141d27;padding:1rem 1.1rem;margin:1rem 0;border-radius:0 8px 8px 0}
.technical-commentary .technical-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin:1rem 0}
.technical-commentary article{background:#0d1620;border:1px solid #293a4b;border-radius:10px;padding:1rem}
.technical-commentary code{color:#ffe0ad;background:#101923;padding:.1rem .3rem;border-radius:4px}
.technical-commentary .evidence{font-size:.9rem;color:#95a9bc;border-top:1px solid #263342;padding-top:1rem;margin-top:2rem}
@media(max-width:720px){.workbench-tabs{position:relative}.workbench-tab{flex:1;padding:.6rem .4rem;font-size:.78rem}.technical-commentary{padding:.8rem}}
`;
document.head.appendChild(style);
const tabs=document.createElement('div');
tabs.id='workbenchTabs';
tabs.className='workbench-tabs';
tabs.setAttribute('role','tablist');
tabs.innerHTML=`
<button class="workbench-tab" id="engineeringTab" role="tab" aria-selected="true" aria-controls="engineeringPanel">ENGINEERING WORKBENCH</button>
<button class="workbench-tab" id="commentaryTab" role="tab" aria-selected="false" aria-controls="commentaryPanel">TECHNICAL COMMENTARY</button>
`;
const engineering=document.createElement('div');
engineering.id='engineeringPanel';
engineering.className='workbench-panel';
engineering.setAttribute('role','tabpanel');
engineering.setAttribute('aria-labelledby','engineeringTab');
while(workbench.firstChild)engineering.appendChild(workbench.firstChild);
workbench.appendChild(tabs);
workbench.appendChild(engineering);
const commentary=document.createElement('div');
commentary.id='commentaryPanel';
commentary.className='workbench-panel technical-commentary';
commentary.setAttribute('role','tabpanel');
commentary.setAttribute('aria-labelledby','commentaryTab');
commentary.hidden=true;
commentary.innerHTML=`
<h2>Technical commentary</h2>
<p class="technical-lead">This engine studies the electrical consequences of physical PV topology. The standards require designers to control capacitance to earth, insulation monitoring, conductive-loop area, transient overvoltage, cable temperature, voltage drop, reverse current and environmental exposure, but they do not provide one universal geometric calculation engine.</p>
<div class="technical-rule"><strong>Primary standards-led purpose</strong><br>Topology → module and cable capacitance to earth → IMD compatibility and insulation-fault protection.<br>Geometry → loop area → differential and common-mode inductance → transient overvoltage and SPD assessment.</div>
<div class="technical-grid">
<article><h3>Capacitance and IMD</h3><p>For large arrays, capacitance to earth must be treated as a device-selection input. The model must keep <code>C+earth</code>, <code>C−earth</code>, common-mode capacitance and positive-to-negative differential capacitance separate. Capacitance seen by the IMD depends on the actual inverter input and monitoring boundary.</p></article>
<article><h3>Wet and dry states</h3><p>Wet conditions can increase leakage, lower insulation resistance and change capacitance. No hidden fixed wet multiplier is a standards value. Dry and wet values must be measured, manufacturer-declared, geometry-derived or visibly assumed.</p></article>
<article><h3>Loop geometry</h3><p>Positive and negative routes must be represented as a closed circuit. Minimum conductive-loop area is a design objective, so local separation, crossings, structure drops and surplus coils matter. One average spacing cannot describe the whole circuit.</p></article>
<article><h3>Common and differential modes</h3><p>Differential inductance follows the positive/negative loop. Common-mode behaviour follows both poles against frame, bonding network and earth. The bonding-conductor route therefore belongs in the topology.</p></article>
<article><h3>SPD electrical distance</h3><p>SPD effectiveness depends on routed electrical distance and connection lead inductance. The engine should compare the furthest module route with the applicable critical-length method and include the residual voltage contribution from SPD leads.</p></article>
<article><h3>Complete circuit loss</h3><p>Voltage drop and power loss must include both external conductors, module factory leads, extension leads, connectors, terminations and series devices. Temperatures should be applied by segment rather than as one whole-string value.</p></article>
</div>
<h3>Capacitance model discipline</h3>
<p>The present geometry-derived dry and wet values are screening scenarios, not universal module constants. Module glass, cell area, frame and rail coupling, cable installation, water films, soil, trays, structure and inverter EMC components all affect the result. The next model shall show input provenance and uncertainty and shall compare total array capacitance with the selected IMD maximu … [line shortened here: 437 characters; full line on GitHub]
<h3>Inverter input topology</h3>
<p>Independent MPPT inputs with reverse-current blocking and inputs paralleled onto a common DC bus are not electrically equivalent. They change the capacitance aggregation boundary, reverse-current paths, isolation requirements and the array or sub-array definition. Where the inverter architecture is unknown, the engine should display bounding cases rather than choose one silently.</p>
<h3>Transmission-line studies</h3>
<p>Propagation delay, characteristic impedance, travelling-wave reflection and stored electric or magnetic energy are advanced engineering layers. They are useful for testing the standards-required outcomes, but must be labelled as research or standards-guided calculations rather than direct normative formulae.</p>
<h3>Evidence and reliance</h3>
<p>Every result should identify whether it is a normative criterion, a standards-guided engineering calculation or an advanced model. Manufacturer data, measured geometry and competent-person review remain necessary before equipment selection or a project-specific compliance conclusion.</p>
<p class="evidence">The detailed next-study work packages are recorded in the repository README. This tab is the browser-facing technical note, not a reproduction of licensed standards text and not a design certificate.</p>
`;
workbench.appendChild(commentary);
const engineeringTab=document.getElementById('engineeringTab');
const commentaryTab=document.getElementById('commentaryTab');
function select(which){
const showEngineering=which==='engineering';
engineering.hidden=!showEngineering;
commentary.hidden=showEngineering;
engineeringTab.setAttribute('aria-selected',String(showEngineering));
commentaryTab.setAttribute('aria-selected',String(!showEngineering));
if(showEngineering){
requestAnimationFrame(()=>{
if(typeof render==='function')render();
requestAnimationFrame(centre);
});
}
}
engineeringTab.addEventListener('click',()=>select('engineering'));
commentaryTab.addEventListener('click',()=>select('commentary'));
}
const BASE_W=2200,BASE_H=1350,MIN=.45,MAX=2.4,STEP=.25;
let scale=1,down=false,startX=0,startY=0,startLeft=0,startTop=0,moved=false,anim=0;
const clamp=v=>Math.max(MIN,Math.min(MAX,v));
function point(e){const r=canvas.getBoundingClientRect();return{x:e.clientX-r.left,y:e.clientY-r.top};}
function world(e){const p=point(e);const t=state&&state.last&&state.last.t;return t?{x:t.wx(p.x),y:t.wy(p.y)}:null;}
function label(){if(zoomPercent)zoomPercent.textContent=`${Math.round(scale*100)}%`;const z=document.getElementById('zoomReadout');if(z)z.textContent=`${Math.round(scale*100)}% · DRAG TO MOVE · USE − / + TO ZOOM`;}
function setSize(s){scale=s;canvas.style.width=`${BASE_W*s}px`;canvas.style.height=`${BASE_H*s}px`;state.zoom=1;state.panX=0;state.panY=0;render();label();}
function zoomTo(target,clientX,clientY){
target=clamp(target);if(Math.abs(target-scale)<.001)return;
cancelAnimationFrame(anim);
const rect=wrap.getBoundingClientRect();
const vx=(clientX==null?rect.left+wrap.clientWidth/2:clientX)-rect.left;
const vy=(clientY==null?rect.top+wrap.clientHeight/2:clientY)-rect.top;
const anchorX=(wrap.scrollLeft+vx)/(BASE_W*scale);
const anchorY=(wrap.scrollTop+vy)/(BASE_H*scale);
const from=scale,start=performance.now(),duration=180;
function frame(now){
const p=Math.min(1,(now-start)/duration),ease=1-Math.pow(1-p,3),s=from+(target-from)*ease;
setSize(s);
wrap.scrollLeft=anchorX*(BASE_W*s)-vx;
wrap.scrollTop=anchorY*(BASE_H*s)-vy;
if(p<1)anim=requestAnimationFrame(frame);else{scale=target;label();}
}
anim=requestAnimationFrame(frame);
}
wrap.addEventListener('pointerdown',e=>{
if(e.target.closest('button,input,select,a,.zoom-toolbar'))return;
e.preventDefault();e.stopImmediatePropagation();
state.panning=false;state.dragInv=false;state.pinchStart=null;
if(state.pointers&&state.pointers.clear)state.pointers.clear();
down=true;moved=false;startX=e.clientX;startY=e.clientY;startLeft=wrap.scrollLeft;startTop=wrap.scrollTop;
wrap.classList.add('dragging');wrap.setPointerCapture?.(e.pointerId);
},true);
wrap.addEventListener('pointermove',e=>{
if(!down)return;const dx=e.clientX-startX,dy=e.clientY-startY;
if(Math.abs(dx)+Math.abs(dy)>5)moved=true;
wrap.scrollLeft=startLeft-dx;wrap.scrollTop=startTop-dy;e.preventDefault();e.stopImmediatePropagation();
},true);
function finish(e){
if(!down)return;down=false;wrap.classList.remove('dragging');state.panning=false;state.dragInv=false;
try{wrap.releasePointerCapture?.(e.pointerId);}catch(_){ }
if(moved){e.preventDefault();e.stopImmediatePropagation();return;}
const w=world(e);if(!w||!state.last){e.stopImmediatePropagation();return;}
if(state.drawMode){
if(!state.drawStart){state.drawStart=[w.x,w.y];document.getElementById('drawStatus').innerHTML='Ruler: <strong>CLICK END POINT</strong>';}
else{addManual(state.drawStart,[w.x,w.y]);state.drawStart=null;document.getElementById('drawStatus').innerHTML='Ruler: <strong>CLICK START POINT</strong>';}
render();label();e.preventDefault();e.stopImmediatePropagation();return;
}
const s=window.nearest(w.x,w.y,state.last.g);if(s){state.selected=s.id;render();label();}
e.preventDefault();e.stopImmediatePropagation();
}
wrap.addEventListener('pointerup',finish,true);
wrap.addEventListener('pointercancel',e=>{down=false;state.panning=false;state.dragInv=false;wrap.classList.remove('dragging');e.stopImmediatePropagation();},true);
wrap.addEventListener('wheel',e=>{if(Math.abs(e.deltaY)<1)return;e.preventDefault();e.stopImmediatePropagation();zoomTo(scale*(e.deltaY<0?1.12:.89),e.clientX,e.clientY);},{capture:true,passive:false});
zoomIn?.addEventListener('click',()=>zoomTo(scale+STEP));
zoomOut?.addEventListener('click',()=>zoomTo(scale-STEP));
zoomReset?.addEventListener('click',()=>zoomTo(1));
function centre(){wrap.scrollLeft=Math.max(0,(canvas.clientWidth-wrap.clientWidth)/2);wrap.scrollTop=Math.max(0,(canvas.clientHeight-wrap.clientHeight)/2);}
installTechnicalCommentary();
requestAnimationFrame(()=>{setSize(1);requestAnimationFrame(centre);});
window.addEventListener('resize',()=>requestAnimationFrame(centre));
})();Solar Electrical Topology Analysis Engine Text Based — Solar Topology
A Python module covering solar.
othersolar-electrical-topology-analysis-engine-text-based / src/solar_topology/__init__.py · lines 1–295 of 295 · Not reached from any entry point (candidate for review)
- Why it exists in the grid workflow
- Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar.
- What it achieves
- Solar electrical topology physics, cartridges and fleet data core.
- Why it matters
- No other file in the estate was found to import it.
- Application
- solar-electrical-topology-analysis-engine-text-based · src/solar_topology · Python module
- Uses
- Public API (relative import), Cartridges (relative import), Circuit (relative import), Circuit Adapters (relative import), Circuit Traversal (relative import), Circuit Validation (relative import), Diagnostics (relative import), Diagnostic Adapters (relative import), and 23 more
- Used by
- none found
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- solar-electrical-topology-analysis-engine-text-based@d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9 src/solar_topology/__init__.py:1-295 · blob 17a72f699953e9ea1aedcdf8652d89c5ec48afb9 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: none found · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: unreached_review
"""Solar electrical topology physics, cartridges and fleet data core."""
from .public_api import (
PUBLIC_API_SCHEMA_VERSION,
ApiStatus,
PUBLIC_API_CLASSIFICATION,
build_public_api_inventory,
explicitly_classified_public_names,
public_api_status,
)
from .cartridges import (
INITIAL_CARTRIDGES,
LeapfrogCartridge,
SequentialCartridge,
TopologyCartridge,
build_fleet_segments,
validate_cross_cartridge_invariants,
validate_segment_chains,
)
from .circuit import (
CIRCUIT_SCHEMA_VERSION,
CircuitModel,
Connection,
ConnectionKind,
EvidenceClass,
ObjectKind,
PhysicalObject,
Terminal,
TerminalPolarity,
canonical_circuit_json,
canonical_circuit_payload,
)
from .circuit_adapters import (
CARTRIDGE_ADAPTER_VERSION,
adapt_segment_chain_to_circuit,
build_leapfrog_circuit,
build_sequential_circuit,
circuit_boundary_terminal_ids,
segment_chain_hash,
source_segment_ids,
)
from .circuit_traversal import (
TRAVERSAL_SCHEMA_VERSION,
OrderedCircuitTraversal,
TraversalIssue,
verify_ordered_circuit,
)
from .circuit_validation import (
CircuitValidationResult,
IssueSeverity,
ValidationIssue,
validate_circuit_model,
validated_circuit_hash,
)
from .diagnostics import (
DIAGNOSTIC_SCHEMA_VERSION,
Diagnostic,
DiagnosticCategory,
DiagnosticReport,
DiagnosticSeverity,
StudyCoverage,
StudyState,
build_diagnostic_report,
coverage_payload,
diagnostic_from_exception,
diagnostic_payload,
diagnostic_report_hash,
diagnostic_report_json,
diagnostic_report_payload,
require_non_blocking,
)
from .diagnostic_adapters import (
DIAGNOSTIC_ADAPTER_VERSION,
circuit_validation_diagnostics,
coverage_for_unperformed_studies,
)
from .diagnostic_bridges import (
DIAGNOSTIC_BRIDGE_VERSION,
build_validation_diagnostic_report,
diagnostics_from_circuit_validation,
diagnostics_from_traversal,
guarded_diagnostic_call,
)
from .study_applicability import (
STUDY_APPLICABILITY_SCHEMA_VERSION,
AcceptanceCriterion,
CriterionOperator,
StudyApplicability,
StudyKind,
applicability_coverage,
build_study_applicability,
evaluate_criterion,
)
from .study_registry import (
INITIAL_STUDIES,
STUDY_REGISTRY_SCHEMA_VERSION,
StudyAssessment,
StudyCategory,
StudyDefinition,
StudyRegistry,
assess_study,
build_study_registry,
study_registry_hash,
study_registry_json,
study_registry_payload,
)
from .evidence import (
EVIDENCE_SCHEMA_VERSION,
EvidenceDescriptor,
VerificationState,
canonical_evidence_descriptor,
javascript_provenance_descriptor,
segment_provenance_descriptor,
weakest_evidence_class,
)
from .evidence_boundary import (
EVIDENCE_BOUNDARY_SCHEMA_VERSION,
EvidenceSource,
PublicationDecision,
PublicationPermission,
RightsStatus,
assess_publication_boundary,
require_publication_boundary,
)
from .identifiers import (
IDENTIFIER_SCHEMA_VERSION,
CanonicalIdentifier,
EntityLevel,
parse_identifier,
project_id,
require_unique_identifiers,
)
from .public_topology import (
PUBLIC_TOPOLOGY_SCHEMA_VERSION,
PublicTopologyManifest,
PublicTopologyRecord,
build_public_topology_manifest,
public_topology_hash,
public_topology_json,
public_topology_payload,
)
from .contradictions import (
CONTRADICTION_SCHEMA_VERSION,
Claim,
Contradiction,
ContradictionRegister,
ContradictionSeverity,
ContradictionStatus,
build_contradiction_register,
contradiction_register_hash,
contradiction_register_json,
contradiction_register_payload,
unresolved_contradictions,
)
from .persistence import (
PERSISTENCE_SCHEMA_VERSION,
DeterministicStore,
PersistedRecord,
build_deterministic_record_store,
canonical_payload_json,
deterministic_store_hash,
deterministic_store_json,
deterministic_store_payload,
persist_record,
read_back_store,
)
from .duckdb_segments import (
DUCKDB_SEGMENT_SCHEMA_VERSION,
create_segment_table,
export_segment_parquet,
read_segment_parquet,
read_segment_rows,
segment_rows_hash,
segment_rows_payload,
write_segment_rows,
)
from .evidence_register import (
EVIDENCE_REGISTER_SCHEMA_VERSION,
EngineeringEvidenceRegister,
EvidenceMaturity,
EvidenceRegisterEntry,
RequirementStatus,
build_evidence_register,
evidence_register_hash,
evidence_register_json,
evidence_register_payload,
)
from .geometry_receipts import (
GEOMETRY_METHOD_VERSION,
GEOMETRY_RECEIPT_SCHEMA_VERSION,
GeometryReceipt,
SegmentGeometryResult,
calculate_geometry_receipt,
geometry_receipt_hash,
geometry_receipt_json,
geometry_receipt_payload,
)
from .calculation_receipts import (
CALCULATION_RECEIPT_SCHEMA_VERSION,
COMPLETE_CIRCUIT_METHOD_VERSION,
OrderedCircuitCalculationReceipt,
SegmentCalculationResult,
calculation_receipt_hash,
calculation_receipt_json,
calculation_receipt_payload,
)
from .circuit_calculations import ALPHA_CU_20_PER_C, calculate_complete_circuit
from .uncertainty import (
UNCERTAINTY_METHOD_VERSION,
UNCERTAINTY_SCHEMA_VERSION,
Interval,
OperatingState,
SegmentInputIntervals,
SegmentUncertaintyResult,
UncertainCircuitCalculationReceipt,
calculate_complete_circuit_with_uncertainty,
uncertainty_receipt_hash,
uncertainty_receipt_json,
uncertainty_receipt_payload,
)
from .fleet_store import build_deterministic_store, build_store
from .formulas import (
cold_string_voc,
dc_resistance,
stored_electric_energy,
stored_magnetic_energy,
two_wire_parameters,
)
from .products import ConductorSpec, EXTERNAL_STRING_6MM2, FACTORY_LEAD_4MM2
from .equipment_profiles import (
EQUIPMENT_PROFILE_SCHEMA_VERSION,
GENERIC_REFERENCE_CONTRACT_REVISION,
GENERIC_REFERENCE_EQUIPMENT_CONTRACT,
ConnectorCompatibilityState,
ConnectorEquipmentProfile,
DcInputProfile,
FactoryLeadSetProfile,
FieldConductorProfile,
InternalDcTopology,
InverterEquipmentProfile,
ModuleEquipmentProfile,
ModuleTechnology,
QualifiedValue,
ReferenceEquipmentContract,
ReverseCurrentBlockingState,
build_generic_reference_equipment_contract,
reference_equipment_contract_hash,
reference_equipment_contract_json,
reference_equipment_contract_payload,
reference_equipment_missing_evidence,
validate_reference_equipment_contract,
)
from .inverter_block import (
INVERTER_BLOCK_SCHEMA_VERSION,
REFERENCE_INVERTER_BLOCK_ID,
InverterBlockEvidenceState,
InverterBlockReceipt,
build_inverter_block,
build_reference_inverter_block,
inverter_block_hash,
inverter_block_json,
inverter_block_payload,
validate_inverter_block_receipt,
)
from .resistance_qualification import (
RESISTANCE_QUALIFICATION_SCHEMA_VERSION,
ResistanceSourceAssessment,
ResistanceSourceStatus,
assess_resistance_source,
resistance_source_assessment_hash,
resistance_source_assessment_json,
resistance_source_assessment_payload,
)
from .segments import (
FeasibilityResult,
Point3D,
SegmentRow,
StringDefinition,
TopologyInputs,
archetype_strings,
fleet_string_definitions,
string_counts_per_inverter,
)
from .topology import (
FormationConfig,
GeometryConfig,
Segment,
StringTopology,
build_export,
build_site_model,
build_string_segments,
validate_no_user_route_lengths,
)
__all__ = [name for name in globals() if not name.startswith("_")]Solar Topology — Array
A Python module in Solar Electrical Topology Analysis Engine Text Based.
transformsolar-electrical-topology-analysis-engine-text-based / src/solar_topology/array/__init__.py · lines 1–163 of 163 · Not reached from any entry point (candidate for review)
- What it does
- It calculates its inputs. Defines _authoritative_module. Uses libraries __future__, importlib, sys, types.
- Why it exists in the grid workflow
- Domain stage sub33kv_design (path word 'array'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary.
- Downstream impact
- Used directly by 1 file: Inverter Block (solar-electrical-topology-analysis-engine-text-based).
- What it achieves
- Installed public API for the Build 025 whole-table array authority.
- Why it matters
- Imported by Inverter Block.
- Application
- solar-electrical-topology-analysis-engine-text-based · src/solar_topology/array · Python module
- Uses
- Array Engine (relative import), Array Route Types (relative import), Array Topology (relative import), Geometry Authority (relative import), __future__, importlib, sys, types
- Used by
- imported by Inverter Block (relative import)
- Produces
- none declared
- Defines here
- _authoritative_module
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- solar-electrical-topology-analysis-engine-text-based@d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9 src/solar_topology/array/__init__.py:1-163 · blob 7449e5f72bbfa3a0c702b276a5742240ef56bf8a · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: transform · effects: none found · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: unreached_review
"""Installed public API for the Build 025 whole-table array authority.
Build 025.5 places every implementation module inside this package. The original
repository-root module names remain compatibility imports only. Internal aliases
are installed in dependency order so the unchanged, already validated Build 025
module bodies retain object identity and deterministic receipt behaviour while
all production logic is owned by the installed package.
"""
from __future__ import annotations
from importlib import import_module
import sys
from types import ModuleType
def _authoritative_module(name: str) -> ModuleType:
module = import_module(f".{name}", __name__)
# Replace, rather than setdefault, so importing an old root compatibility
# module first cannot leave a partially initialised module in the graph.
sys.modules[name] = module
return module
# Dependency order is part of the migration contract.
_geometry_authority = _authoritative_module("geometry_authority")
_table_string_assignment = _authoritative_module("table_string_assignment")
_table_string_hashing = _authoritative_module("table_string_hashing")
_table_string_validation = _authoritative_module("table_string_validation")
_array_topology = _authoritative_module("array_topology")
_array_route_types = _authoritative_module("array_route_types")
_array_route_geometry = _authoritative_module("array_route_geometry")
_array_routing = _authoritative_module("array_routing")
_array_engine = _authoritative_module("array_engine")
from .array_engine import ( # noqa: E402
BUILD_025_SCHEMA_VERSION,
STRATEGY_COMPARISON_SCHEMA_VERSION,
Build025Receipt,
MetricDelta,
StrategyComparisonReceipt,
build025_payload,
build_complete_table,
compare_reference_24_by_30,
compare_wiring_strategies,
reference_24_by_30_build,
strategy_comparison_payload,
)
from .array_route_types import ( # noqa: E402
ConductorRoute,
ConductorScope,
InstalledLengthPolicy,
InstalledLengthReceipt,
InstallationMethod,
InverterPlacement,
ModuleTerminalLayout,
RouteClass,
RoutePolarity,
RouteSegment,
RoutingConfig,
StringRouteMetrics,
StringRoutingReceipt,
TableRouteMetrics,
TableRoutingReceipt,
)
from .array_topology import ( # noqa: E402
DEFAULT_BUILD_025_LIMITS,
Build025Limits,
EquipmentProfile,
InputAllocationReceipt,
NodeKind,
StringAllocationReceipt,
TableTopologyReceipt,
WiringStrategy,
allocate_physical_inputs,
allocate_strings,
attach_input_topology,
build_table_topology,
uniform_equipment_profile,
)
from .geometry_authority import ( # noqa: E402
ModuleDimensions,
ModulePlacement,
Orientation,
Point2D,
TableBounds,
TableGeometryReceipt,
TableLayoutRequest,
generate_table_geometry,
receipt_as_dict,
reference_24_by_30_table,
)
ARRAY_AUTHORITY_STATUS = "canonical_candidate"
ARRAY_AUTHORITY_MIGRATION_STAGE = "build-025.5-package-authority"
COMPATIBILITY_MODULES = (
"geometry_authority",
"table_string_assignment",
"table_string_hashing",
"table_string_validation",
"array_topology",
"array_route_types",
"array_route_geometry",
"array_routing",
"array_engine",
)
__all__ = [
"ARRAY_AUTHORITY_MIGRATION_STAGE",
"ARRAY_AUTHORITY_STATUS",
"BUILD_025_SCHEMA_VERSION",
"COMPATIBILITY_MODULES",
"STRATEGY_COMPARISON_SCHEMA_VERSION",
"Build025Limits",
"Build025Receipt",
"ConductorRoute",
"ConductorScope",
"DEFAULT_BUILD_025_LIMITS",
"EquipmentProfile",
"InputAllocationReceipt",
"InstalledLengthPolicy",
"InstalledLengthReceipt",
"InstallationMethod",
"InverterPlacement",
"MetricDelta",
"ModuleDimensions",
"ModulePlacement",
"ModuleTerminalLayout",
"NodeKind",
"Orientation",
"Point2D",
"RouteClass",
"RoutePolarity",
"RouteSegment",
"RoutingConfig",
"StrategyComparisonReceipt",
"StringAllocationReceipt",
"StringRouteMetrics",
"StringRoutingReceipt",
"TableBounds",
"TableGeometryReceipt",
"TableLayoutRequest",
"TableRouteMetrics",
"TableRoutingReceipt",
"TableTopologyReceipt",
"WiringStrategy",
"allocate_physical_inputs",
"allocate_strings",
"attach_input_topology",
"build025_payload",
"build_complete_table",
"build_table_topology",
"compare_reference_24_by_30",
"compare_wiring_strategies",
"generate_table_geometry",
"receipt_as_dict",
"reference_24_by_30_build",
"reference_24_by_30_table",
"strategy_comparison_payload",
"uniform_equipment_profile",
]