Skip to main content

A simple python library for parsing and processing Thermogravimetric analysis (TGA) data.

Project description

pyTGA

pyTGA logo

Description

A simple python library for parsing and processing Thermogravimetric analysis (TGA) data. At the moment, .txt files from Perkin Elmer and Mettler Toledo and excel files from TA Instruments are supported. Work in progress, if you have suggestions or requests please submit an issue.

Test Status License: MIT

⚠️ WARNING: pyTGA is under active development. Please report any issues using the Issue Tracker.

Getting started

New to python and want to use pyTGA?

Here is a quick guide: (Click to expand)

Install a distribution

The easiest way to get started with Python for scientific computing is with Anaconda:

  • Includes Python, package manager, and many scientific libraries
  • Provides a user-friendly interface (Anaconda Navigator)
  • Comes with Jupyter Notebook for interactive analysis
  • Handles most dependencies automatically

Install a code editor

To be able to write and run code, you should use a code editor such as

  • VS Code - a free, open-source editor with excellent Python support
  • Spyder - a scientific environment designed for Python

Learn the basics

There are plenty of online tutorials available. Here are some recommendations:

Learn about the most important libraries

For many applications in science, you won't need much more than these 3 libraries:

  • NumPy - fundamental package for scientific computing in Python
  • pandas - data analysis and manipulation library
  • Matplotlib - comprehensive library for plotting

Installation

Install from PyPI:

pip install pyTGA

Development installation

If you want to install the development version:

  • Clone the repository:
git clone https://github.com/MyonicS/pyTGA
  • Install the package in development mode with dev dependencies by navigating to the cloned repository in your python environment and executing:
pip install -e .[dev]

Usage

Import the package

import pyTGA as tga

Parse a TGA file using

tga_exp = tga.parse_TGA('*path-to-your-file*')

Use the .quickplot method to have a first look at your data:

tga_exp.quickplot()

Access individual stages as pandas DataFrame:

tga_exp.stages['stage1']

Access the data of the whole experiment:

tga_exp.full

To get started, check out the 'Quickstart' notebook here.

Documentation

Full documentation of the package, including example use cases is available here.

You can also download example notebooks from the repository here using example data.

Roadmap

  • support for more manufacturers and file formats
  • unified weight/temperature/time parsing
  • more common processing features (please make suggestions with detailed explanations)

Contributing

Contributions are more than welcome! The easiest way to contribute is to suggest new features as an issue. If you want to contribute code or add to the documentation, fork the repository, implement your changes and submit a pull request. If you have a question, get in touch.

Authors

Sebastian Rejman, Utrecht University

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytga-0.1.1.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytga-0.1.1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file pytga-0.1.1.tar.gz.

File metadata

  • Download URL: pytga-0.1.1.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for pytga-0.1.1.tar.gz
Algorithm Hash digest
SHA256 85563129470d6d5caf6e1f4364705f52df195627095adc8f7ce6e9842ac32915
MD5 92bb1ccadaa1e00bee9030b806e2e0e8
BLAKE2b-256 07bdd30b2bf8a94cf02b5b34c5f044feaf52bfcd21e0443ec7d53a767eeda4ca

See more details on using hashes here.

File details

Details for the file pytga-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pytga-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for pytga-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2a24cf54a1061169b5051c8e7e14cfba4115b328b4ad7fcb8b829679cd58d07a
MD5 11bf9d2d20f4c9e61ad7152165d44339
BLAKE2b-256 2a168dc131ea8b3f720a2534bd030bd266c62b106f5cfcecf9c691076c68423f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page