Skip to main content

Applications for high magnetic field analysis

Project description

pymagnetos

Latest Release PyPI Documentation Pipeline Coverage

Collection of Python tools for high magnetic field experiments analysis.

It provides libraries and apps to analyse data acquired at the LNCMI in Toulouse.

Currently available apps :

  • pyuson : for ultra-sound experiments
  • pytdo : for TDO experiments

Those are also available as a library that can be used within custom Python scripts. They use a common framework that can also be used to build other experiment-specific app.

The documention is hosted here.

Installation

For more detailed instructions, see the installation instructions.

Method 1 : as an app

If you plan to just use the graphical user interfaces, consider installing pymagnetos as a tool managed by uv, a modern Python package manager, that will install the required Python version and dependencies.

Method 1 : Click to see instructions
  1. Install uv (see their official installation instructions).
    • 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 shell :
    curl -LsSf https://astral.sh/uv/install.sh | sh
    
  2. From a shell (PowerShell in Windows), install pymagnetos globally :
    uv tool install pymagnetos
    

pymagnetos is now installed along its dependencies in an isolated environment with no risks to mess up with your current tools and Python versions. Its main command, pymagnetos, is made available from any shell.

Update

To upgrade to the latest version, run :

uv tool upgrade pymagnetos

Method 2 : as a library

Installing pymagnetos 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 pymagnetos).

Method 2 : Click to see instructions

From a virtual environment with Python>=3.11, install pymagnetos from PyPI :

pip install pymagnetos

Update

To upgrade to the latest version, run, from the virtual environment :

pip install --upgrade pymagnetos

Usage

Run an app

Once installed, the pymagnetos command should be available from the shell (PowerShell in Windows). You can check its usage with : pymagnetos --help

Which comes down to :

  • Run the app for ultra-sound experiments : pymagnetos pyuson
  • Run the app for TDO experiments : pymagnetos pytdo

Tip : hit the top arrow on the keyboard to show previous commands you ran.

Grab a configuration file template from the configs folder, edit it according to your settings (essentially the path to the data directory) and drag & drop in the app window.

Use in a script

Subpackages (e.g. pyuson or pytdo) can be imported in Python scripts or Jupyter notebooks. There are some examples in the examples folder.

Acknowledgments

pymagnetos is developed in the Laboratoire National des Champs Magnétiques Intenses (LNCMI) in Toulouse, France, with the support of the OSCARS HiMagnetOS project.

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

pymagnetos-0.7.7.tar.gz (87.7 kB view details)

Uploaded Source

Built Distribution

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

pymagnetos-0.7.7-py3-none-any.whl (107.1 kB view details)

Uploaded Python 3

File details

Details for the file pymagnetos-0.7.7.tar.gz.

File metadata

  • Download URL: pymagnetos-0.7.7.tar.gz
  • Upload date:
  • Size: 87.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pymagnetos-0.7.7.tar.gz
Algorithm Hash digest
SHA256 29055d23ac6af6d438b6210e1e9f7ebd0aca97e231f6720e63000be82338d55d
MD5 68fc60c2c177d1783e422fc7d6f4c463
BLAKE2b-256 f367445e704594ee5c5b4d33255adf8f383d214658cf24020e7bf6aa1b4763b4

See more details on using hashes here.

File details

Details for the file pymagnetos-0.7.7-py3-none-any.whl.

File metadata

  • Download URL: pymagnetos-0.7.7-py3-none-any.whl
  • Upload date:
  • Size: 107.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pymagnetos-0.7.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5a5bdeff1c5219d6c08990359b0994404656f9fa2f4c1a4a2343e7497f4ebbe9
MD5 5dcb00d9e87f361afe6494a1f5fe141a
BLAKE2b-256 200716dc746e0a8cf08c3586c07cd4731933fd3a081883e9cc525e2b23785afe

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