magmeas
Python module enabling the import and handling of VSM-data acquired on a Quantum Design PPMS/DynaCool/Versalab measurement system.
| Description | Badge |
|---|---|
| Tests | |
| Releases | |
| License | |
| DOI |
Installation
Just install from PyPI:
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
There are four distinct classes that conveniently handle specific types of measurement data:
VSM: general for all types of VSM measurementsMH: for all M(H) measurements, still quite unspecificMH_major: for major hysteresis loop measurementsMT: 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 measurement data to csv/yml/hdf5 | ✅ | ✅ | ✅ | ✅ |
| plotting | ❌ | ✅ | ✅ | ✅ |
| calculate properties | ❌ | ❌ | ✅ $H_c$, $M_r$, $BH_{max}$, $H_k$, S, $M_s$ (optional) | ✅ $T_c$ |
| export properties to csv/yml/hdf5 | ❌ | ❌ | ✅ | ✅ |
Experimental support for Recoil-loop- and FORC-measurements is also provided in their respective classes.
All classes inherit from the EntityCollection class in mammos-entity, using its io functionality. In doing so, they can conveniently be added to a new EntityCollection with magmeas.to_batch, benefitting from the nested structure in these objects even for data export.
Plotting of the above highlighted classes is very flexible. Common keyword arguments used in matplotlibs functions can be used. VSM-derived objects can either be plotted to pre-existing matplotlib figures and axes, or they dynamically generate new ones and return them for subsequent formatting.
Documentation is mainly available in the form of detailed docstrings. Just use dir(magmeas) and help(magmeas.VSM) or similar to get more information.
Requires Python >= 3.11 due to dependencies
Metadata
Release files for magmeas 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| magmeas-0.5.1.tar.gz | 22.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| magmeas-0.5.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.3 kB
Release files / magmeas-0.5.1.tar.gz
| Download URL | magmeas-0.5.1.tar.gz |
|---|---|
| Size | 22.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8dde3cfab9135984bbd476114dbbe73e7164d631673dbc7509dfe8233d19d302
|
|
BLAKE2b-256 checksum How to use checksums |
38e39aad3e06fd7414118f1bdbddd773bce3de4be9bf020873dfd7c8320b2fdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / magmeas-0.5.1-py3-none-any.whl
| Download URL | magmeas-0.5.1-py3-none-any.whl |
|---|---|
| Size | 18.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9781bae05c25e705dbd3156ac543a6c8689eb1771d7d3143d58f139ff4e6d177
|
|
BLAKE2b-256 checksum How to use checksums |
a377ef718d8fb099b79e03054cda954276518f7b4f3c56758c3dd7ad586731c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|