Urgent.News

What's breaking now, across thousands of outlets.

Tech

How to Turn Per-Spectrum Fitting Into NumPy Batch Fitting — SoftwareX Accepted It in 17 Days

Lab code that fits spectra one by one in a Python loop gets slow once you have thousands of curves. SPECTROview, an open-source Python desktop app for spectroscopic processing and fitting, replaces that loop with a vectorized batch fitting (VBF) engine built on NumPy. On an Intel Core i5-8365U laptop with 16 GB of RAM, the authors report 16×–62× speedups versus lmfit one-by-one fitting, depending…

Per-spectrum fitting in Python loops becomes slow when dealing with thousands of curves. SPECTROview, an open-source Python desktop application for spectroscopic processing and fitting, offers a solution through a vectorized batch fitting (VBF) engine built on NumPy. In a test on an Intel Core i5-8365U laptop with 16 GB RAM, VBF achieved speedups of 16× to 62× compared to lmfit one-by-one fitting, depending on the dataset size and model complexity.

The largest test used 16,384 spectra, with peak memory of 845 MB for under a second, then returning to approximately 80 MB after convergence. The SoftwareX paper, describing the software, was received on June 17, 2026, accepted on July 4, 2026, and published on July 8, 2026, marking a 17-day journey from submission to acceptance in CrushSCI’s SoftwareX records.

SoftwareX, published by Elsevier as an open-access journal, aims to recognize research software through peer-reviewed citations, inspection, and reuse with developer credit. The journal accepts multidisciplinary software, including mathematics, physics, environment, medicine, biology, and others. The paper's scope includes original software publications, software updates, and domain-independent building blocks like math libraries, image-processing libraries, and visualization tools.

SPECTROview's pipeline includes importing spectra from various formats, baseline correction, multi-peak fitting, and exporting publication-ready figures. Its VBF engine stacks spectra into an N×M matrix, builds the Jacobian for Levenberg-Marquardt optimization as an N×M×K tensor, and solves all equations in a single vectorized LAPACK call, offering closed-form analytic Jacobians and a convergence mask.

The authors avoided using PyTorch or TensorFlow batch LM implementations due to their reliance on autodiff for neural-net training and difficulty handling spectra that converge at different iteration steps. The speedups of VBF were measured on an Intel Core i5-8365U laptop with 16 GB RAM against lmfit one-by-one fitting, demonstrating its effectiveness for handling large-scale spectroscopic data processing.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Why Access Control Cannot Enforce Purpose Limitation in Data Pipelines

In May 2022, the FTC and the U.S. Department of Justice fined Twitter $150 million . Twitter collected phone numbers and email addresses from more than 140 million users for account security.

  • Twitter collected personal data for account security but did not limit data access.
  • Access control systems evaluate principal and resource but not data collection purpose.
  • Enforcing purpose limitation requires labeling data with allowed purposes at each pipeline stage.

Helm Hands-On - A Practical Guide to Packaging Kubernetes Apps

Introduction When you start working with Kubernetes, writing YAML files for Deployments, Services, ConfigMaps, and other resources is a good way to learn how applications are deployed.

  • Helm simplifies deploying and managing Kubernetes applications
  • Transforms manifests into reusable charts for easy installation
  • Guides cover core concepts, chart creation, values configuration

Hyperion Core: Building a Transparent Seismic Research Dashboard

This is a submission for the Presage SmartSpectra SDK Challenge What I Built Hyperion Core: Building a Transparent Seismic Research Dashboard Earthquake information is important—and the way we present…

  • Hyperion Core is a Japan-focused, bilingual seismic research dashboard.
  • Provides transparent earthquake details like magnitude, depth, location, and time.
  • Includes Gemini Live API for voice conversation and logistic regression demo.

What JavaScript using disposes after returns and exceptions: nine checks

using registers an object with a disposal method in a scope and calls cleanup when that scope ends. When several resources were registered, they were disposed in reverse acquisition order.

  • JavaScript disposes objects after returns and exceptions in Node.js
  • Scope exit triggers cleanup of disposed objects before return value
  • Nine conditions cover disposal order, exceptions, and asynchronous waiting

More from Thursday 5 November →