Loading...
Loading...
Contributors:
Dataset URI:
10.5281/zenodo.23736361Magnet Verification and Mapping Tool v1.0.0: code and small Halbach field measurements Author: Marcel Ochsendorf, Institute of Imaging & Computer Vision (LfB), RWTH Aachen University Version: 1.0.0 (record assembled 2026-10-28) Code revision: git commit 80eebb464f842bec87a345d22a8b9b952d91e2b1 (2026-10-24) License: TODO: choose one in the Zenodo upload form. The repository has no LICENSE file yet. This record contains two things: Code: the source of the Magnet Verification and Mapping Tool. This is a bench application that aligns a Fairino robot to a 3D-printed magnet holder ("shell"/"slice") by force/torque probing, moves a Hall probe on a calibrated rod-tip TCP to planned poses, and records magnetic-field measurements around single magnets, whole slices, and the field of view (FOV) of an assembled magnet stack. Dataset: every field measurement the tool recorded on the small Halbach test magnet (small_halbach_ideal), in the tool's documented, self-contained export format. No other magnet design is included. Files The record is flat. All files sit at the top level. File Size Content README.md — This description magnet-verificationandmappingtool-v1.0.0.zip 54.4 MB Source code at the commit above (224 files, 101.6 MB unpacked). It is a git archive of the repository and unpacks into one folder small_halbach_ideal.measurement-export.json.gz 45.3 MB The dataset: all 32 measurement runs and all 16,225 measurement records of the small Halbach design (412.6 MB unpacked JSON) small_halbach_ideal.magnet-design.json 11.9 MB Design file: 8 slices, 128 magnet pockets, shell meshes (also embedded in the export) small_halbach_ideal.magnet-fov.json 0.7 MB Field-of-view definition with the analytic target field (also embedded in the export) magnet-measurement-export.md 21 KB Specification of the export format (magnet-measurement-export, version 1) magnet-measurement-export.schema.json 21 KB JSON Schema of the export format The code archive contains the files that magnet-measurement-export.md refers to by path, such as data/designs/_magnet-design.schema.json, data/designs/_magnet-fov.schema.json and docs/formats/magnet-fov-format.md. SHA-256 checksums: 055b6016a7b33a73b9e696bd207f9774eeafed5a6058e1193df40e28297cde64 magnet-verificationandmappingtool-v1.0.0.zip 8b7f8d82af744d6ff268a2c689ba2a74bd95771251430eab4256f2d75b46c99c small_halbach_ideal.measurement-export.json.gz 1aa84081e792996ca5f92b7065362511cce244d6fba9f9d491c647070060b946 small_halbach_ideal.magnet-design.json 2d97378cefc2fb30067b550227283aa1c0c3c84be585e0c42740fa8723904812 small_halbach_ideal.magnet-fov.json 7ca9dde7c308a1fc4f6cbfd910a4605981effad421390ca3e22d86c8e5eb88e4 magnet-measurement-export.md faca8c5231df5c6de482cf01faab80271fbc79aeac2ece0cb8d267b5987c801d magnet-measurement-export.schema.json The measured magnet small_halbach_ideal is an ideal k = 1 Halbach ring made of 8 identical slices with 16 cubes each: 128 cubes of 12 mm N42 (Br 1.31 T), with magnetization at 2φ. B0 points along +x and the bore axis is z. The design targets B0 = 30.0 mT with 149.9 ppm peak-to-peak homogeneity over a 50 mm DSV, at a ring radius of 79.232 mm. Each slice is a printed holder with 16 hexagonal magnet holders, and magnets are inserted from the top (−z). Magnet IDs follow 100 × slice + position_in_slice, so magnets 101–116 sit in slice I and 201–216 in slice II. The measurements cover slices I and II (shells 1 and 2) of the 8-slice design: each slice on its own, and the stack of slices I + II. The FOV results therefore describe a partly assembled magnet, not the 30 mT target. Design identity: design_hash = ab222331f688a9222be0c2f7231bcad3b4d9b420e37c7e959544deedcf998fd6. Measurement setup Robot: Fairino 6-axis arm with a force/torque sensor. The part pose (robot_T_part) is taught by probing the holder ("Easy Alignment") and is stored per run in scans[].alignment. Field probe: an Infineon TLV493D 3-axis Hall sensor on the rod tip (sensor_capture). Each point is averaged (average_count) and oversampled (oversampling). An affine sensor-to-tool calibration (hall_calibrated_field) maps the raw vector into the tool, robot-base and part frames. Drift reference: a second, stationary TLV493D (thermal_drift_sensor_capture). It is read with every point, and its |B| relative to the run's first reading gives a multiplicative correction for remanence drift (drift_correction, method thermal_reference_ratio). All 16,222 run records carry this correction. Reference revisits: shell scans return to a fixed reference magnet at regular intervals (target.kind = "shell_reference"), so drift and repeatability can be checked within a run. Measurement period: 2026-10-13 13:34 UTC to 2026-10-24 19:20 UTC. Measurement runs The export holds every run of the design that was not running at export time (scope.selection = "all"), including stopped and failed runs and the data they recorded before they ended. latest (✓) marks the run that the tool treats as current for each slice or stack. A reader that wants one run per slice or stack can keep only those. shell_field: a dense field map over a single slice: around every magnet at several heights, plus interior fill points and reference revisits. fov: a map of a spherical field-of-view region of the stacked slices, with a spherical-harmonic fit (scans[].fov). The fitted region is also appended to fov.measured_regions in the FOV file format. Run Slice / stack Type Status Records Latest Started (UTC) Ended (UTC) scan-ace79db59b3a slice 1 shell_field failed 11 2026-10-13 13:42 2026-10-13 13:44 scan-a3a30f84c78e slice 1 shell_field stopped 242 2026-10-13 14:57 2026-10-13 15:25 scan-30871cb17a7c slice 1 shell_field stopped 19 2026-10-13 15:26 2026-10-13 15:27 scan-f0af8b1a29b6 slice 1 shell_field completed 350 2026-10-13 15:28 2026-10-13 15:54 scan-29cd1a936a80 slice 1 shell_field completed 417 2026-10-13 16:04 2026-10-13 16:31 scan-fa8c1a884730 slice 1 shell_field failed 0 2026-10-20 12:43 2026-10-20 12:43 scan-98924b278df4 slice 1 shell_field completed 1947 2026-10-21 15:56 2026-10-21 18:30 scan-093a8c37a48a slice 1 shell_field failed 0 2026-10-24 13:36 2026-10-24 13:36 scan-ef7caa67c2f9 slice 1 shell_field completed 679 ✓ 2026-10-24 13:54 2026-10-24 14:42 scan-ad74068d7f41 slice 2 shell_field stopped 1 2026-10-14 15:45 2026-10-14 15:45 scan-b0c5d95174bb slice 2 shell_field stopped 1 2026-10-14 15:45 2026-10-14 15:45 scan-73a9b694bf9e slice 2 shell_field completed 415 2026-10-14 15:45 2026-10-14 16:19 scan-fce0a51c6920 slice 2 shell_field failed 42 2026-10-22 07:46 2026-10-22 07:50 scan-2b78046187c1 slice 2 shell_field completed 3093 2026-10-22 08:27 2026-10-22 11:53 scan-86886dba93f4 slice 2 shell_field failed 1012 2026-10-22 12:04 2026-10-22 13:12 scan-e2dbfcb1db70 slice 2 shell_field failed 1012 2026-10-22 13:40 2026-10-22 14:47 scan-b3b9d5d09889 slice 2 shell_field failed 0 2026-10-22 15:30 2026-10-22 15:30 scan-4c4227e13da3 slice 2 shell_field completed 3093 2026-10-22 22:50 2026-10-23 02:16 scan-4ee81157c525 slice 2 shell_field completed 675 2026-10-24 14:48 2026-10-24 15:36 scan-ed9d9842f110 slice 2 shell_field stopped 2 2026-10-24 18:21 2026-10-24 18:22 scan-b01e8152b8bc slice 2 shell_field failed 0 2026-10-24 18:27 2026-10-24 18:27 scan-2f529ed27049 slice 2 shell_field stopped 2 2026-10-24 18:29 2026-10-24 18:29 scan-daeeeb576f47 slice 2 shell_field completed 675 ✓ 2026-10-24 18:29 2026-10-24 19:20 scan-b54bc16eabb3 stack 1 fov completed 0 2026-10-21 18:42 2026-10-21 18:42 scan-b2f7f94a599f stack 1 fov completed 0 2026-10-21 18:56 2026-10-21 18:56 scan-ee80e327a5ea stack 1 fov completed 0 2026-10-21 19:04 2026-10-21 19:05 scan-8abbb3417aec stack 1 fov completed 0 2026-10-21 19:06 2026-10-21 19:07 scan-0422ab703ba4 stack 1 fov completed 174 ✓ 2026-10-21 20:14 2026-10-21 20:28 scan-cc608577d321 stack 1+2 fov completed 590 2026-10-23 10:24 2026-10-23 11:02 scan-3a6eb15c1475 stack 1+2 fov completed 590 2026-10-24 15:37 2026-10-24 16:18 scan-0db0a2658a6a stack 1+2 fov completed 590 2026-10-24 16:19 2026-10-24 17:00 scan-0b06d58c4ebf stack 1+2 fov completed 590 ✓ 2026-10-24 17:03 2026-10-24 17:41 The four FOV runs with 0 records skipped every planned point as unreachable at the fixed probe yaw (skipped_point_indexes). Three more records were captured by hand outside any run and are stored in other_measurements. Data format small_halbach_ideal.measurement-export.json.gz is one gzip-compressed JSON document. It follows magnet-measurement-export version 1, which is specified in magnet-measurement-export.md and validated against magnet-measurement-export.schema.json. The main members are: Member Content design, design_hash The full design file (pocket positions, magnetization directions, shell meshes) fov FOV definition, its binding to the design, and measured_regions derived from the FOV runs configuration Hardware settings, measurement-plan settings and drift-correction limits calibrations hall: the two Hall sensor calibrations the records use (hall-46f3b81cc02b, hall-64d3b7ff4620). archive: the calibration active at export time, with the logged steps of its calibration run alignment Alignment state of the bench (taught points per slice) insertion Insertion logs: which magnet went into which pocket, and when index Every run grouped by slice/stack, with the latest run of each group scans[] One entry per run: plan, points, alignment (robot_T_part), magnets, drift_correction summary, fov analysis (FOV runs), and measurements[] other_measurements Manual captures that belong to no run Main fields of a record in scans[].measurements[]: Field Unit / frame Meaning probe_pose.position, probe_pose.basis mm, part frame Where the sensor was, computed from the robot pose and the alignment planned_position_part mm, part frame The planned point robot_pose mm and deg (Fairino RPY), robot base The measured TCP pose sensor_capture µT per axis, absolute_value_mT in mT Averaged raw Hall reading, including sensor temperature hall_calibrated_field.part_vector µT, part frame The calibrated field vector. Also available as sensor_vector_raw, tool_vector and robot_base_vector drift_correction.corrected.field_vectors_mT.part mT, part frame The calibrated vector after drift correction thermal_drift_sensor_capture mT Reading of the drift reference sensor target, idx, shell — What the point belongs to: magnet pocket, fill grid or reference revisit ts ISO 8601 UTC Time of the capture Raw readings are never overwritten. Calibration and drift correction are added alongside them, so both steps can be redone with different choices. 2 of the 16,222 run records have no calibrated vector (hall_calibrated_field is empty). Reading the data (Python, standard library only) import gzip, json with gzip.open("small_halbach_ideal.measurement-export.json.gz", "rt", encoding="utf-8") as fh: export = json.load(fh) for scan in export["scans"]: if not scan["latest"]: # keep only the current run per slice / stack continue for m in scan["measurements"]: position_mm = m["probe_pose"]["position"] # part frame b_uT = (m.get("hall_calibrated_field") or {}).get("part_vector") # calibrated, µT b_mT = ((m.get("drift_correction") or {}).get("corrected") or {}) \ .get("field_vectors_mT", {}).get("part") # + drift-corrected, mT print(scan["id"], m["idx"], position_mm, b_mT) Code The archive magnet-verificationandmappingtool-v1.0.0.zip contains the whole repository at commit 80eebb4: the Python backend (standard library only), the browser UI with vendored three.js, the tests, the design and format documentation, and CAD files and photos of the measurement rig (docs/). The repository's own README.md in the archive documents the workflow, hardware configuration, calibration, alignment, measurement planning, FOV analysis and data files in detail. unzip magnet-verificationandmappingtool-v1.0.0.zip cd magnet-verificationandmappingtool-v1.0.0 python3 serve.py data/designs/small_halbach_ideal.magnet-design.json \ --no-robot-auto-connect --no-field-sensor-auto-connect --open # http://localhost:8500/ python3 -m unittest discover -s tests -t . # test suite Without the robot and the sensor the server still loads designs and plans scans, but it cannot measure. Tested with Python 3.12, the version the included Dockerfile uses. Node.js is needed only for the JavaScript tests. Provenance The dataset export was produced with the code in this record, at the same commit that is stored in the export's generator.git_commit. It was built with measurement_export.build_export(cfg, selection="all") on a read-only copy of the bench's SQLite store for this design. This is the same code path the running tool serves as GET /api/export?scans=all&gzip=1. The export is validated against its schema when it is built. exported_at = 2026-10-28T19:05:02Z. Third-party components in the code archive ui/vendor/three.min.js, OrbitControls.js, STLLoader.js: three.js r128, MIT license. magnetmeasurementgantry/: vendored host tools from the LfB magnetmeasurementgantryfirmware project, MIT license (see magnetmeasurementgantry/UPSTREAM.md).
Keyword(s):
MeSH Term(s):
Grants and Funding:
No Grants or Funding Data Available
Associated Publication(s):
No Associated Publication Data Available
Supplementary Data:
No Supplementary Data Available
Related Dataset(s):
No Related Dataset Data Available
The National Library of Medicine (NLM) provides information about biomedical datasets. Inclusion on an NLM Web page does not imply endorsement of, or agreement with, the contents by NLM or the National Institutes of Health. Learn more: NLM Web Policies (nih.gov)