Restructure package for domain-driven design
Reorganise package structure to improve separation of concerns: - instruments/ - SCPI, transport, drivers, interfaces, factory - simulation/ - physics engine, virtual instruments, server - framework/ - test runner, logger, limits, context - tests/ - thermal/, electrical/ (DVT test implementations) - data/ - repository, models - reporting/ - generator, templates - app/ - CLI, config, dashboard This structure enables: - Reusable instruments package for other test suites - Clear separation of simulation (dev) vs production code - Domain-focused package organisation Updated documentation to reflect new paths.
This commit is contained in:
5
src/py_dvt_ate/app/__init__.py
Normal file
5
src/py_dvt_ate/app/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
"""Application entry points.
|
||||
|
||||
Contains CLI, dashboard, and configuration loading for the
|
||||
py_dvt_ate application.
|
||||
"""
|
||||
5
src/py_dvt_ate/app/dashboard/__init__.py
Normal file
5
src/py_dvt_ate/app/dashboard/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
"""Streamlit dashboard for real-time monitoring.
|
||||
|
||||
Provides visualisation of instrument status, test progress,
|
||||
and historical results.
|
||||
"""
|
||||
@@ -1 +0,0 @@
|
||||
"""Command-line interface."""
|
||||
@@ -1 +0,0 @@
|
||||
"""Configuration handling."""
|
||||
@@ -1 +0,0 @@
|
||||
"""Streamlit dashboard."""
|
||||
@@ -1 +0,0 @@
|
||||
"""Instrument SCPI drivers."""
|
||||
@@ -1 +0,0 @@
|
||||
"""Test execution framework."""
|
||||
5
src/py_dvt_ate/framework/__init__.py
Normal file
5
src/py_dvt_ate/framework/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
"""Test execution framework.
|
||||
|
||||
Provides test sequencing, measurement logging, limit checking,
|
||||
and runtime context management for DVT characterisation tests.
|
||||
"""
|
||||
@@ -1 +0,0 @@
|
||||
"""Hardware Abstraction Layer."""
|
||||
@@ -1 +0,0 @@
|
||||
"""HAL implementations."""
|
||||
@@ -1 +1,9 @@
|
||||
"""Virtual instrument implementations."""
|
||||
"""Instrument control package.
|
||||
|
||||
This package provides everything needed to communicate with lab instruments:
|
||||
- Protocol interfaces (IThermalChamber, IPowerSupply, IMultimeter)
|
||||
- SCPI command parsing
|
||||
- Transport layer (TCP, VISA)
|
||||
- Instrument drivers
|
||||
- Factory for creating configured instrument sets
|
||||
"""
|
||||
|
||||
5
src/py_dvt_ate/instruments/drivers/__init__.py
Normal file
5
src/py_dvt_ate/instruments/drivers/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
"""SCPI driver implementations for lab instruments.
|
||||
|
||||
Each driver translates high-level operations into SCPI commands
|
||||
and handles responses from instruments.
|
||||
"""
|
||||
6
src/py_dvt_ate/instruments/transport/__init__.py
Normal file
6
src/py_dvt_ate/instruments/transport/__init__.py
Normal file
@@ -0,0 +1,6 @@
|
||||
"""Transport layer for instrument communication.
|
||||
|
||||
Provides connection abstractions for different backends:
|
||||
- TCP sockets (for simulation server)
|
||||
- PyVISA (for real instruments)
|
||||
"""
|
||||
@@ -1 +0,0 @@
|
||||
"""Physics simulation engine."""
|
||||
@@ -1 +0,0 @@
|
||||
"""Device Under Test models."""
|
||||
5
src/py_dvt_ate/reporting/__init__.py
Normal file
5
src/py_dvt_ate/reporting/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
"""Report generation.
|
||||
|
||||
Generates test reports from stored data in various formats
|
||||
including PDF and HTML.
|
||||
"""
|
||||
@@ -1 +0,0 @@
|
||||
"""Simulation server."""
|
||||
5
src/py_dvt_ate/simulation/__init__.py
Normal file
5
src/py_dvt_ate/simulation/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
"""Physics simulation package.
|
||||
|
||||
Provides virtual instruments backed by a coupled thermal-electrical
|
||||
physics engine. Used for development and testing without real hardware.
|
||||
"""
|
||||
5
src/py_dvt_ate/simulation/physics/__init__.py
Normal file
5
src/py_dvt_ate/simulation/physics/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
"""Physics engine for thermal-electrical simulation.
|
||||
|
||||
Implements coupled thermal and electrical domain models with
|
||||
realistic time constants and temperature-dependent behaviour.
|
||||
"""
|
||||
5
src/py_dvt_ate/simulation/physics/models/__init__.py
Normal file
5
src/py_dvt_ate/simulation/physics/models/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
"""Device Under Test (DUT) models.
|
||||
|
||||
Provides thermal and electrical models for various device types
|
||||
including LDO regulators, op-amps, and other components.
|
||||
"""
|
||||
5
src/py_dvt_ate/simulation/virtual/__init__.py
Normal file
5
src/py_dvt_ate/simulation/virtual/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
"""Virtual instrument implementations.
|
||||
|
||||
SCPI-compliant virtual instruments that respond like real hardware
|
||||
but are backed by the physics simulation engine.
|
||||
"""
|
||||
@@ -1 +1,6 @@
|
||||
"""DVT test implementations."""
|
||||
"""DVT test implementations.
|
||||
|
||||
Contains characterisation test suites organised by category:
|
||||
- thermal/ - Temperature-related tests (TempCo, etc.)
|
||||
- electrical/ - Electrical tests (load regulation, etc.)
|
||||
"""
|
||||
|
||||
5
src/py_dvt_ate/tests/electrical/__init__.py
Normal file
5
src/py_dvt_ate/tests/electrical/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
"""Electrical characterisation tests.
|
||||
|
||||
Tests for electrical performance including load regulation,
|
||||
line regulation, and output accuracy.
|
||||
"""
|
||||
5
src/py_dvt_ate/tests/thermal/__init__.py
Normal file
5
src/py_dvt_ate/tests/thermal/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
"""Thermal characterisation tests.
|
||||
|
||||
Tests related to temperature behaviour including temperature
|
||||
coefficient (TempCo) measurements and thermal stability.
|
||||
"""
|
||||
@@ -1 +0,0 @@
|
||||
"""Communication layer."""
|
||||
Reference in New Issue
Block a user