Skip to main content

Add your description here

Project description

pytdo

Latest Release PyPI

Description

pytdo provides a Python API to read and analyse tunnel diode oscillator experiments on samples exposed to a high magnetic field. It is bundled with a graphical user interface written with PyQt.

Installation

As an app

If you plan to just use the graphical user interface, consider installing pytdo as a tool managed by uv, a modern Python package manager.

To do so, install uv : https://docs.astral.sh/uv/getting-started/installation/.

Then, from the command line (PowerShell in Windows), install pytdo with uv :

uv tool install pytdo

pytdo will be installed along its dependencies in an isolated environment with no risks to mess up with your current tools and Python versions.

Then, launch the GUI by running pytdo from the command line.

To update, run : uv tool upgrade pytdo.

As a library

Installing pytdo as a library will allow you to use it from scripts and Jupyter notebooks (e.g. you will be able to import it with import pytdo). Note that you can re-use the same environment than the one for pyuson.

  1. Create a Python environment :

    With conda :

    conda create -n pytdo-env -c conda-forge python=3.12
    

    You may replace the environment name pytdo-env with whatever you want.

    Activate the environment with :

    conda activate pytdo-env
    
  2. Install the pytdo package :

    With pip, with the pytdo-env activated :

    pip install pytdo
    

Updates

To upgrade pytdo to the latest version, simply run from the activated environment :

pip install pytdo --upgrade

Manual download

  1. Download the repository and extract it on your computer (or clone it).
  2. Create and activate a conda environment as shown above.
  3. Install the extracted repository with pip :
pip install "/path/to/pytdo-main"

Alternatively, if you wish to make modification to the source code so that your change is reflected immediately, use the editable mode :

pip install -e /path/to/pytdo-main

Usage

You can use this package through the graphical user interface, or directly from Python prompt, script or Jupyter notebook using the Processor classes. All this methods rely on a TOML configuration file that specifies the experiment parameters and analysis settings.

A template configuration file is provided in the configs folder. Copy-paste and edit it according to your need. Each entry of the file is commented so it should be somewhat straightforward to configure. Then :

  • Run the graphical interface with python -m pytdo from a terminal with the pyuson-env environment activated. Drag & drop the configuration file in the window, load the data, extract the TDO signal and interactively choose the field-window in which the signal is detrended.
  • Write your own script using the library :
    import pytdo
    
    cfg_filename = "/path/to/your/config.toml"
    r = pytdo.TDOProcessor(cfg_filename)
    r.extract_tdo().remove_background().fft_inverse()
    r.save_results_csv()
    

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

pytdo-0.2.2.2.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

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

pytdo-0.2.2.2-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file pytdo-0.2.2.2.tar.gz.

File metadata

  • Download URL: pytdo-0.2.2.2.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pytdo-0.2.2.2.tar.gz
Algorithm Hash digest
SHA256 ab345dde17ca4b626e6f4eb8aea913350c9623d1d2094c92baf6220f48685c00
MD5 3be282dd5fb1162c2384d82acc2c0c98
BLAKE2b-256 c39fdab58d45d1ceea6055607d8075c58f38912c0bccb0903b2e949e9119026f

See more details on using hashes here.

File details

Details for the file pytdo-0.2.2.2-py3-none-any.whl.

File metadata

  • Download URL: pytdo-0.2.2.2-py3-none-any.whl
  • Upload date:
  • Size: 27.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pytdo-0.2.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c3a4341318c5c78e5f78d54480561c3f8b03f9246d0da1c43a8ee97c716d90c9
MD5 a34ab6c5f33b9c26a96805af34ae98c5
BLAKE2b-256 0c37add211ec1c916bab5f936431fcabcb82812ee8d97c1dc3fb3cdb17e109b7

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