Functionality for handling magnetometry data of permanent magnets.
Project description
magmeas
Python module enabling the import and handling of VSM-data acquired on a Quantum Design PPMS measurement system. Extrinsic permanent magnet properties can be automatically calculated from M(H) hysteresis loops and exported to YAML- or CSV-files. Basic plotting and export to HDF5 files is also available. The same functionality is available for M(T) measurements, although greater care should be taken. Manual inspection of the derived properties ist always encouraged.
| Description | Badge |
|---|---|
| Tests | |
| Releases | |
| License | |
| DOI |
Installation
Just install with pip:
pip install magmeas
Usage
Input file formatting
For conveniently importing automatically, make sure that the necessary sample properties are given in the .DAT file. The formatting is as follows:
INFO,m,SAMPLE_MASS
INFO,(a, b, c),SAMPLE_SIZE
With m being the sample mass in mg, a and b being the sample dimensions perpendicular to the magnetization axis and c being the sample dimension parallel to the magnetization axis. So far only cuboid samples are supported and the density is assumed to be m / (a * b * c)
Python
As of right now there are four distinct classes that conveniently handle specific types of measurement data:
- VSM: general for all types of VSM measurements
- MH: for all M(H) measurements, still quite unspecific
- MH_major: for major hysteresis loop measurements
- MT: for M(T) measurements
Here is what each of them do at initialisation or automatically with a method:
| VSM | MH | MH_major | MT | |
|---|---|---|---|---|
| import measurement data from Quantum Design .DAT file | ✅ | ✅ | ✅ | ✅ |
| export to HDF5 | ✅ | ✅ | ✅ | ✅ |
| plotting | ❌ | ✅ | ✅ | ✅ |
| calculate properties | ❌ | ❌ | ✅ $H_c$, $M_r$, $BH_{max}$, $H_k$, S, $M_s$ (optional) | ✅ $T_c$ |
| export properties to csv/yml | ❌ | ❌ | ✅ | ✅ |
Additionally, exporting the properties of several MT or MH_major objects together is possible with magmeas.mult_properties_to_file. Plotting of several MH_major objects together in one graph is conveniently done with magmeas.plot_mult_MH_major.
Documentation is mainly available in the form of detailed docstrings. Just use help(magmeas.VSM) or similar to get more information.
Command line
Some basic functionality is also available in the form of a command line interface. Get more information with:
magmeas -h
Dependencies
Requires Python >= 3.11 due to dependencies
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
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 magmeas-0.4.4.tar.gz.
File metadata
- Download URL: magmeas-0.4.4.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b64d65e1075c25a3a85cfb5ef0bfea77c7d805aa2dfb16d077dfa22b7d3d72cd
|
|
| MD5 |
cdeb2fc7ed3eea4b6e6ae8d0b9ea8bce
|
|
| BLAKE2b-256 |
1b23d3c342127f7a3f078a8e508c2db210e3c693be313217039da24bd2a912fb
|
File details
Details for the file magmeas-0.4.4-py3-none-any.whl.
File metadata
- Download URL: magmeas-0.4.4-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12d41facba9de6f3623863a539640d654f6054c43bdf8b9caa24a134e850e49c
|
|
| MD5 |
36e337395678c0ea3f62a0ceff9e48ee
|
|
| BLAKE2b-256 |
683e3b5fa270e4e7c80f7be59496a81d39d85df73ca0be443df3f1a74731224c
|