Repository navigation
pyFAI v2026.09 #2941
kif
announced in
Announcements
pyFAI v2026.09
#2941
Replies: 1 comment
|
The version for python 3.15 will be published in October, when the official version comes out. Note that this version has been tested on 3.15.0rc1 and 3.15.0rc2 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
New features:
orientationis now a pure re-indexing of the pixels.For orientation != 3,
tth,qandrare unchanged.chiand the fiber/grazing-incidence units could (WIP).pyFAI.geometry.utilswithconvert_orientation, to re-express a geometry in another detector orientation,and
detector_corner, which reads the real corners of the detector from its pixel corners.pyFAI.detectors.multi_module: refinement of the position of the individual modules of a detector from powder ringsrecorded 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 (pyFAI-calib2: Error when saving poni with sensor material and detector definition from file #2915)PoniFile, which is intentionally immutable, gains a copy-with API:poni.with_params(dist=..., rot1=...)and onewith_<parameter>method per geometry parameterauto_gcoption, which disables the garbage collector around the resets of the geometry (ai.rot2 = valueis super slow ... #2894 Thanks for Wilson for spotting it)alpha_Al2O3_SRM676a(2008 and 2015 lattice parameters, Check reflection 13 in Corundum #2856) andCeO2, recalculated with many more reflections (Check ring #51 in CeO2 calibrant #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, like
PoniFile:with_dim,with_split,with_algo,with_implandwith_target,as well as a
Method.parse_anyconstructor which accepts about any description of a method (Method inWorkerConfigshould always be a tuple #2757)Bug fixes:
DiffMap.use_gpuused to assign the implementation to the dimensionality of the method, which silently builtan inconsistent method and left the implementation unchanged
WorkerConfig.methodis now enforced to be an immutableMethod, whatever it is built from: a de-serializedJSON configuration provides a plain list, which used to be stored as is, hence mutable and unhashable (Method in
WorkerConfigshould always be a tuple #2757).The dimensionality and the OpenCL device are no longer duplicated in it: they are read from
nbpt_azimand
opencl_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.Bilinear.local_maxi, used by themassifandwatershedpeak-pickers): the calibrations become more accurate.Calibrantwhich raisesValueErrorwhen a file exist but does not d-spacing info /IOErrorwhen absentfrom pyFAI import *and submodules:__all__contained objects instead of their namesemptyvalue is now propagated to every integrator and registered in the results inMultiGeometryhklequivalent (implement the selection of the proper hkl equivalent #2883)pyFAI-integrate --no-guino longer loses themonitor_nameset in the JSON configuration (Fix monitor_name override in pyFAI-integrate --no-gui #2892, thanks to Jordi Aguilar)BlobDetection: fix aRuntimeErrorraised on some images (runtimerror in BlobDetection #2876)numpy.crosschanged behavior; fix a casting issue with numexpr (numexprregression #2860)bootstrap.pyno longer mistakes a file for the build directory (Bootstrap randomly fails on windows #2886)Documentation:
scipy.spatial.distance_matrixreplaced byscipy.spatial.distance.cdist(Deprecation warnings in documentation: #2910)Code quality:
src/,ruff checkenforced in pre-commit (>=0.16)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
This discussion was created from the release pyFAI v2026.09.
All reactions