Package: libssa
LIBSsa2 - Laser Induced Breakdown Spectroscopy spectra analyzerLIBSsa 2is free software, licensed under theGNU Affero General Public License version 3,
and written inPython 3.xfor analyzingLIBS spectra. It can read several formats of data inside raw/text files,
import the spectra, and perform multiple analyses on the data. The environment (spectra, peaks, and results) may also be saved
into an encapsulatedlb2efile.LIBSsa main windowFor a full list of features implemented in LIBSsa, you may check theFEATURES.mdfile but, in short, you can:
remove outliers using SAM or MAD algorithms, perform full spectrum normalization (FSN), create correlation spectrum,
do peak isolation, peak fitting (Gaussian, Lorentzian, and Voigt), univariate linear models, multivariate partial least
squares regression (PLSR), principal components analysis (PCA), and obtain plasma temperature and electron density values
using Saha-Boltzmann (modified to LIBS) equation.Bellow are presented some of the graphics generated by LIBSsa.Some treatments available in LIBSsa: peak isolation (a), peak fitting (b), PCA (c), and Saha-Boltzmann plot (d)Finally, users can also export the results of the analysis in many common formats (txt,csv, andxlsx).Setting up the environmentYou will need to install Python 3 to use the program (tested on 3.9 and 3.10 with current libraries). Python can be obtained from
the official website,https://www.python.org/and, if you have any additional inquiries, there are
official instructions on how install Python onLinux Distributions,WindowsandmacOS.1. Simple install (PyPI version)LIBSsa is distributed as aPython PackageonPyPI. With Python andPIPinstalled, just run from inside aterminalorWindows PowerShelland type:pipinstalllibssa
libssa-gui2. SRC install (GitHub version)If you prefer interacting with the source code of LIBSsa, you may download thesoftware zip,
or clone the repository usinggit:gitclonehttps://github.com/kstenio/libssa.gitThen, you can use PIP to install LIBSsa in editable mode :cdlibssa
pipinstall-e.
libssa-guiIn editable mode, every change made to the source code will also be reflected into the package. Doing this, you'll also
install the followingexternal librariesthat LIBSsa uses:NumPy(~=1.25.1)SciPy(~=1.11.1)Pandas(~=2.0.3)Scikit-Learn(~=1.3.0)PySide6(~=6.4.3)PyQtGraph(~=0.13.3)OpenPyXL(~=3.1.2)Psutil(~=5.9.5)Markdown(~=3.4.3)Lastly, advanced users are encouraged to usevenv(Virtual Environment).ContributingIf you wish to contribute to the development of LIBSsa, please check for the guidelines in theCONTRIBUTING.mdfile.WarrantyLIBSsa 2 is an open-source project. It is distributed in the hope that it will be
useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITYorFITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
version 3attachedfor more details.Historical backgroundTheLIBSsa 1was a software created in the middle of 2017 for my personal use in a LIBS class during my doctorate.
Eventually, many colleagues from theOptics and Photonics LaboratoryatEmbrapa Instrumentation(Sao Carlos, SP, Brazil) enjoyed the application, and I continued developing it until late 2019.At some point, theLIBSsasoftware became an important part of mydoctorate/thesis,
so I decided to restructure it into a new -better- version. Finally, in the middle of 2020,
the development ofLIBSsa 2started.AcknowledgementsThe present software (up to version 2.0.99) was supported by the Coordination for the Improvement
of Higher Education Personnel - Brazil (CAPES) - Finance Code 001, and by the Laboratory of Optics and Photonics
at Embrapa Instrumentation, under the supervision of Dr. Debora Milori.CopyrightYou are free to use and redistribute LIBSsa 2 (and are, in fact, encouraged to do so), provided that
proper credit is given to the developer and/or this repository is mentioned. The software is licensed under the AGPLv3.To ensure the open-source nature of LIBSsa 2 and prevent any attempt to transform it into proprietary software, the source code
of a previous version (2.0.99) has been registered with the Brazilian National Institute of Industrial Property (INPI-BR).
This registration provides an additional layer of protection in accordance with the principles of theTRIPS Agreementand is documented under the process numberBR 51 2023 002165-2.LIBSsa also uses content from other projects: SVG icons are fromFont Awesome, and the logo
is based on thePT_Sans font. License to those content are available in thedoc/open_source_licensesfolder.Developed by:Kleydson Stenio@ 2023