Skip to content

v.1.6.0 Universal data importer

Choose a tag to compare

@AlejandroSerranoCapote AlejandroSerranoCapote released this 15 Aug 15:20
· 43 commits to main since this release
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.