Repository navigation
-
New features:
- Detector
orientationis now a pure re-indexing of the pixels.
For orientation != 3,tth,qandrare unchanged.chiand the fiber/grazing-incidence units could (WIP). - New
pyFAI.geometry.utilswithconvert_orientation, to re-express a geometry in another detector orientation,
anddetector_corner, which reads the real corners of the detector from its pixel corners. - Conversion to and from the ImageD11 parameter-file now takes the orientation of the detector into account (#2896)
- New
pyFAI.detectors.multi_module: refinement of the position of the individual modules of a detector from powder rings
recorded at several beam-center positions, following the method developed at ID11 (doi:10.3390/cryst12020255). NexusDetectornow handles the sensor configuration, the spline-based and other non-regular detectors (#2915)PoniFile, which is intentionally immutable, gains a copy-with API:poni.with_params(dist=..., rot1=...)and onewith_<parameter>method per geometry parameter- New
auto_gcoption, which disables the garbage collector around the resets of the geometry (#2894 Thanks for Wilson for spotting it) - Better performances for the MultiGeometry integration (#2865)
- New and updated calibrants: Verneite, the two references of
alpha_Al2O3_SRM676a(2008 and 2015 lattice parameters, #2856) andCeO2, recalculated with many more reflections (#2899). pyFAI.method_registry.Methodis now a typedNamedTuplewhich validates and normalizes its content at construction time:
Noneis now the canonical wildcard; the former spellings"*","any","all"and0are still accepted as input.
It gains one copy-with method per field, likePoniFile:with_dim,with_split,with_algo,with_implandwith_target,
as well as aMethod.parse_anyconstructor which accepts about any description of a method (#2757)
- Detector
-
Bug fixes:
DiffMap.use_gpuused to assign the implementation to the dimensionality of the method, which silently built
an inconsistent method and left the implementation unchangedWorkerConfig.methodis now enforced to be an immutableMethod, whatever it is built from: a de-serialized
JSON configuration provides a plain list, which used to be stored as is, hence mutable and unhashable (#2757).
The dimensionality and the OpenCL device are no longer duplicated in it: they are read fromnbpt_azim
andopencl_device, which remain the single source of truth. The serialized format is unchanged.Worker.methodgets the same treatment and is now aMethodas well, whichever constructor is used;
Worker.set_methodstores its result and rebuilds the processor, so that it takes effect immediately.- Sub-pixel refinement of the peak position (
Bilinear.local_maxi, used by themassifandwatershedpeak-pickers): the calibrations become more accurate. - Change of behavior of
Calibrantwhich raisesValueErrorwhen a file exist but does not d-spacing info /IOErrorwhen absent - Fix serialization issue with Rayonix detectors (regression introduced with parallax, #2904)
- Fix hang when changing detector (size) after a first calibration or inconsistent detector shape (#2890)
- Fix
from pyFAI import *and submodules:__all__contained objects instead of their names - The
emptyvalue is now propagated to every integrator and registered in the results inMultiGeometry - Fix the multiplicity of the reflections and the selection of the canonical
hklequivalent (#2883) pyFAI-integrate --no-guino longer loses themonitor_nameset in the JSON configuration (#2892, thanks to Jordi Aguilar)BlobDetection: fix aRuntimeErrorraised on some images (#2876)- Goniometer: more explicit traceback (#2871) and fix of the iteration over the control points (#2869)
- Compatibility with numpy 2.5, where setting the shape of an ndarray is deprecated (#2872) and
numpy.crosschanged behavior; fix a casting issue with numexpr (#2860) bootstrap.pyno longer mistakes a file for the build directory (#2886)
-
Documentation:
- New tutorial on modular detector calibration based on Debye-Scherrer rings (ID11's method)
- New tutorial on the calibration of an eccentric goniometer
- New chapter on the extraction of the control points, describing the three peak-picking algorithms and the sub-pixel refinement they share
- New tools to rebuild all tutorials, and all notebooks have been re-executed
- Deprecation warnings removed from the tutorials, in particular
scipy.spatial.distance_matrixreplaced byscipy.spatial.distance.cdist(#2910)
-
Code quality:
- Large Ruff clean-up over
src/,ruff checkenforced in pre-commit (>=0.16) - Tests are by default without GUI display on Linux & MacOS, much cleaner now
- Cython compilation warnings removed
- Large Ruff clean-up over
-
Addition of a AGENTS.md to drive agentic development: it states that an agent/LLM is never responsible for an error;
the owner of the account committing is the culprit for not reviewing properly the code. -
215 commits over 4 month
-
Supports python 3.10-3.15