Skip to content

Releases

v2.0.1 Stable release

Choose a tag to compare

@AlejandroSerranoCapote AlejandroSerranoCapote released this 03 Nov 08:37
fa8e4de

Hotfix: Fixed an issue in run.bat where an incorrect path prevented the application from launching on Windows.

SPARK v2.0.0

Choose a tag to compare

@AlejandroSerranoCapote AlejandroSerranoCapote released this 01 Nov 19:38
0a86a17

Release Notes: SPARK v2.0.0

Release Tag: v2.0.0
Release Title: SPARK v2.0.0


Overview

I am thrilled to announce the official release of SPARK v2.0.0 (Spectroscopy Pump-probe Analysis and Research Kit)! Representing a complete architectural overhaul, Version 2.0.0 stands as the definitive edition of the software. SPARK bridges intuitive interactive graphical workflows with high precision mathematical algorithms, delivering the professional and robust environment for Transient Absorption Spectroscopy (TAS), Fluorescence Upconversion (FLUPS), and X-ray Free Electron Laser (XFEL) time-resolved data analysis.

Installation & Quick Start

Standalone Windows Installer

Download SPARK_Setup.exe from the Assets below and follow the installation wizard. No Python setup required!


Developed by Alejandro Serrano Capote.

v.1.6.0 Universal data importer

Choose a tag to compare

@AlejandroSerranoCapote AlejandroSerranoCapote released this 15 Aug 15:20
cccd6da

Update: Universal Data Importer (import_wizard.py) integration

This update introduces import_wizard.py, a robust and highly flexible data loading module designed to handle a wide variety of scientific file formats automatically, replacing the strict .npy only limitation.

It brings a professional, Origin/Igor-style fallback GUI to ensure that no matter the structure of the exported data, the user can always import it without encountering fatal errors.

New Features & Enhancements

  • Universal Format Support: The importer now seamlessly reads .txt, .csv, .dat, and .npy files. Powered by Pandas, it automatically detects delimiters (tabs, commas, spaces) without requiring manual configuration.
  • Origin-Style Manual Importer (Fallback GUI): If a file structure is unknown or lacks proper headers, the application no longer crashes. Instead, it opens a spreadsheet-style interface where users can visually map their data.
  • Auto-Detect Layout Tool: Added a smart algorithm that automatically parses standard spectrometer exports. It maps Column 0 to Wavelengths (WL), Row 0 to Time Delays (TD), and the rest to the 2D Data Matrix, intelligently ignoring non-numeric metadata footers (e.g., date, sample info).
  • Smart Dimension Validation: The UI actively monitors the user's manual selections. The "Confirm and Import" button remains locked until all axes are assigned and their mathematical dimensions perfectly match the 2D matrix, completely preventing downstream processing crashes.
  • Real-Time Status Feedback: Added visual status indicators that update in real-time as users select data, showing exactly how many points have been assigned to each axis.
  • Clear / Reset All Functionality: Users can now instantly clear all manual assignments and cell colorings with a single click if a mistake is made during selection.

Under the Hood (GlobalFitClassGui.py)

  • Integrated Pipeline: The main GUI now points to load_universal_file(), allowing batch loading of multiple diverse file types simultaneously.
  • Dynamic UI Locking: The Pre-processing, Visualization, and Export panels are now disabled by default. They automatically unlock only when a valid dataset is successfully loaded and confirmed, preventing accidental crashes from empty states.

v1.5.0 Stable Release

Choose a tag to compare

@AlejandroSerranoCapote AlejandroSerranoCapote released this 29 Jul 18:53
db1c050

This stable release fixes newly discovered bugs and improves the overall user experience. Several new features and quality-of-life improvements have been added to facilitate and streamline data analysis.

v1.3.0: First Stable Release

Choose a tag to compare

@AlejandroSerranoCapote AlejandroSerranoCapote released this 23 Apr 09:51
9fb7342

Overview

I am thrilled to announce the release of v1.3.0. This marks a major milestone for the project: the codebase has been thoroughly refined, tested, and is now completely bug-free and fully ready to be deployed in rigorous scientific research environments (at this moment) .

Key Highlights

  • Scientific Readiness: The application is now fully stable, reliable, and optimized for analyzing ultrafast spectroscopy data (FLUPS, TAS, etc.) without execution errors.

Documentation & Readability

  • Enhanced Code Readability: The core logic and UI components have been cleaned up and structured to ensure the code is highly legible, modular, and maintainable.
  • Comprehensive English Documentation: Implemented professional, industry-standard docstrings (NumPy/Google style) across all classes and functions. All inline comments and variable descriptions have been translated to English to facilitate collaboration with the international scientific community.

Bug Fixes & Stability

  • Zero Known Bugs: Resolved all outstanding issues. The processing pipelines, 2D mapping generation, and global fitting algorithms are now completely stable and robust.

