Skip to main content

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

Method 1 : 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 (see the official installation instructions : https://docs.astral.sh/uv/getting-started/installation/) :

  • On Windows, enter the following command in PowerShell :
    powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
    
  • On Linux and MacOS, enter the following in a terminal :
    curl -LsSf https://astral.sh/uv/install.sh | sh
    

Once uv is installed, 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.

Method 2 : As a library

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

  1. Create a Python environment with Python 3.12 :

    You can use your favorite Python environment manager. With conda, this would be :

    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 the Python shell, script or Jupyter notebook using the TDOProcessor class. 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()
    

Metadata

Release files for pytdo 0.2.11

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

Source distribution (sdist)

Source distribution for pytdo 0.2.11
File Size Uploaded Provenance Actions
pytdo-0.2.11.tar.gz 23.2 kB Without provenance Details for pytdo-0.2.11.tar.gz

Built distribution (wheel)

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

Total release size: 52.7 kB

Release files / pytdo-0.2.11.tar.gz

Download URL pytdo-0.2.11.tar.gz
Size 23.2 kB
Tags Source
SHA-256 checksum
How to use checksums
567ad3cc9ff601116596bd69e02379f823a3a38ed1d089d50712918680e6c1a3
BLAKE2b-256 checksum
How to use checksums
cf24c4f89431bc6ba563cb0cc33bc86c2c8af68e50b81ec8c1cc9be00854670c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","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}

Release files / pytdo-0.2.11-py3-none-any.whl

Download URL pytdo-0.2.11-py3-none-any.whl
Size 29.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b787d55a972ceb33beba5610fd928b46607dde34cc2d96e6e3363fb49390a388
BLAKE2b-256 checksum
How to use checksums
feda878eb3b41ecd425b8c29a891f002b78178d2d6f5e4acfaf4fd19a1000d39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","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}

Security for pytdo 0.2.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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