Applications for high magnetic field analysis
Project description
pymagnetos
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 :
linx: digital lock-inpyuson: for ultrasound experimentspytdo: 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
- 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
- From a shell (PowerShell in Windows), install
pymagnetosglobally :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 digital lock-in :
pymagnetos linx - Run the app for ultrasound 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymagnetos-0.8b2.tar.gz.
File metadata
- Download URL: pymagnetos-0.8b2.tar.gz
- Upload date:
- Size: 114.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a34782224b4f2c9b9fea8a179ab704655ee076ad7248fd01596be9641ac77269
|
|
| MD5 |
e0a3b91be5151b342e26c8a6ee405369
|
|
| BLAKE2b-256 |
b5b3983bf15c6e0d41a77553566448e1ca0d8e4a05cf0766573698e759268a40
|
File details
Details for the file pymagnetos-0.8b2-py3-none-any.whl.
File metadata
- Download URL: pymagnetos-0.8b2-py3-none-any.whl
- Upload date:
- Size: 140.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1187e9fbd677e5c8cdbfdda70adae1aa3cff1f94d191227939af473be26cfa4
|
|
| MD5 |
a999d634196d9be54b417c0b47aad0c8
|
|
| BLAKE2b-256 |
b33fc1787d28dab39207b3628add8f2a65a0fb0c8c6698dd44d972128405fb0e
|