v1.2.0

Choose a tag to compare

@AlejandroSerranoCapote AlejandroSerranoCapote released this 04 Feb 14:21
5d50f10

1D to 2D Map Builder (Spectroscopy / XFEL)

This standalone module is part of the Ultrafast Spectroscopy Analyzer suite.
It provides a graphical tool to reconstruct 2D spectral maps (Intensity vs. Time vs. Energy/Wavelength) starting from individual kinetic timescans (1D traces).

The main goal of this tool is to bridge the gap between raw experimental timescans and global analysis workflows, allowing users to generate clean, structured 2D datasets suitable for global fitting, SVD analysis, or further post-processing.

Originally developed for XFEL (X-Ray Free Electron Laser) and ultrafast transient absorption experiments, the module is fully general and can be adapted to any spectroscopy data stored in .npy dictionary format.


Scientific Motivation

In many ultrafast experiments, data is acquired as a collection of independent kinetic traces, each corresponding to a different probe energy or wavelength.
However, most global analysis methods require a 2D matrix (time × energy).

This tool reconstructs a consistent 2D map by stacking and validating multiple 1D timescans, ensuring correct alignment in both time and energy dimensions.


How It Works

1. Input Data

  • Each kinetic scan is provided as a .npy file containing a Python dictionary.
  • The dictionary must include:
    • A time-delay vector
    • Either:
      • Separate Excited State (ES) and Ground State (GS) arrays
      • or a direct signal (difference, intensity, etc.)

2. Signal Reconstruction

  • If a Direct Signal Key is provided, that signal is used directly.
  • Otherwise, the signal is computed internally as:

3. Matrix Assembly

  • Each kinetic trace is stacked column-wise to build a 2D matrix:
    Signal = ES − GS

3. Matrix Assembly

  • Each kinetic trace is stacked column-wise to build a 2D matrix:
    M(time, energy)

  • NaN values in the time axis are automatically filtered.

  • A consistency check ensures that the number of energy points matches the number of loaded files.

4. Visualization

  • The reconstructed matrix is displayed as a 2D heatmap using matplotlib.
  • Default colormap: RdBu_r, suitable for differential spectroscopy data.

5. Export

  • The final dataset is saved as a .npy dictionary containing:
    • data_c: 2D intensity matrix (energy × time)
    • WL: Energy or wavelength vector
    • TD: Time-delay vector

This output format is ready for global fitting or further numerical analysis.


Graphical Interface Overview

Mapping & Scale Configuration

  • Fully configurable dictionary keys:
    • Time
    • Excited State (ES)
    • Ground State (GS)
    • Optional Direct Signal
  • A time scale factor allows on-the-fly unit conversion (e.g. fs → ps).

Energy / Wavelength Vector

  • Manual input or import from .txt, .csv, or .dat files.
  • Automatic validation against the number of loaded kinetic files.

Kinetic Files

  • Batch loading of .npy files.
  • Automatic sorting.
  • Live mismatch warnings if file and energy counts differ.

Unit Auto-Detection

A statistical analysis of the time-delay vector estimates whether the data is in:

  • Femtoseconds (fs)
  • Picoseconds (ps)

This helps prevent silent unit mismatches before global analysis.


Key Features

  • Flexible Data Structure
    No hardcoded variable names — compatible with any .npy dictionary layout.

  • Robust Validation

    • Energy vs. file count consistency checks
    • NaN filtering
    • Explicit error messages for missing keys
  • Global-Fit Ready Output
    Export format designed to integrate directly into global fitting pipelines.


Typical Use Case

Acquire multiple kinetic scans at different probe energies or wavelengths.

Store each scan as a .npy dictionary.

Load files and the energy vector into the GUI.

Generate and inspect the 2D spectral map.

Export the dataset for global fitting or SVD analysis.

v1.1.0 SVD Diagnosis & Advanced Global Analysis

Choose a tag to compare

@AlejandroSerranoCapote AlejandroSerranoCapote released this 27 Dec 08:18
b201e9b

What's New in this Release

This update introduces powerful mathematical tools and visualization features to transform your ultrafast spectroscopy workflow.

Key New Features

  • SVD Analysis: Integrated Singular Value Decomposition for intelligent noise reduction and matrix rank determination (Scree Plot).
  • Advanced Global Fit: Added support for both Parallel (DAS) and Sequential (SAS) models using Bateman Equations.
  • 3D Surface Explorer: New interactive 3D rendering for global data trend identification.
  • Enhanced UI: Interactive Trace Checker with dual Linear/Logarithmic views and real-time residual mapping.

Improvements & Fixes

  • Improved data preprocessing (baseline correction, spectral/temporal binning, and cropping).
  • More robust error estimation using Jacobian-based confidence intervals.