Skip to main content

License

copyright Manuel Marschall (PTB) 2020

This software is licensed under the BSD-like license:

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

DISCLAIMER

This software was developed at Physikalisch-Technische Bundesanstalt (PTB). The software is made available "as is" free of cost. PTB assumes no responsibility whatsoever for its use by other parties, and makes no guarantees, expressed or implied, about its quality, reliability, safety, suitability or any other characteristic. In no event will PTB be liable for any direct, indirect or consequential damage arising in connection

Using this software in publications requires citing the following paper

Compressed FTIR spectroscopy using low-rank matrix reconstruction DOI: https://doi.org/10.1364/OE.404959

References

This repository contains the python code that is used in the paper

  • [1] Compressed FTIR spectroscopy using low-rank matrix reconstruction, Optics Express Vol. 28, Issue 26, pp. 38762-38772 (2020)

Motivation

Reducing measurement times and datasets by implementing reconstruction methods is a usual mathematical tool. In this project we develop a regularized low-rank matrix recovery algorithm to account for smoothness, sparsity and low-rank properties of the given data.

Installation

To run the library one needs a $\geq$ python 3.6 installation with the python packages

  • numpy
  • scipy
  • matplotlib

Installation using pip

Install via the python package manager pip using

  pip install compressedftir

Basic Python installation

Guides to install python under Linux, Windows and Mac can be found here: https://realpython.com/installing-python/

Quick guide for Python under Windows:

  1. Download Python https://www.python.org/downloads/release/python-382/ (bottom of the page: "Windows x86-64 executable installer")

  2. Install Python using the installer and check "Add Python x.x to Path"

  3. Run a terminal, e.g. CMD

  4. Check the installation by typing

    python
    

    a command prompt should appear such as

    C:\Users\Marschall\Projects\CompressedFTIR>python
    Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>>
    
  5. Close the Python prompt using

    exit()
    
  6. Install dependencies

    python -m pip install numpy scipy matplotlib
    

Implementation details

Some features and important files are mentioned in the following

  • paper_leishmania/run_recon.py is a run script and contains a dummy 2D example using an l-curve criterion for choosing the regularization parameter in a smoothed matrix reconstruction approach. You should get started here. Other scripts in this directory require additional data that are not available online.
  • compressedftir.datareader implements a variety of data formats and can be adapted to your file format
  • compressedftir.reconstruction.lowrank implements the code that is described in the paper [1]

Contact

Please contact manuel.marschall@ptb.de.

Release files for compressedftir 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for compressedftir 0.0.3
File Size Uploaded
compressedftir-0.0.3.tar.gz 82.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for compressedftir 0.0.3
File Interpreter ABI Platform
compressedftir-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 98.3 kB

Release files / compressedftir-0.0.3.tar.gz

Download URL compressedftir-0.0.3.tar.gz
Size 82.3 kB
Tags Source
SHA-256 checksum
How to use checksums
02994813fddab64d578db3739ef82b8e816f545e491c363c19b594c134ea9f17
BLAKE2b-256 checksum
How to use checksums
81bd7e5f29e0f649eb4e954f7fbd6bbbc48f445b06e5f62c559bc5dd58352456
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.7

Release files / compressedftir-0.0.3-py3-none-any.whl

Download URL compressedftir-0.0.3-py3-none-any.whl
Size 16.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e53cb8d1f44e3630eef3d3a95d15051abdbc19ec31aec941fc886eca81d5756
BLAKE2b-256 checksum
How to use checksums
4542999a8d40310a09052015be359af36d92020fc9d2baebe06f88123e187c10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page