How pnorena17/instrumentos-opticos works
Project Type and Purpose
• This is an academic / scientific Python project (“Instrumentos-opticos”) comprised of a series of optics exercises (“practica_1/punto1” through “punto4”).
• Each “punto” folder implements one optical algorithm or measurement technique (e.g., Transfer Function (TF), Point Spread Function (FTE), Ronchi test, fiber reconstructions) and generates results (plots or TIFF images).
File Structure
• Top-level:
– README.md (project title)
– practica_1/ (root of all exercises)
• Under practica_1/:
– punto1/ to punto4/ folders
– Each contains:
· Python scripts (.py) for algorithm implementations and validations
· A “Resultados” subfolder holding output files (PDF or TIFF)
• No centralized “src” or “lib” directory; each exercise is self-contained.
README
• Minimal information—only the project name—so we rely on file names and directory layout to infer architecture.
Main Components and Their Relationships
a. Data Inputs
– Static test data (images or parameters) implicitly read by each script
b. Processing Modules (one per punto)
– punto1: FTE_gausiana.py, TF_circulo.py, validation scripts
– punto2: Ronchi.py
– punto3: TFinversa.py, reconstruccionConFase.py
– punto4: “Primera aproximación Fibra.py”, “Ing Inversa Fibra.py”
c. Validation & Analysis
– Scripts named “validacion_…” or standalone Python files that compute error metrics, compare analytical vs numerical
d. Output Artifacts
– PDFs (plots of transfer functions) and TIFFs (reconstructed images) stored under each “Resultados” folder
Important Architectural Patterns
• Modular by exercise: each “punto” is an isolated pipeline
• Inputs → Algorithm → (Optional) Validation → Results
• No shared code library—each module implements or imports common Python scientific libraries (NumPy, SciPy, Matplotlib)
Technologies, Frameworks, and Libraries
• Python 3.x
• NumPy, SciPy for numerical computations
• Matplotlib or similar for plot generation (PDF)
• imageio or PIL for TIFF I/O