- Add mcd outlier rejection for stills, and add new options for mcd coordinates (xy vs. radial and transverse) (#2676)
dials.modify_experiments: new command that replacesdials.modify_geometryand allows changes to crystal models. (#2936)dials.import: Expand recursive wildcards (./some/**/*.h5). (#2957)- Time-of-flight data: Ellipse and Seed Skewness foreground/background masking algorithms added. (#2964)
- Laue spot finding: Add wrapper that adds initial wavelengths to reflections. (#2972)
dials.index: Enableindexing.method=low_res_spot_matchfor polychromatic data. (#2984)dials.index: EnablePinkIndexerto be used with joint indexing and with polychromatic experiments. (#2985)dials.find_spots: Add filter for time-of-flight data, to filter out spots within close proximity in reciprocal space. (#2986)- Automatically use gzip-compressed reflection tables by setting the environment variable
DIALS_USE_GZIP_REFL. (#2987) dials.correlation_matrix: Optimise the input parameters to OPTICS, for better detection of clusters. (#2999)dials.generate_mask: Added a new option,merge_imageset_mask, to merge pixel mask(s) defined in the ImageSet, such as a mask from the dxtbx class and a mask specified during import. (#3034)dials.combine_experiments: Add pathname/image index sorting. (#3036)
dials.import: Allow per-shot wavelength variations inconvert_stills_to_sequence=true. (#2865)dials.index: Do not lose the experiment historydials.export: Always write timestamps in UTC. Also capture processing history lines fordials.integrateanddials.scalefor later addition to the MTZ Appendix, or similar. (#2924)- Time-of-flight: Fix mismatch between calculated values for reflections generated from indexing, and those from integration. (#2968)
dials.find_spots: No longer write out an emptystrong.reflif no reflections are found. (#2969)- Add extra checks for Scans having oscillation values in
centroid_px_to_mm_panelandIndexer._xyzcal_mm_to_px. (#2973) - Remove
beam.get_s0()calls from geometry_viewer and reciprocal lattice viewer, to allow these to be used with experiments containing PolychromaticBeams. (#2981) dials.refine_bravais_settings: Only refine the crystal model by default, not the detector and beam too. (#2983)dials.export format=xds: Ensure onlystrongreflections are exported inSPOT.XDSand reverse-sort by intensity. (#2988)dials.search_beam_position: Projection methods now work for each detector separately. (#2993)dials.stills_process: Bugfix for multiprocessing mode. (#2995)dials.split_experiments: Report number of reflections in each output file. (#3015)dials.estimate_resolution: Don't output a large plot dict to the end of stdout. (#3018)- Enable parallel building in
bootstrap.pyinstalls on Unix machines. (#3027) - Fix all search_beam_position projection methods to work with the average diffraction image (#3045)
- Update the instructions in the DPF3 Part 2: A question of centring tutorial. (#3006)
- Remove an outdated multi-lattice tutorial that uses BLEND. (#3031)
dials.modify_geometryis deprecated (usedials.modify_experimentsinstead). (#2936)
This release contains a number of new features for multi-crystal processing.
- The dials.import_xds program has been significantly updated; given an INTEGRATE.HKL and XDS.INP from XDS processing, one can now convert these to DIALS data files that can be used in xia2.multiplex and other DIALS data reduction tools. See https://dials.github.io/documentation/programs/dials_import_xds.html for the program documentation.
- xia2.multiplex now generates unmerged mmcif files that are suitable for deposition of unmerged data.
- Improvements have been made to the xia2.multiplex log output (better logging of progress and individual logs for more DIALS programs) and runtime performance has been improved for large datasets.
dials.reflection_viewer: Report reflection table columns on launch. (#2912)dials.index: Allow a trial crystal to be specified by full setting matrixA=UB. (#2939)- DIALS is now NumPy 2.0+ compatible. (#2942)
- Python 3.13 is now supported, and is the default version in
bootstrap.py. (#2946)
dials.ssx_integrate: Do not output a reflection file if no reflections were integrated. (#2804)- Updated test suite to use data from
dials-datarather thandials_regression, meaning that much more of the test suite can be run outside of Diamond. (#2907) dials.search_beam_position: Fix printing of the beam center. (#2910)dials.import_xds: Reworked the import from INTEGRATE.HKL to have a more complete matchup between the data provided in that file and the reflection list expected by DIALS. (#2914)dials.index: Avoid test failure when theffbidxpackage is not functional. (#2923)dials.export: Ensure mmcif output contains the same reflections as mtz output by default. (#2929)dials.import_xds: Clarify expected inputs and improve program structure and output. (#2938)dials.import_xds: Fill xyzobs column values for xds unobserved reflections (i.e. not strong). (#2950)dials.import_xds: Warn the user ifXDS.INPis not found, but a case-insensitive variant is present. (#2951)- Make mmcif citations correct for import_xds and ssx data processing. (#2955)
- The
dials_regressionfixture for tests is removed, as no tests use this repository any more. (#2919)
No significant changes.
Internal release to fix generation of release-tagged docker images.
- Add missing implementation in multi-dataset-handling OrderedSet. This caused a crash running
xia2.ssx_reduce. (#2916)
dials.index: Separately report unindexed reflection counts for reflections away from ice regions. (#2827)dials.cosym: Add the optionoutput.excluded=Trueto set aside the data sets that cosym rejected, so that these can more easily be investigated separately. (#2854)dials.image_viewer: Support iso-resolution lines (circles, ellipses, hyperbola) on non-coplanar and/or two_theta != 0 detectors. (#2867)dials.correlation_matrix: Hierarchical clustering now defaults to Ward linkages. (#2876)dials.cluster_unit_cell: Add option to use Ward linkage, rather than single linkage. (#2884)dials.correlation_matrix: Perform principal component analysis on optimised cosym coordinates. Coordinate plots now rotated by principal components. Add a new matrix-style plot for displaying all projections at once. (#2885)
- Switch from using unmaintained
orderedsettoordered_set(#2749) dials.find_spots: Prevent masked pixels from causing a "halo" of excluded pixels around them when usingthreashold.algorithm=extended_dispersion(the default). This previously caused strong pixels to be excluded from module edges and incorrectly classed strong pixels as background if close to masked pixels. (#2790)dials.ssx_index: Fix crash when processing stills with no scan objects. (#2841)dials.export format=mosflm: Do not write a DIRECTORY line if the image files do not exist (#2845)dials.cluster_unit_cell: output each singleton point group and unit cell on its own line. (#2850)dials.cluster_unit_cell: Use logging rather than print for output. (#2852)dials.refine: Warn, don't crash, if trying to fix individual scan-varying parameters. (#2856)dials.cluster_unit_cell: Clusters are given acluster_idin order of decreasing size, and the output filenames match thecluster_id. (#2859)dials.find_bad_pixels: Use dispersion algorithm for filtering, instead of extended dispersion. This is more sensitive for lone pixels. (#2881)dials.scale: Fix potential bad scaling against a reference if resolution limit is greater than 2 Angstroms. (#2883)dials.reciprocal_lattice_viewer: Fix translate function for Python 3.12. (#2888)dials.stills_process: Miscellaneous fixes when using with XTC files. (#2899)
- 3DED/MicroED papers added to the website. (#2847)
dials.export: Revise usage documentation to be more explicit about which experiment files to use for different cases. (#2864)- The user support mailing list is now dials-user-group@jiscmail.net (#2866)
- Add the user group e-mail address,
dials-user-group@jiscmail.ac.uk, to the message shown on errors. (#2893)
- Remove deprecated use of
pkg_resources, which is removed in Python 3.12. (#2855)
dials.cosym: Add the optionoutput.excluded=Trueto set aside the data sets that cosym rejected, so that these can more easily be investigated separately. (#2854)- dials.image_viewer: support iso-resolution lines (circles, ellipses, hyperbola) on non-coplanar and/or two_theta != 0 detectors (#2867)
dials.correlation_matrix: ward linkages now default for hierarchical clustering (tailorable through phil parameter) (#2876)dials.cluster_unit_cell: Add option to use ward linkage rather than single linkage (#2884)dials.correlation_matrix: Perform principal component analysis on optimised cosym coordinates. Coordinate plots now rotated by principal components. New matrix-style plot for displaying all projections. (#2885)
- Switch from using unmaintained
orderedsettoordered_set(#2749) dials.find_spots: Prevent masked pixels from causing a "halo" of excluded pixels around them when usingthreashold.algorithm=extended_dispersion(the default). This previously caused strong pixels to be excluded from module edges and incorrectly classed strong pixels as background if close to masked pixels. (#2790)dials.ssx_index: Fix crash when processing stills with no scan objects. (#2841)dials.export format=mosflm: Do not write a DIRECTORY line if the image files do not exist (#2845)dials.cluster_unit_cell: output each singleton point group and unit cell on its own line. (#2850)dials.cluster_unit_cell: Use logging rather than print for output. (#2852)- Remove deprecated use of
pkg_resources, which is removed in Python 3.12. (#2855) dials.refine: warn if trying to fix individual scan-varying parameters rather than crashing (#2856)precommitbx: allow install on Python 3.12 (#2857)dials.cluster_unit_cell: Clusters are given acluster_idin order of decreasing size, and the output filenames match thecluster_id. (#2859)dials.export: revise usage documentation to be more explicit about which experiment files to use for different cases (#2864)- Use locally defined
OrderedSetfor cases where the implementation inordered_setdoes not work. (#2871) dials.find_bad_pixels: use dispersion not dispersion extended for filtering (#2881)dials.scale: Fix potential bad scaling against a reference if resolution limit greater than 2 Angstroms (#2883)- No longer use files from
dials_regression/indexing_test_data/in tests. The relevant files are now indials-data. (#2887) dials.reciprocal_lattice_viewer: Fix translate function for Python 3.12 (#2888)- Only use image example data from the publicly-available
dials-data. (#2892) - Add the user group e-mail address, dials-user-group@jiscmail.ac.uk, to the message shown on errors. (#2893)
- Bugfixes for dials.stills_process when used with XTC files (#2899)
- 3DED/MicroED papers added to the website. (#2847)
- The user support mailing list is now dials-user-group@jiscmail.net (#2866)
dials.estimate_resolution: Add resolution estimate based on limit of cc1/2 significance. (#2580)- Added initial support for a H5-based reflection table. This is turned off by default, but can be activated by setting the
DIALS_USE_H5environment variable. (#2677) dials.refine_error_model: Allow grouped and individual error model refinements. (#2685)dials.symmetry: Enable oversampling insystematic_absences.method=fourier, for screw-axis detection. (#2701)dials.indexanddials.ssx_index: Add the CUDA-accelerated fast-feedback-indexer to DIALS as a lattice search algorithm. See https://github.com/paulscherrerinstitute/fast-feedback-indexer for more details. (#2717)- More DIALS tests are changed to use publicly-available data via
dials-data(#2758) dials.correlation_matrix: Include reachability plot for visualisation of coordinate-clustering. (#2778)- Python 3.10 is now the minimum python supported. (#2792)
dials.image_viewer: Add a line tool that gives start, end, and midpoints, plus a line profile graph. (#2798)dials.search_beam_position: Include three new projection methods. (#2809)dials.import: Add syntax for splitting a long scan into chunks e.g. for sequential data collections on small crystals. New syntax is eithersplit=frames_per_blockorsplit=start,end,frames_per_block, if you wish to specify the range, where start and end are 1-indexed. (#2816)
- Ensure logger info is always printed correctly in spot-finding. (#2678)
- Fix
beam.get_s0()errors when trying to use image viewer with polychromatic data. (#2765) - Fix symmetry not being applied consistently post indexing, when multiple crystals and multiple orientations are present. (#2786)
dials.generate_distortion_maps: Correct definitions for creating elliptical distortion correction maps. (#2787)dials.predict: Now adds experiment identifiers to output reflections. (#2788)dials.image_viewer: Recover missing image scrollbar by increasing the panel height. (#2795)dials.index: fix inconsistent experiment IDs after indexing withindex_assignment.method=local(#2799)dials.index: Fix minor bug in global index assignment. (#2800)dials.predict: Do not try to filter shadowed reflections, if no masker is provided. (#2805)dials.cosym: Use unbiased formula for standard error. (#2810)dials.cosym: Fix weighting of cosym objective function, use count weights by default. (#2813)dials.image_viewer: Do not allow integer controls to take values outside of their bounds. (#2822)dials.refine_bravais_settings: Select only the reflections used in refinement in the indexing step for the calculation, to reduce memory footprint with very high resolution data. (#2824)dials.image_viewer: Fix display bug with the trusted range mask, when viewing stacked images. (#2830)dials.export: Fixes to work with gemmi v0.7. (#2834)dials.image_viewer: Avoid error messages when quitting while one of the tools (ring, unit cell, etc.) is open. (#2836)dials.integrate: Allow command line optiond_min=without requiring full qualification asprediction.d_min=. (#2837)- More fixes for gemmi 0.7. (#2839)
- #2528, #2579, #2769, #2776, #2779, #2780, #2791, #2794, #2796, #2801, #2802, #2808, #2818, #2821, #2832, #2833, #2838
- Added scaling corrections for time-of-flight data. (#2704)
dials.generate_mask: Allow combining masks. (#2711)dials.image_viewer: Added multi-panel polygon masking. (#2735)dials.correlation_matrix: Add dimension optimisation for intensity-based dataset clustering. (#2743)dials.generate_distortion_maps: Much faster map generation formode=ellipse. (#2745)- Switch
bootstrap.pyto use CMake by default. You can pass--libtbxto get the previous behaviour, if you need to develop cctbx. (#2755) dials.correlation_matrix: Add auto-selection and output of significant clusters and extended graphs in html output (#2770)
dials.index: Ensure reflections associated with removed experiments are reset to unindexed. (#2653)dials.find_spots: Enablethreshold.algorithm=radial_profilefor polychromatic data. (#2729)dials.image_viewer: Fixed stacking of masks, and stacking of multiple experiments. (#2730)dials.image_viewer: Fix UI glitches in masking tools. (#2731)dials.resolution_analysis: Suppress output of potential scipy OptimizeWarning. (#2737)dials.generate_distortion_maps: Fix bug withmode=ellipsefor detectors with oblong panels. (#2740)dials.cosym: Handle the case of very few reflections, leading to zero weights in weighted cosym analysis. (#2741)dials.find_spots_server: fix multiprocessing to use fork on macOS and on all platforms (and needed for Python 3.14) (#2747)- DIALS viewers: Tweak size of UI elements for GTK3. (#2753)
dials.integrate: Ensure the polarization correction is only performed for X-ray data (not electron nor neutron). (#2754)dials.image_viewer: Fix broken "Save As" PNG functionality. (#2759)- API: Ensure correct results from the
determine_reindex_operator_against_referencefunction when the test and reference miller sets are the same object. (#2761) dials.index: When indexing multiple imagesets, ensure a failure to index one does not result in failure for all. (#2764)dials.image_viewer: Fix errors when trying to view polychromatic data. (#2765)dials.reciprocal_lattice_viewer: Fix errors when trying to view polychromatic data. (#2766)dials.geometry_viewer: Fix errors when trying to view polychromatic experiments. (#2773)
dials.find_spots: Added second implementation of signal mask erosion, for documentation. (#2665)
bootstrap.pyno longer accepts--prebuilt-cctbx. This was only ever supported in CI. If you want to build a distribution with prebuilt cctbx, please use the--cmakeflag and build instead. (#2727)dials.find_spots_server: No longer supported in Windows. (#2747)
dials.find_spots: add second implementation of signal mask erosion for documentation and clarify comments (#2665)- Added time-of-flight Lorentz, spherical absorption, and normalisation w.r.t empty and incident run scaling corrections. (#2704)
- Allow combining masks using dials.generate_mask (#2711)
- Implemented multi-panel polygon masking in dials.image_viewer (#2735)
dials.correlation_matrix: Add dimension optimisation for intensity-based dataset clustering (#2743)dials.generate_distortion_maps: Much faster map generation formode=ellipse. (#2745)- Make CMake the default build mode of bootstrap. (#2755)
dials.correlation_matrix: Add auto-selection and output of significant clusters and extended graphs in html output (#2770)
dials.index: ensure reflections associated with removed experiments are reset to unindexed. (#2653)- Enable radial_profile spot finding algorithm for polychromatic data by removing call to beam s0. (#2729)
- Fixed stacking of masks and stacking of multiple experiments (e.g. stills) in dials.image_viewer (#1512, #2724) (#2730)
dials.image_viewer: Fix UI glitches in masking tools. (#2731)dials.resolution_analysis: Suppress output of potential scipy OptimizeWarning. (#2737)dials.generate_distortion_maps: fix bug withmode=ellipsefor detectors with oblong panels. (#2740)dials.cosym: Handle the case of very few reflections leading to zero weights in weighted cosym analysis. (#2741)dials.find_spots_server: fix multiprocessing to use fork on macOS and on all platforms (and needed for Python 3.14) (#2747)- DIALS viewers: tweak size of UI elements. (#2753)
dials.integrate: Ensure the polarization correction is only performed for X-ray data (not electron nor neutron). (#2754)dials.image_viewer: Fix broken "Save As" PNG functionality. (#2759)- Ensure correct results from the
determine_reindex_operator_against_referencefunction when the test and reference miller sets are the same object. (#2761) dials.index: when indexing multiple imagesets, ensure a failure to index one does not result in failure for all. (#2764)- Fix beam.get_s0() errors when trying to use image viewer with polychromatic data. (#2765)
- Fix reciprocal lattice viewer not working with polychromatic data due to call to beam.get_s0(). (#2766)
- Fix errors with loading polychromatic experiments into dials.geometry_viewer. (#2773)
bootstrap.pyno longer accepts--prebuilt-cctbx. This was only ever supported in CI. If you want to build a distribution with prebuilt cctbx, please use the--cmakeflag and build instead. (#2727)dials.find_spots_server: No longer supported in Windows. (#2747)
- CMake build can now be used for release branches. (#2727)
- Add classes to support time-of-flight and Laue indexing and refinement. (#2662)
dials.symmetry: Allow free selection ofsignificance_levelin the range [0,1]. (#2696)dials.export: Add support for exporting still data in mmcif format that GEMMI can read. (#2709)
dials.index: Fix apink_indexererror that caused failures for images with electron diffraction geometry. (#2680)dials.correlation_matrix: Correctly select datasets for output json after filtering, when used by multiplex. (#2681)dials.index: Avoid mm to px conversion when therefinement_protocolis set to do no refinement, as the required data are not available. (#2687)- Avoid deprecated
matplotlib.cm.get_cmapcalls (#2688) - Change Docker base image to rockylinux:8 as centos:7 is EOL (#2689)
dials.image_viewer: Increase the maximum resolution for the ring tool radius. This was too small for new detectors. (#2697)dials.index: Fix potential crash in max_cell estimation when all spots are at the resolution of ice rings. (#2699)dials.merge: Use GEMMI to output merged MTZs, for consistency withdials.export(#2700)dials.reciprocal_lattice_viewer: Fix middle mouse drag to translate function. (#2707)- Performance improvement for selections from large reflection tables. For a table containing 165k experiment identifiers the speedup is 1000x (12 minutes per call). (#2718)
- Docstrings and type hints are added to the
reindex_experimentsandreindex_reflectionsfunctions to make it easier to use these outside thedials.reindexprogram. (#2683) - Improvements to the small molecule tutorial. (#2692)
- dials.import: remove useless as_grid_scan option as misleading. To import as stills set scan.oscillation=0,0 (#2454)
- New tool:
dials.correlation_matrix: A new command-line tool for correlation and cosine similarity clustering of multi-crystal datasets, independent ofxia2.multiplex. It provides HTML output, including clustering heatmaps, dendrograms and correspondingdials.cosymgraphs. (#2632) - DIALS is now compatible with Python 3.12. (#2651)
dials.scale: Add filtering options to default basic error model to allow error modelling of stills data. (#2654)dials.cosym: Add alternative weighting during cosym CC calculation with a newcc_weights=option. (#2666)dials.correlation_matrix: Add tables with cluster information to html output. (#2671)- New tool:
dials.split_still_datafor splitting dials-processed still data based on image number (e.g. dose series). (#2672)
dials.find_rotation_axis: Correctly set the orientation of the rotation axis for a multi-axis goniometer. (#2658)- Fix
dials.showbeam checks for time of flight experiments. (#2660) - When masking, raise an error if
d_min > d_max(where no spots would be found). (#2664) dials.cosym: Make function return structure correctly, in the recently addedcc_weights=option. (#2668)dials.find_rotation_axis: Add reflection selection criteria, to avoid runs that use a very large amount of memory. (#2670)dials.cosym: Forcc_weights=sigma, ensure correct filtering based on min_pairs parameters. (#2673)dials.cosym: Fix to give more accurate cc calculation when running with aspace_group=set. (#2674)- Fix
flex.reflection_table.concat, to not modify in-place. (#2679)
No significant changes.
dials.predict: Allow usage when image data are not available. (#2553)- Add
TOFSpotFinderto tailor default params to time of flight experiments and add additional reflection table data. (#2602) dials.ssx_index: Allow use of sequences indexer, pink_indexer and low_res_spot_match indexing algorithms. (#2614)dials.export: Add optioncomposition=to specify of asymmetric unit composition for SHELX.insfile output. (#2623)
- Fix building on RHEL8 and other more recent distributions. (#1465)
dials.index: Joint indexing is automatically set on for rotation data, off for still data. This can be overridden by explicit use ofjoint_indexing=. (#2605)dials.exportformat=shelx: Increased precision of unit cell parameters and their estimated standard deviations written to.insfile. (#2624)dials.ssx_index: Don't combine detector models if individually refined. (#2634)dials.scale: Fix error in propagation of partiality variance, when scaling still data. (#2642)dials.export: Fix crash when exporting scaled still-shot data. (#2646)
- API:
array_family/flex_ext.py: removenthread``s parameter from ``extract_shoeboxes, as it was never implemented. (#2638)
- wxPython was inadvertently reverted to 4.1 instead of 4.2 for python 3.9 and 3.10 releases. (#2636)
dials.slice_sequence: Addexclude_images_multiple=option to split a scan at calibration images, as an alternative to excluding those images indials.integrate. (#2565)dials.index: Addindexing.method=pink_indexerfor still images, based on Gevorkov Y et al. pinkIndexer – a universal indexer for pink-beam X-ray and electron diffraction snapshots. (#2604)
dials.index: Correctly output imageset id whenjoint_indexing=Falseandmax_lattices>1(#2538)dials.index: Ensure the unindexed_reflections table in the indexer classes is updated during refinement. (#2545)- When building a new developer installation without CMake, always defer to environmental flags when configuring compilers. This fixes building on MacOS Sonoma; for which the default libtbx configuration failed. (#2546)
dials.cosym: Ensure correct reindexing of low symmetry data to the correct setting. (#2548)dials.export: Unmerged MTZ output now uses gemmi, fixing various longstanding issues. (#2549)dials.symmetry/dials.cosym: Avoid crashes when unable to find consistent symmetry during cell reduction routine. (#2552)dials.sequence_to_stills: Avoid creating an experiment for an image with no reflections on it. (#2554)dials.reciprocal_lattice_viewer: Fix toggling of ids on spotfinding output when viewing multiple files. (#2566)dials.estimate_resolution: Fix bug causing fitting failures for isigma, misigma curves. (#2568)dials.reciprocal_lattice_viewer: Ensure the correct panel for the beam centre is recorded when loading models. (#2572)dials.reindex: When reindexing against a reference, use the best cell when determining lattice symmetry. (#2573)dials.cosym: Filter out datasets that can't be mapped through a consistent best cell, rather than exiting. (#2574)dials.export_bitmaps: Fix for use of imageset_index parameter on image sets that don't start at image numbers of 1. (#2591)- Reorganize imports in
export_mtz.pyso that its gemmi-less objects can be used by other gemmi-less software. (#2592) dials.image_viewer: Fix for stills experiments viewing crash. (#2594)dials.refine: Clarify a misleading error message when there are no reflections to refine. (#2607)- Dependency update for cctbx/dxtbx#697: adds
natsort(#2611)
dials.refine: Update online documentation. (#2551)
dials.slice_sequence: Addexclude_images_multipleoption to split a scan at calibration images, as an alternative to excluding those images indials.integrate. See #1992 for details. (#2565)dials.index: Addindexing.method=pink_indexerfor still images based on Gevorkov Y, Barty A, Brehm W, White TA, Tolstikova A, Wiedorn MO, et al. pinkIndexer – a universal indexer for pink-beam X-ray and electron diffraction snapshots. Acta Cryst A. 2020 Mar 1;76(2):121–31. (#2604)
dials.index: Correctly output imageset id when joint_indexing=False and max_lattices>1 (#2538)dials.index: Ensure the unindexed_reflections table in the indexer classes is updated during refinement. (#2545)- Always use configured environment when bootstrapping CCTBX. This fixes building on MacOS Sonoma; for which the default libtbx configuration fails. (#2546)
dials.cosym: Ensure correct reindexing of low symemtry data to the correct setting (#2548)dials.export: Unmerged MTZ output now uses gemmi, which fixes various issues (#1099, #1100, #2057, #2379, #2505) (#2549)dials.refine: Ensure online documentation is up to date. (#2551)dials.symmetry/dials.cosym: Avoid crashes when unable to find consistent symmetry during cell reduction routine. (#2552)dials.sequence_to_stills: Avoid creating an experiment for an image with no reflections on it. (#2554)dials.reciprocal_lattice_viewer: Fix toggling of ids on spotfinding output when viewing multiple files (#2566)dials.estimate_resolution: Fix bug causing fitting failures for isigma, misigma curves (#2568)dials.reciprocal_lattice_viewer: ensure the correct panel for the beam centre is recorded when loading models. (#2572)dials.reindex: When reindexing against a reference, use the best cell when determining lattice symmetry. (#2573)dials.cosym: Filter out datasets that can't be mapped through a consistent best cell, rather than exiting. (#2574)dials.export_bitmaps: Fix for use of imageset_index parameter on image sets that don't start at image numbers of 1. (#2591)- Reorganize imports in
export_mtz.pyso that its gemmi-less objects can be used by other gemmi-less software (#2592) dials.image_viewer: Fix for stills experiments viewing crash introduced in #2556 (#2594)dials.refine: clarify a misleading error message when there are no reflections to refine. (#2607)
- Circular dependencies have been removed between DIALS and
cctbx.xfelby using the newserialtbx. (#2404) dials.import: Enable use of an image range selection when importing a still sequence. (#2490)dials.estimate_resolution: Improved CC½ fitting by using a weighted tanh fit. (#2499)dials.find_spotsanddials.integratenow acceptexclude_images_multiple=N, which will be expanded to the appropriateexclude_images=definition that excludes every Nth image from the data set. This is intended for the situation where a scan of diffraction images is regularly interrupted by calibration images. (#2511)dials.ssx_integrate: Addmosaicity_max_limit=setting, to control what mosaicity limit is considered unphysically large. (#2518)dials.ssx_integrate: Addmax_cell_volume_change_fraction=parameter to catch highly divergent cell refinements (#2521)
dials.cosym: Fix handling of refinement weights, for sparse data with a low number of common reflections. This improves the handling of serial still data. (#2503)dials.reflection_viewer: Fix a wsPython-related type error. (#2506)dials.sequence_to_stills: Now works with statically-refined experiments. (#2516)dials.sequence_to_stills: Generate identifiers for the split experiments. (#2517)dials.sequence_to_stills: No longer crashes when operating on a scan that does not start at image 1. (#2520)dials.symmetry: Print reindexed unit cell in log output. (#2523)dials.index: Correctly index multiple sweeps for multi-sweep indexed input. (#2534)dials.ssx_integrate: Fix bug in foreground mask calculation, affects datasets where wavelength is much bigger or smaller than 1 Å. (#2535)dials.index: Fix lattice counting when indexing with >1 sweep and >1 lattice (#2539)dials.cosym/dials.scale: Handle potential quasi_normalisation failures (for serial data). (#2540)- Bootstrap
--cmake: Fix configuration when CCP4 is already loaded. Previously, this could cause a failure as it tried to resolve the CCP4 copy of HDF5 in order to determine version. (#2544)
dials.ssx_integrate: Remove duplicate named parameteroutput.shoeboxes=that has no effect (#2537)
- Remove circular dependencies between DIALS and
cctbx.xfelby using the newserialtbx. (#2404) dials.import: Enable use of an image range selection when importing a still sequence (#2490)dials.estimate_resolution: Improved cc1/2 fitting by using a weighted tanh fit (#2499)dials.find_spotsanddials.integratenow accept a parameterexclude_images_multiple=N, which will be expanded to the appropriateexclude_imagesdefinition that excludes every Nth image from the data set. This is intended for the situation where a scan of diffraction images is regularly interrupted by calibration images. (#2511)dials.ssx_integrate: Allow setting of the mosaicity limit that is considered unphysically large, with mosaicity_max_limit option (#2518)
dials.cosym: Fix a bug affecting refinement weights for sparse data with a low number of common reflections. This improves the handling of serial still data. (#2503)dials.reflection_viewer: Fix wxpython-related type error. (#2506)- The
exclude_images_multipleparameter is adjusted to work correctly for scans that do not start with image number 1. (#2514) dials.sequence_to_stills: allow to work with statically-refined experiments. (#2516)dials.sequence_to_stills: Generate identifiers for the split experiments. (#2517)dials.sequence_to_stills: fix crash when operating on a scan that does not start at image 1. (#2520)dials.ssx_integrate: Add max_cell_volume_change_fraction parameter to catch highly divergent cell refinements (#2521)dials.symmetry: Print reindexed unit cell in log output (#2523)dials.index: Correctly index multiple sweeps for multi-sweep indexed input (#2534)dials.ssx_integrate: Fix bug in foreground mask calculation, affects datasets where wavelength is much bigger or smaller than 1. (#2535)dials.ssx_integrate: Remove duplicate named parameter output.shoeboxes that has no effect (#2537)dials.cosym/dials.scale: Handle potential quasi_normalisation failures (serial data) (#2540)- Bootstrap
--cmake: Fix configuration when CCP4 is already loaded. Previously, this could cause a failure as it tried to resolve the CCP4 copy of HDF5 in order to determine version. (#2544)
dials.merge: Fix potential for crash withr_free_flags.extend=True, if there is no new flags to extend. (#2491)
dials.scale: Absorption correction is now switched off if all scattering angles are small (cos(2ϑ) ~ 1). (#2455)dials.export_bitmaps: Setresolution_rings.d_spacingsto manually specify the size of resolution rings. (#2461)dials.index: Experiment number is now shown when indexing multiple experiments. (#2470)dials.export: You can now specifying a wavelength tolerance when exporting multi-wavelength data to mtz. (#2471)- Support for building a CMake developer environment with
bootstrap.py --cmake. This should be considered experimental, for now. (#2474) dials.merge: Added stereographic projections to the html report, if merging more than one experiment. (#2476)
dials.combine_experiments: No longer requires reflection data. (#2323)dials.model_background: Works again for data sets that do not start from image "1". (#2405)- Updated DIALS to imageset slicing properly using 0-based indices. Previously, the slice had to be accessed with the original image indices. (#2411)
dials.reindex: Fix crash reindexing against a reference file, for more than one input file. (#2439)dials.index:indexing.refinement_protocol.mode=Nonenow applies to both the scans and stills indexers. (#2456)dials.index: Now fails with a useful error message when there are too few spots for indexing. (#2457)dials.ssx_integrate: Address issue with ellipsoid angular models by replacing with new, correct, r-dependent models. (#2463)dials.import: Now ensures manual geometry updates are only applied once to each model. This ensuresinvert_rotation_axis=Truewill only invert the rotation axis once. (#2469)dials.image_viewer: Fix crash when the detector is rotated more than 90° from the beam direction. (#2479)dials.reciprocal_lattice_viewer: Handle cases where a beam centre cannot be calculated, such as a detector with a high 2θ swing angle. (#2483)
- Update data files documentation to refer to MessagePack rather than pickle format. (#2444)
dials.image_viewer: The non-functional "Show mask" checkbox has been removed from the Mask tool. (#2458)dials.image_viewer: The basis vector display has been removed. (#2484)
dials.export_bitmaps: Fix theresolution_rings.fontsize=feature to work on Mac, and more reliably across platforms. (#2441)
dials.refine: Independent groups of experiments are now refined separately by default. This may not then produce identical output, but results are believed to be of equivalent quality. The previous behaviour can be selected by usingseparate_independent_sets=False. (#2336)- Python 3.11 is now supported as a bootstrap target. (#2338)
- Support
IOBS/SIGIOBSandFOBS/SIGFOBScolumns when reading reference intensities from MTZ files. (#2386) dials.export_bitmaps: Optionally overlay ice rings. (#2393)export_bitmapsAPI code has been separated out of CLI script into the newdials.util.export_bitmapsmodule. (#2417)dials.reindex: Allow reindexing against a reference file (mtz, pdb, cif) from which intensities can be extracted/generated (#2420)dials.refine: new optionauto_reduction.ignore=Trueallows avoiding the parameter auto-reduction procedure for special cases. (#2431)
dials.export_bitmaps: Correctly display the requested number of resolution rings. (#2397)- More directly support cctbx bootstrap environments without fixed-version dependencies. (#2409)
dials.scale: Fix crash in html plotting for scaling and filtering when R-pim/R-merge values contain 'None' values (#2410)dials.scale,dials.cosym: Use bulk solvent model when calculating intensities from a reference file. (#2414)dials.integrate: Fix multiprocessing on Windows with Python 3.11. (#2426)dials.ssx_integrate: Fix error in partiality calculation for ellipsoid integration algorithm. (#2429)dials.import: Don't print filename template for every image of anImageSequence. (#2432)
- Moved
dials::af::flex_tableand associated tooling to dxtbx. Functions that are specific toreflection_tablehave been moved toreflection_table_suite.h. (#2113) dials.find_spots: Removeforce_2d=option, which did not work as expected. (#2422)
No significant changes.
dials.export_bitmaps: Correctly scale resolution rings with imagebinning=set. (#2392)- Revert GTK-message-supression change that was causing
reciprocal_lattice_viewererrors. (#2395)
dials.damage_analysis: Adddose_group_size=option to allow generation of plots for subsets of the data based on dose. (#1903)dials.import/dials.export: The image template is now reported in the log file, for rotation data. (#2278)- Refinement tests now use publicly available data, though the
dials-datapackage. (#2343) dials.merge: Now suggests a resolution limit, based on a fit to CC½. (#2351)dials.merge: Save merged half datasets to the MTZ file whenadditional_stats=True. (#2353)dials.export_bitmaps: Option to render resolution rings. (#2360)dials.rs_mapper: Now works with multi-panel detectors. (#2362)dials.ssx_integrate: Add support for multi-panel detectors, for the ellipsoid model. (#2368)dials.find_spots: Add theexclude_images=option. Previously this was only ondials.import. (#2374)dials.merge: Generate"FreeR_flag"column in output mtz, optionally copying from a reference mtz containing aFreeR_flagcolumn. (#2378)
dials.refine: Does not callsys.exitwhen running as a library function. (#2325)dials.generate_mask: Fix a failure when the direct beam intersected the exact centre of a pixel. (#2329)- Providing invalid PHIL parameters no longer causes a traceback. (#2331)
dials.index: Handle possibility of Krivy-Gruber iteration limit exceeded in Niggli cell reduction. (#2332)- CPU allocation limits will now be correctly inherited from the Slurm cluster scheduler. (#2335)
dials.ssx_integrate: Fix cases where the background and centroid algorithms choices were not being used with ellipsoid-model integration. (#2337)dials.assign_experiment_identifiersnow works with experiment lists without identifiers. (#2342)- Test data files are no longer patched to correct their trusted range values, and usages of the deprecated
DataBlockhave been removed. (#2346) dials.ssx_integrate: catch rareValueErrorin ellipsoid profile model refinement (#2349)dials.symmetry: Handle cases when an experiment has no scan object. (#2350)dials.ssx_index: Ensure file paths are split correctly on Windows. (#2358)- Replace the deprecated
implibrary withimportlib. (#2363) dials.rs_mapper: Fix bug causing the image data to be accessed with out-of-bounds indices. (#2364)dials.image_viewer: Fix error when using newer versions of wxPython. (#2365)- DIALS viewers: Suppress terminal output saying "
Gtk-Message". (#2366) - Prevent occasional failures testing constrained geometry refinement. (#2367)
- Slicing a
reflection_tabledoes not lose the experiment identifiers map. (#2371) dials.integrate: Updateexclude_images=syntax to matchdials.importanddials.find_spots. The older form is now deprecated. (#2374)reflection_table.match_by_hkle: Fix failure on Windows with pandas 2.0.0. (#2383)
- Clarified coordinate system conventions in https://dials.github.io/documentation/conventions.html (#2373)
dev.dials.napari_rlv: A reciprocal lattice viewer based on napari. This currently requires thenaparimodule to be manually added into your DIALS installation. (#2229)dials.stills_process: Addssuppressed_logging=option, and minimal progress feedback. (#2263)dials.refine: Use an overallinterval_width_degrees=parameter to set the default smoothness in scan-varying refinement for all models. This does not affect which models will be parameterised as scan-varying, which is controlled by their individualforce_static=parameters. (#2268)- Use Python 3.10 by default when running bootstrap. (#2272)
dials.stills_process: Added reflection subsampling. Ifreflection_subsampling.enable=True, and an image fails to index, the reflections will be randomly subsampled, and indexing tried again. Reflections will be randomly subsampled in smaller amounts until a threshold is reached or the image successfully indexes. (#2275)dials.merge: Allowexclude_images=parameter, as indials.scale. (#2280)dials.scale: Add ability to use a precalculated analytical correction as part of scaling models. (#2313)- Add
additional_statsoption to generate R-split statistic for stills data indials.mergeanddials.scale. (#2314)
dials.integrate: Fail for negative profile-fitting intensity variance, not zero variance. (#2271)dials.import: Fixconvert_stills_to_sequences=option for h5 data formats. (#2273)- Slightly better support when handling empty reflection tables. (#2281)
dials.scale: Catch rare crash when making summary stats table. (#2284)- Fix wxPython 4.2.0 type error affecting RLV and geometry viewer. (#2287)
- Allow
reflection_table.remove_on_experiment_identifiers()for an emptyflex.reflection_table. (#2298) dials.cluster_unit_cell: Correctly report the number of lattices in each cluster, instead of the number of clusters. (#2300)dials.image_viewer: Fix error when using newer versions of wxPython. (#2306)dials.combine_experiments: Prevent defaultclustering.max_clusters=Nonefrom raising error when clustering. (#2311)dials.scale: Fix crash when scaling against reference, and some datasets were removed during scaling. (#2312)dials.integrate: Clearer error message when kaptonabsorption_correction.apply=True, butalgorithm=None. (#2317)
integration/corrections.h: Improve comments pertaining to the polarization correction. (#2274)
- #2266, #2267, #2269, #2282, #2289, #2290, #2293, #2301, #2303, #2307, #2308, #2309, #2310, #2319, #2321
No significant changes.
dials.stills_process: Addknown_orientations=feature, useful for specifying previous processing results to use when reprocessing data, or for multiple detectors in an experiment. (#2110)dials.filter_reflections: Addedremove_by_index=option. (#2201)dials.rs_mapper: Perform the calculation in parallel to improve speed. (#2238)dials.background: Addn_checkpoints=parameter, to run the analysis on evenly-spaced images. (#2240)- dials.image_viewer: Change default brightness to 10. (#2254)
- The
dials.ssx_indexanddials.ssx_integrateprograms are now considered stable, so have dropped thedev.prefix. (#2265)
dials.stills_process: Fix crashes for raster scans of stills. (#2128)dials.image_viewer: Fix intensity readout mouseover, and beamcenter half-pixel errors. (#2194)- trusted_range is now defined throughout DIALS consistently as the inclusive range between the minimum and maximum trusted values - valid pixels are those less than or equal to the maximum trusted value and greater than or equal to the minimum trusted value. (#2195)
dials.find_rotation_axis: Recover a plot that was broken by previous changes. (#2225)dials.scale: Restore consistent dataset id output numbering when a dataset is excluded. (#2246)dials.reciprocal_lattice_viewer: Set the maximum number of experiments to show in the selector toggles (default 15). Datasets with a number larger than this will not be individually selectable. (#2248)dials.ssx_integrate: Gracefully handle assertion error for particular bad data. (#2264)
- Removed references to pickle and json from PHIL config help strings. (#2208)
- The deprecated
dials.algorithms.symmetry.cosym.target.Target.get_sym_ops()function has been removed. Please use theTarget.sym_opsproperty instead. Thenprocargument to theTargetconstructor has also been removed. The deprecateddials.util.mp.parallel_mapfunction has been removed. The deprecateddials.command_line.dials_import.ImageImporterhas been removed. Please usedo_importinstead. The commanddials.rl_csvhas been removed. Similar functionality is available withdials.export format=json. The commanddials.find_shared_modelshas been removed. Usedials.show show_shared_modules=True ...instead. (#2212)
dials.scale: Fix bug in intensity combination scoring for multi-sweep datasets, affecting midpoint test values. (#2199)
- Revert default installation to Python 3.9, to avoid WXPython incompatibilities. (#2216)
dials.scale: Added thereference=option, with support for using a cif data file as a scaling reference. This replaces the old usages oftarget_mtz=andtarget_model=, which are now deprecated. (#2148)dials.algorithms.clustering.unit_cellAPI: Include the linkage matrix in the returnedClusteringResultobject. (#2152)dials.cosym: Allow use of a reference dataset, to consistently index against. (#2154)dials.find_rotation_axis: Dramatically improve execution time by performing the search in parallel. (#2160)dials.image_viewer: Score tool now accepts keyboard entry. (#2162)dials.merge: Add merging statistics to output html report, and the PHIL optionoutput.json=to write this this to json. (#2178)dials.symmetry: Add option to score systematic absences using fourier analysis. Thanks to Kevin Dalton for contributing this feature. (#2184)- Unit cell clustering reports: Add plots of unit cell angle distribution. (#2197)
- Use Python 3.10 by default when running bootstrap. (#2206)
dials.merge: include merging statistics in json output (#2207)
dials.find_rotation_axis: Consistently report rotation axis angle at start and end of the search. (#2145)dials.generate_mask: Make the log filename consistent with the program name. (#2147)dials.image_viewer: Automatically complete an active polygon mask when saving mask parameters. (#2150)dials.refine: Correct an error mapping constraint definitions to models. (#2155)dials.background: Check for empty experiments. (#2163)dials.estimate_gain: Now works on multiple experiments from a single image sequence. (#2164)dials.powder_calibrate: More general determination of background mask removal. (#2165)- Fix DIALS version reporting for release builds. (#2166)
- Logging messages from dxtbx are now included in program output. (#2171)
dev.dials.ssx_integrate: Handle potential assertion errors from FastMCD. (#2179)dials.symmetry: Ensure data for systematic absences check is in the correct setting for non-conventional minimum cells. (#2183)dials.scale: Fix bug in intensity combination scoring for multi-sweep datasets, affecting midpoint test values. (#2199)dev.dials.ssx_index: Fix crash when generating plotting data where rmsd values are almost all equivalent. (#2203)dev.dials.ssx_integrate: Fix divergent refinement bug when n_macro_cycles > 1. (#2204)
dials.scale: Thetarget_mtz=andtarget_model=options are deprecated. Please usereference=instead for both uses. (#2148)
dials.image_viewer: Fix error after loading images with the "Load" button. (#2168)dials.merge: Fix crash for P-1 datasets. (#2175)dials.export format=mtz: Handle shared experiment models when converting to cambridge frame (#2182)
- Fix DIALS version reporting for release builds. (#2166)
- Refinement internals: Terminate Levenberg-Marquardt refinement if the objective is not expected to decrease. (#2135)
dials.scale: Avoid edge case crashes when all reflections filtered out during reflection selection for a dataset in multi-dataset scaling (#2146)dials.cosym: Fix bug whereby the change of basis op was applied twice to the crystal model (#2151)dials.ssx_index: Fix potential numpy crash when trying to generate histograms from one datapoint (#2156)dials.image_viewer: Allow viewing still collections where some images have no reflections. (#2157)dev.dials.ssx_index: Fix cluster reporting for only one image indexed, fix crash when all images filtered out (#2159)
- The DIALS code package now uses
src/layout. You will need to at leastlibtbx.refreshif on a development install. (#2077) dials.cosym: Enable skipping of unit cell clustering by settingunit_cell_clustering.thresholdparameter to 0 or None. (#2058)dials.export: Add extra unmerged data categories for mmcif output, conforming to the latest mmcif_pdbx.dic. Make v5 the default (rather than v5_next). (#2078)dials.export: MTZ files are now exported with geometry in the Cambridge frame. (#2054)dials.index: Performance improvements for serial indexing (dials.stills-process,dev.dials.ssx_index). (#2035)dials.merge: New implementation of the French & Wilson (1978) algorithm for correction of negative intensities when estimating amplitudes. This implementation makes use of the standardized median as an M-estimator for the average intensity of resolution bins, which makes the procedure robust against the presence of very negative intensities. (#2100)dials.powder_calibrate: Add detector distance calibration. (#2075)dials.refine: Newseparate_imagesoption performs outlier rejection on each image independently. (#2036)dials.refine: Parallelise outlier rejection to reduce overall run times. (#1427)dials.refine: Use sparse storage for scan-varying runs, reducing memory requirements and run times. (#2022)dials.scale: Allow use of a pdb model to calculate target intensities for scaling (phil optiontarget_model). (#2053)dials.stills_process: Validate command-line arguments to prevent confusion when there is a typo. (#2106)dev.dials.ssx_index,dev.dials.ssx_integrate: Add optionoutput.nuggets=, which can be used to specify a directory to which in-process results are stored. (#2114)- Add a CMake build of DIALS. (#2096)
dials.cluster_unit_cell: Modify test so that it runs on Windows. (#2027)dials.cluster_unit_cells: Correctly handle cases with only one input crystal. (#2120)dials.combine_experiments: Exit with a helpful error message, if experiments have the same identifiers. (#2069)dials.export: Fix crash for exporting ssx data. (#2126)dials.find_bad_pixels: Output a mask file, as expected in the phil scope. Remove unimplemented png output option. (#2122)dials.image_viewer: Fix downstream SEGV involving wxPython. (#2134)dials.image_viewer: Fixed user setting forshow_beam_center=being overridden. (#2103)dials.image_viewer: then_iqrvalue forradial_profilethresholding is now correctly handled. (#2116)dials.import: When trying to import a missing file, say which file was missing. Print a warning if trying to import with a wildcard and no files were found. (#1863)dials.refine_bravais_settings: Ensure that the reported reindexing operators correctly map the input symmetry to the given Bravais settings, regardless of whether the input symmetry was a primitive or non-primitive setting. (#2105)dials.reindex: Fail with a helpful error message when attempting to reindex to a left-handed cell. (#1779)dials.scale: If scaling against a target, do targeted outlier rejection. (#2052)dials.scale: Respect user supplied high resolution limit in summary table. (#2118)dials.show: Avoid crash when an experiment does not have an imageset. (#2056)dev.dials.ssx_index: Fix reporting of results for h5 files, skip indexing of an image if fewer thanmin_spots=strong spots. (default 10). (#2055)dev.dials.ssx_index: Handle case where the inputstrong.reflfile has no spots for some images. (#2039)dev.dials.ssx_integrate: Correctly handle input data containing multiple imagesets. (#2124)- Handle reflection simulation case where test reflections could fail to generate. (#2094)
dials.model_background: Add help message and test program. (#1109)- Remove reference to
nprocin tutorials where it is not needed. (#2030) - Update DPF3 part 2 tutorial, to match current output. (#2030)
- Add
dials.two_theta_refineto documentation (#2061)
dials.find_shared_modelshas been retired. The command will now redirect users todials.show, in combination with theshow_shared_models=Trueoption. This command stub will be removed in a future version. (#1070)dials.integrate: The unusedbackground.algorithm=medianhas been removed. (#2066)- The API interface
dials.command_line.dials_import.ImageImporteris now deprecated. Please use...dials_import.do_importinstead. (#2080)
- #1973, #2037, #2038, #2041, #2043, #2047, #2051, #2062, #2065, #2070, #2071, #2073, #2074, #2079, #2081, #2082, #2083, #2086, #2087, #2088, #2089, #2091, #2092, #2093, #2095, #2099, #2101, #2102, #2104, #2112, #2119, #2131, #2133
- Resolve xia2 installation issues for downstream packaging.
dials.stills_process: validate command-line arguments to prevent confusion when there is a typo (#2106)
dials.show: Fix display of unknown vector columns. (#2048)dials.image_viewer: Fixed user setting forshow_beam_center=being overridden. (#2103)
dials.show: Fix display of unknown vector columns. (#2048)
dials.scale: Fix crash when a dataset is filtered out during the scaling process (issue #2045). (#2045)
dials.scale: Fix crash when a dataset is filtered out during the scaling process (issue #2045). (#2045)
- Bootstrap now allows creating a Python 3.10 environment. This should be considered experimental at this stage, and may fail because not all our dependencies have Python 3.10 support yet. (#1866)
dials.export: Add SHELX.hklfile output. (#1925)dials.backgroundnow writes to a log file. (#1948)dials.cluster_unit_cell: Add optionoutput.clusters=True/Falseto generate output files for each cluster generated by splitting the dendrogram at the giventhreshold. (#1950)- Add
reflection_table.match_by_hklemethod, to match reflections between tables that have the same miller index and entering flags. (#1951) - Add experimental
dev.dials.ssx_integratescript for profile modelling and integration of SSX data, including ellipsoid profile modelling. (#1974) dials.reindex: Allow reindexing using multi-crystal reference data files. (#1977)- add flex.reflection_table.concat method, to concatenate a list of reflection tables, including handling their experiment identifiers and ids (#1994)
- For data reduction programs, allow exclude_images option to take a single multi-sweep command, e.g.
exclude_images=0:100:120,1:150:180(#1996) - Enable spot-finding threshold algorithms to use information about experimental models. (#2001)
dials.find_spots: Added newspotfinder.threshold=radial_profilethreshold algorithm. This calculates an average background in 2θ shells, and identifies peak pixels at a user-controllable level above the background. This simple method is particularly appropriate for cases with strong rotationally-symmetric background, such as electron diffraction images. An optional blurring function helps to suppress noise peaks and to join split spots. (#2009)dials.export: Add PETS 2 exporting withformat=pets. This is used for processing electron diffraction data. (#2014)- New tool -
dials.powder_calibrateto help calibrate the geometry of an electron powder pattern. (#2016) - Colours in plots: Some of our plots and figures were still using the Matplotlib colour map Jet. Matplotlib moved some time ago to using the perceptually uniform colour map Viridis, which was designed to be relatively colourblind-friendly, as its default. In this version of DIALS, we too have moved to use Viridis for our Plotly plots. With thanks to Ammaar Saeed (ammsa23) for this change. (#2026)
dials.refinecould in some rare cases introducing an unphysical beam polarization vector. (#1939)dials.scale: Fixes to properly handle partiality of ssx data (#1965)- This round includes modifications to enable Kapton absorption correction for higher angles of rotation of the Kapton tape. (#1968)
ThreadPoolandSocketresources were not properly closed indials.find_spots_client. (#1976)- Fix regression in installer python 2 compatibility. (#1990)
- Avoid using the
uuidmodule, to avoid mpi errors on Python 3.8. (#2000) dials.refine: Avoid spike in memory usage while saving reflections. (#2024)
- Improved the "small molecule" tutorial by including the symmetry determination, scaling and export to e.g. SHELX format output. (#1900)
- Add a new multi-crystal tutorial, discussing the analysis of Br-lysozyme microcrystal data with
dials.cosymandxia2.multiplex. (#1960) - Update the betalactamase tutorial to use automatic scan-varying refinement. (#1971)
- Remove outdated developer tutorial. (#2003)
- Documentation font has changed to sans-serif. (#2010)
- Starting with this release DIALS requires a minimum Python version of 3.8. Bootstrap no longer allows the creation of Python 3.7 environments. (#1866)
- #1576, #1930, #1953, #1966, #1967, #1972, #1975, #1978, #1986, #1989, #1995, #1999, #2013, #2015, #2017, #2018, #2019, #2020, #2021, #2023
dials.cosym: Fix crash for edge case of a full dataset being excluded by the resolution filter (#1993)dials.two_theta_refine: Fix crash if running on scaled data withexclude_datasets=. (#2006)- Fix downloads failing on MacOS with "426 Upgrade Required" (#2012)
No significant changes.
- It is now possible to explicitly bootstrap all supported python versions. (#1988)
dials.refine: Fix crash from recording of parameter correlations inhistory.json. (#1923)- Correct reporting of phi angle in scan-varying model plots. (#1929)
dials.sequence_to_stills: correct error in the crystal model for scans that do not start from image 1. (#1933)- dials.show: only show format class if meaningful (i.e. not Format or FormatMultiImage) (#1981)
- Update some Cosym and resolution-related PHIL descriptions. (#1969)
dials.indexed_as_integrated: manipulate an indexed reflection file to look as if it were summation integrated. This simply takes the spot intensities that have been indexed, assigns a resolution and sets the summation integrated flag. Allows symmetry analysis using intensities and scaling on indexed data for very rapid feedback data processing. (#1912)- All command line programs now allow passing -h argument multiple times to increase verbosity. (#1920)
- Add
Dockerfileto automatically build and push images on new releases. (#1936) - Add experimental
dev.dials.ssx_indexscript to index a block of ssx data. (#1955) - Add alias
dials.rlvfordials.reciprocal_lattice_viewer, anddials.rbsfordials.refine_bravais_settings. (#1959)
dials.import: Support arbitrary P1 known unit cells. (#1880)- Utility fixes: Better handle cases of missing partiality data in reflection files. Treat missing resolution values as
0.0instead of being empty. (#1911) dials.scale: Add missing "expids_and_image_ranges" information to the json output. This is required for some of the plots indials.reportoutput. (#1913)- Copy docker entrypoint script with exec permissions. (#1940)
- Don't line-wrap command-line help messages (#1954)
- dials.check_indexing_symmetry: correctly handle d_max parameter if left at default value when d_min set. (#1957)
- Fixed bug that prevented the ability to plot absorption end of max and min due to Kapton (#1962)
- Updated MyD88 tutorial to make use of the new
dials.find_rotation_axiscommand. (#1885) - Document the dxtbx convention for representing the goniostat rotation operator \mathbf{R} on the conventions page. of the online documentation. (#1917)
- Update tutorial for DUI 2021.11.1. (#1938)
- The cosym nproc= and
dials.util.parallel_mapwarnings have been made more visible. (#1909)
dials.integrate: When determining available memory, take into accountMemoryProvisionedfrom HTCondor machine ad if the_CONDOR_JOB_ADenvironment variable is set.nproc=auto: Take into accountCpusProvisionedfrom HTCondor machine ad. (#1943)
- Read
_CONDOR_JOB_ADnot_CONDOR_MACHINE_AD(#1945)
dials.export: No longer allow (erroneous) MTZ export for multiple experiments with multiple space groups. (#1915)dials.export: No longer fails for XDS_ASCII and SADABS export withintensity=auto. (#1926)dials.report: Fix broken json output option. Include more graphs in json output. (#1932)
- Bootstrap support for MacOS M1 platforms. (#1841)
- New
dials.find_rotation_axisprogram optimises the rotation axis from strong spot positions prior to indexing. (#1884) dials.import: Allow importing templates with no template characters. (#1840)dials.stills_process: Performance improvements in Kapton absorption correction and in rare cases of highly mosaic crystals. (#1846)dials.image_viewerCoordinates are now given in fast, slow order. (#1849)dials.image_viewer: Crystal basis vectors are now shown in the same colour as their predictions. (#1855)dials.image_viewer: Add the option to display the rotation axis (#1856)dials.image_viewer: Draw resolution rings for curved detectors. (#1899)dials.import: Unhandled files are now by default ignored. This means that e.g.*.logfiles alongside images will no longer prevent a successful import. Setignore_unhandled=Falseto restore the previous behaviour. (#1881)dials.scale: Allow fixing of a particular correction with e.g.physical.correction.fix=absorption. (#1883)- Installer now accepts a
--raw-prefixoption to use the target destination directly, instead of in adials-X.Ysubdirectory. (#1896)
dials.compute_delta_cchalf: Fix crash when only using passing dataset/group. (#1892)dials.find_bad_pixels: Pixel coordinates are now reported in row-major order, and mask value is now set to 16, which corresponds internally to "noisy pixel". (#1876)dials.find_rotation_axis: removed unused parameteroptimise={True|False}. (#1898)dials.report: Don't show otherwise empty sections. (#1875)
- Improvements to 3DED tutorials. (#1850)
- SARS-CoV-2 main protease tutorial: process in C2 rather than I2 setting for consistency with published structures. (#1854)
- Removed outdated lysozyme nanocrystals tutorial. (#1877)
- Add an associated projects page to the website. (#1893)
- Bootstrap no longer allows creating Python 3.6 environments. (#1852)
dials.util.mp: deprecateparallel_map()function and remove previously deprecatedpreserve_exception_message=parameters. (#1860)
dials.reciprocal_lattice_viewer: In cases with multiple lattices, "Crystal Frame" now aligns all crystal frames, rather than just the first. Unindexed reflections are no longer shown in this mode. (#1868)
No significant changes.
This is the last release to support Python 3.6. Future releases will require a minimum of Python 3.7.
- DIALS bootstrap now creates a Python 3.9 environment by default (#1735)
- New program:
dials.reference_profile_viewerfor viewing reference profiles dumped bydials.integratewhen using thedebug.reference.output=Trueoption. (#1759) dials.combine_experiments: Unindexed reflections are now included in the combined output (#1760)dials.image_viewer: Image overlays are now accumulated over stacks of images (#1750)dials.image_viewer: Allow control of the basis vector scale from the settings window (#1780)dials.image_viewer: Better colour choice for text overlays. Labels will now be light grey on Black, or Dark grey on White. The previous settings were sometimes hard to read on narrow-contrast images. (#1781)dials.merge: Include DANO/SIGDANO columns in output .mtz whenanomalous=Trueandtruncate=True(#1809)dials.reciprocal_lattice_viewer: Show resolution on the "nearest point" label (#1770)dials.reciprocal_lattice_viewernow shows the path to the reflections in the title bar (#1771)dials.reciprocal_lattice_viewer: The default marker size now scaled automatically based on the data density (#1773)dials.scale: Always enable absorption correction if theabsorption_level=parameter is set. Previously it was only enabled for sweeps >= 60° or ifabsorption_correction=True. (#1793)dials.scale: Allow a shared absorption correction between sweeps if using the physical model, with the optionshare.absorption=True. Extra absorption correction plots have also been added; and multiple sweeps are now aligned to the same reference frame. (#1811)- API:
...scaling_library.scaled_data_as_miller_arraynow sets wavelength in the returnedmiller.array(#1808) reflection_table.match()now returnsflex.size_tindex arrays, instead offlex.int. (#1784)- New bootstrap option:
--condato install with miniconda instead of micromamba. (#1730)
dials.combine_experiments: Correctly preserve mapping to images. This affectsdials.image_vieweranddial.reciprocal_lattice_viewer. (#1093)dials.compute_delta_cchalf: Unwarranted precision in the output has been reduced (#1751)dials.find_spots: Fix counting of imagesets in histogram output (#1827)dials.image_viewer: Add buttons to clear unit cell and generic ring display (#1777)dials.image_viewer: Fix various minor behavioural bugs in the spot-finding and image type controls. (#1796)dials.import: Fail gracefully when # is missing from template. (#1840)dials.integrate: change default filename of debug reference profile toreference_profiles.pickle. (#1747)dials.integrate: Change default configuration so that unintegrated reflections are not retained. This helps reduce memory usage of downstream tools. Setoutput_unintegrated_reflections=Trueto restore the previous behaviour. (#1753)dials.integrate: ensure imageset_ids are always output. Affected use of image viewer, reciprocal lattice viewer on multi-sweep data. (#1762)dials.reciprocal_lattice_viewer: When starting withblack_background=False, ensure the rotation axis and beam vector are displayed in black. (#1540)dials.reciprocal_lattice_viewer: More robust beam centre control that works for multiple panel detectors (#1842)dials.refine_bravais_settings: correctly report mI Bravais settings (#1825)dials.split_experiments: Update the imageset_id column in the output reflection files. (#1792)- Don't fail
bootstrap.pyif a submodule is missing a reference (#1834) - Correctly handle reflection
imageset_idcolumn indials.scale,dials.cosym, anddials.symmetry. (#1763)
dials.anvil_correction: Made a small improvement to the developer documentation. (#1788)- Fix help string for
best_monoclinic_beta=parameter (fordials.cosym,dials.refine_bravais_settingsanddials.symmetry) (#1833) - Added a new tutorial on 3DED/MicroED data processing. (#1837)
- Add a "Getting started" page to the documentation on the website. (#1844)
- Add a tutorial on processing small molecule 3DED data. (#1847)
- The previously deprecated
dials.resolutionizercommand has been removed. Please usedials.estimate_resolutioninstead. (#1330) - The previously deprecated
dials.refineparametertrim_scan_edgeshas been removed. Please usescan_margin=...instead. (#1374) - The previously deprecated
Spotfinder()()interface has been removed. Please useSpotfinder().find_spots()instead. (#1484) - The previously deprecated
dials.util.masking.MaskGeneratorhas been removed. Please usedials.util.masking.generate_maskinstead. (#1569) - The bootstrap option
--mambahas become the default and will be removed in the future. (#1730) dials.anvil_correction: Drop compatibility support for SciPy < 1.4 (#1787)
- #1746, #1733, #1752, #1755, #1756, #1764, #1767, #1772, #1783, #1789, #1791, #1794, #1795, #1799, #1802, #1804, #1806, #1807, #1812, #1816, #1817, #1823, #1830, #1835, #1836, #1839
dials.stills_process: Fix case where imagesets and experiment filenames could potentially disagree (#1814)dials.scale: Fix incorrect output files, for targeted scaling with more than one target dataset. (#1815)dials.image_viewer: Fix opening datasets withload_models=False(#1818)
dials.image_viewer: Fix thebasis_vector_scale=parameter. (#1769)
dials.image_viewer: Fix display of spotfinding intermediates (threshold, dispersion, etc) when viewing multiple still experiments (#1734)dials.image_viewer: Stacking images no longer gives incorrect results for multi-sweep data beyond the first sweep (#1758)
No significant changes.
dials.integrate: Avoid crash when data is too large to process in memory, by splitting into subsets (#1392)- New bootstrap options:
--mambato install with micromamba, and--cleanto remove installation caches immediately after completion. (#1676) dials.find_spots_server: Faster filtering of reflections by resolution (#1680)dials.scale: Add optionerror_model.grouping=to control refinement of either individual or grouped error models during scaling (#1684)dials.scale: Addedphysical.absorption_level=[low|medium|high]option for automatic setting of suitable absorption correction parameters. (#1688)dials.cosym: Significantly faster calculation of Rij matrix of pairwise correlation coefficients (#1693)dials.sort_reflectionsanddials.merge_reflection_listsare now available without adev.prefix. (#1703)- New command:
dials.find_bad_pixelsto identify pixels which are identified as signal in >= 50% of images (#1710) dials.image_viewer: Add selector to choose between a new default "image" and traditional "lab" coordinate frames. "image" frame attempts to align the fast/slow axes of the detector panels to screen x and y coordinates, so overall detector rotations will mostly be invisible. "lab" frame is the previous projection, where rotated detectors will appear rotated.dials.export_bitmaps: Gained this sameprojection=option. (#1716)dials.find_spotsanddials.integrate: nproc= now works with N > 1 on Windows. (#1724)
- Fix rare crash in symmetry calculations when no resolution limit could be calculated (#1641)
dials.report: Add units of pixels / images to centroid difference histograms (#1677)dials.refine: Scan-varying refinement failed whentrim_scan_to_observations=Falsewas used. (#1686)dials.spot_counts_per_image: Show an explicit error if given data that isn't spotfinding output (i.e. unindexed reflections/experiments). (#1690)dials.integrate: Improved background model variance calculation for integrating detectors. (#1692)dials.stills_process: improve processing performance by preventing re-reading of image data (#1705)dials.background: Correctly identify signal pixels for integrating detectors, and respect pre-calculated masks. (#1726)dials.integrate: Fixed bug in memory-use calculation for multi-sweep integration runs (#1728)
- Remove remaining 'master' references in the documentation. (#1632)
- The previously deprecated
dials.util.masking.MaskGeneratornow prints a user warning. Please usedials.util.masking.generate_maskinstead. (#1643) dials.cosym: Remove clustering code as this is no longer a necessary part of determination of symmetry or reindexing operations, and serves no useful purporse. (#1647)dials.cosym:nproc=parameter is deprecated. The algorithm is much faster on single cores. (#1693)- The pytest option
--runslowwas retired. The tests that it triggered will now always run. (#1695) dev.dials.csvhas been deprecated. Similar functionality is available withdials.export format=json. (#1708)dials.util.mp: Thepreserve_exception_messageargument has been deprecated. (#1722)
- #1631, #1633, #1648, #1649, #1652, #1661, #1672, #1673, #1674, #1675, #1676, #1678, #1679, #1687, #1696, #1697, #1698, #1701, #1706, #1707, #1711, #1713, #1717, #1718, #1720
dials.scale: Fix crash when full-matrix minimisation is unsuccessful due to indeterminate normal equations. (#1653)dials.scale: Fix crash when no reflections remain after initial filtering. (#1654)dials.export: Fix error observed withformat=mmciffor narrow sweeps with low symmetry (#1656)- Fix image numbering inconsistency in ascii histogram of per-image spot counts (#1660)
dials.find_spots_server: Significant performance improvement for HDF5 grid scans. (#1665)
- Log messages from spot finding and integration no longer ignore logging level when using
nproc > 1. This mainly affects usage of dials from outside contexts. (#1645)
dials.cosym: Significantly faster via improved computation of functional, gradients and curvatures (#1639)dials.integrate: Added parametervalid_foreground_threshold=, to require a minimum fraction of valid pixels before profile fitting is attempted (#1640)
dials.cosym: Cache cases where Rij is undefined, rather than recalculating each time. This can have significant performance benefits when handling large numbers of sparse data sets. (#1634)dials.cosym: Fix factor of 2 error when calculating target weights (#1635)dials.cosym: Fix brokenengine=scipyoption (#1636)dials.integrate: Reject reflections with a high number of invalid pixels, which were being integrated since 3.4.0. This restores better merging statistics, and prevents many reflections being incorrect profiled as zero-intensity. (#1640)
dials.integrate: Profile-fitting improvements; Profile fitting will now be attempted on reflections with masked pixels, and the number of reflections qualifying for profile-fitting on multi-panel detectors has dramatically increased. (#1297)dials.import: When usingreference_models=, individual components of the model can be excluded withuse_beam_reference=,use_gonio_reference=anduse_detector_reference=. (#1371)flex.reflection_table.matchcan now match reflections with configurable distance and scaling between any 3-vector column in the reflection tables. The default is still"xyzobs.px.value". (#1398)dials.background: Add optionoutput.plot=to save an image to disk, instead of displaying interactively. Image files can now also be used directly. (#1537)dials.import: The defaulttolerance.scan.oscillation=is increased to 3% of the image width, in order to accommodate electron diffraction datasets with poor rotation stages. (#1543)dials.background: Add support for multiple imagesets (#1554)- dials.estimate_resolution: reject Wilson outliers to minimise effect of spurious observations from e.g. ice rings on the resulting resolution estimates (#1580)
dials.cosym: Use numpy in place of flex for large parts of cosym analysis (#1581)dials.cosym: Add option to use scipy L-BFGS-B <https://docs.scipy.org/doc/scipy/reference/optimize.minimize-lbfgsb.html> minimization engine (minimization.engine=scipy) (#1581)- New masking parameter
disable_parallax_correction=False. Set toTrueto speed up generation of resolution masks by disabling parallax correction (this is only likely to have significant effect when spotfinding is spread across many independent processes). (#1590) dials.image_viewer: New parameterbasis_vector_scale=to adjust the length of the basis vector overlay (#1598)dials.merge: add option to set wavelength_tolerance for MAD datasets (#1609)dials.reciprocal_lattice_viewer: Added an option to label the reciprocal lattice point nearest the centre (#1614)dials.scale: An additional outlier rejection based on normalised intensities has been added (#1627)
dials.image_viewer: Fix various display issues relating to viewing still images (#1463)dials.background: Fix crash when writing output plot with bad display configuration (#1550)dials.scale: Fix issue of error model not always being carried through after the profile/summation intensity combination step. (#1566)- Fail bootstrap step if the git checkout fails in a non-interactive or non-posix environment (#1572)
- Fixes working towards direct support of Windows builds:
- Describe how to fix gltbx build failures for development installations on non-RHEL distributions (#1561)
- Replace references to
.picklewith reflections /.reflin docstrings (#1619) - Add documentation for
dials.filter_reflectionsto the website. (#1625)
- Remove previously deprecated
use_trusted_range=parameter from masking configuration (#1156) - The main development branch of dials was renamed from 'master' to 'main'. (#1546)
dials.background: Theplot=parameter to interactively display the background plot has been removed. Useoutput.plot=to save to file instead. (#1554)- Remove
*.ofiles from the DIALS installer package (#1564) dials.util.masking.MaskGeneratoris deprecated in favour ofdials.util.masking.generate_mask(#1569)
- #1530, #1531, #1532, #1534, #1535, #1536, #1542, #1567, #1570, #1571, #1588, #1593, #1597, #1599, #1600, #1601, #1603, #1604, #1613, #1620, #1621, #1624, #1626, #1630
dials.import: Selecting a subset of images withimage_range=now works on stills (#1592)- dials.search_beam_centre: Dramatically improved execution time for large data sets (#1612)
dials.reindex: Write.reflfile output in the default "MessagePack" format for better compatibility with downstream programs (#1616)dials.scale: Fix rare memory crash from infinite loop, that could occur with very bad quality datasets (#1622)
dials.refine: More informative error message when reflections have weights of zero (#1584)
No changes to core DIALS in 3.3.3.
- Remove unnecessary call to
imageset.get_raw_data()while generating masks. This was causing performance issues when spotfinding. (#1449) dials.export: Allow data with either summation or profile fitted intensities to be exported. Previously, both were (erroneously) required to be present. (#1556)dials.scale: Fix crash if only summation intensities present andintensity_choice=combine(#1557)- Fix unicode logging errors on Windows (#1565)
dials.index: More verbose debug logs when rejecting crystal models that are inconsistent with input symmetry (#1538)
dials.stills_process: Fix spotfinding error "Failed to remap experiment IDs" (#1180)- Improved spotfinding performance for HDF5 when using a single processor. (#1539)
- DIALS is now using GEMMI. (#1266)
- Upgrade
h5pyrequirement to 3.1+ for SWMR-related functionality. (#1495) - Added support for small integer types to DIALS flex arrays. (#1488)
dials.estimate_resolution: Only use cc_half in default resolution analysis. (#1492)dials.export: Allow on-the-fly bzip2 or gzip compression for mmCIF output, because unmerged mmCIF reflection files are large. (#1480)dials.find_spotsanddials.integrateboth now havenproc=Autoby default, which uses the number of allowed/available cores detected. (#1441)dials.merge: Report<dF/s(dF)>, ifanomalous=True. An html report is also generated to plot this statistic. (#1483)dials.scale: Apply a more realistic initial error model, or load the existing error model, if rescaling. (#1526)dials.stills_process: allow using different saturation cutoffs for indexing and integration. Useful for using saturated reflections for indexing while still rejecting them during integration. (#1473)
- Internal: Logging metadata is now preserved when running spotfinding and integration across multiple processes. (#1484)
- Fix NXmx behaviour with h5py 3.1. (#1523)
dials.cosym: Choose the cluster containing the most identity reindexing ops by default. Under some circumstances, particularly in the case of approximate pseudosymmetry, the previous behaviour could result in reindexing operators being chosen that weren't genuine indexing ambiguities, instead distorting the input unit cells. (#1514)dials.estimate_resolution: Handle very low multiplicity datasets without crashing, and better error handling. (#1494)dials.export,``dials.two_theta_refine``: Updates to mmcif output to conform to latest pdb dictionaries (v5). (#1528)dials.find_spots: fix crash whennproc=Auto. (#1019)dials.image_viewer: Fix crash on newer wxPython versions. (#1476)dials.index: Fix configuration error when there is more than one lattice search indexing method. (#1515)dials.merge: Fix incorrect output of SigF, N+, N- inmerged.mtz. (#1522)dials.reciprocal_lattice_viewer: Fix error opening with wxPython 4.1+. (#1511)dials.scale: fix issues for some uses of multi-crystal rescaling iffull_matrix=False. (#1479)
- Update information on how to care for an existing development environment, and remove outdated information. (#1472)
- Each of the available indexing strategies in
dials.indexnow has some help text explaining how it works. You can view this help by callingdials.index -c -a1 -e1and looking formethodunderindexing. (#1519) - Include
__init__methods in autodoc generated library documentation. (#1520) dials.estimate_resolution: Improved documentation. (#1493)
dials.algorithms.spot_finding.finder.SpotFinder: Use of__call__to run spotfinding has been deprecated in favor ofSpotFinder.find_spots(experiments). (#1484)
dials.slice_sequence: Fix crash usingblock_size=option (#1502)dials.scale: Fix brokenexclude_images=option (#1509)
- Fix case where
dials.stills_processcould swallow error messages dials.cosym: Fix non-determinism. Repeat runs will now give identical results. (#1490)- Developers: Fix precommit installation failure on MacOS (#1489)
3.2 Branch releases will now use a fixed conda environment. This release is the first to use the same versions of all dependencies as 3.2.0.
dials.symmetry,dials.cosymanddials.two_theta_refine: Lowered default partiality_threshold from0.99to to0.4. The previous default could occasionally result in too many reflections being rejected for particularly narrow wedges. (#1470)dials.stills_processImprove performance when using MPI by avoiding unnecessary log file writing (#1471)dials.scale: Fix scaling statistics output of r_anom data. (#1478)
- DIALS development environments are now running Python 3.8 by default. (#1373)
- Add a scaled flag to the reflection table. Indicates which reflections are good after the scaling process. (#1377)
- Python warnings are now highlighted on the console log and written to log files (#1401)
- Exit error messages from commands will now be colourized (#1420)
- Change the way
dials.integratesplits data into blocks, to reduce unnecessary data reads, increasing performance up to 35% in some cases (#1396) - Add
dials.util.mp.available_coresfunction (#1430) dials.refine: Trimming scans to observations for scan-varying refinement can now be turned off, using the parametertrim_scan_to_observations=False(#1374)dials.refine: Change default toseparate_panels=False. This speeds up outlier rejection for multi-panel detectors. For metrology refinement this should be set toTrue(#1424)dials.merge: Add best_unit_cell option. If the best_unit_cell option is set indials.scale, this will now propagate to the merged mtz output file. (#1444)- DIALS bootstrap now allow creating a Python 3.9 environment (#1452)
- DIALS now uses pytype for limited static type checking. We hope that this will, over time, improve code quality. (#1364)
dials.stills_process: Addedprocess_percent=to restrict processing to a subset of data, sync reference geometry instead of overwriting it and handle composite spotfinding modes. (#1409)
dials.stills_process: Prevent memory usage getting too high by clearing the imageset cache during processing. (#1412)dials.find_spots_server: Return HTTP 500 instead of 200 when running fails (#1443)dials.find_spots_server: Fix multiprocessing-related crash on macOS with Python3.8 (#1447)dials.integrate: Fix failures when building with GCC 9 (#1456)dials.image_viewer: Fix deprecation warnings (#1462)dials.index: When using local index assignment, take into account phi in nearest neighbour analysis. This can significantly improve indexing rates in some cases with scans > 360° (#1459)dials.reindex: Show an error instead of crashing for bad reindex operations. (#1282)
- dials.refine: the parameter
trim_scan_edgesis renamedscan_marginand the former name is deprecated (#1374) - The developer command
dev.dials.show_test_failure_reasonswas removed. (#1436) - Remove clipper sources from new development installations (#1437)
- #1175, #1337, #1354, #1379, #1381, #1400, #1406, #1416, #1423, #1426, #1432, #1433, #1435, #1446, #1454, #1466, #1468
No changes to core DIALS in 3.1.4.
dials.integrate: fix integrator=3d_threaded crash if njobs > 1 (#1410)dials.integrate: Check for and show error message if shoebox data is missing (#1421)dials.refine: Avoid crash for experiments with zero reflections if the auto_reduction.action=remove option was active (#1417)
dials.merge: improve help message by adding usage examples (#1413)dials.refine: More helpful error message when too few reflections (#1431)
dials.stills_process: Add parametermax_images=to limit the number of processed images
dials.integrate: fix crash when run with integrator=3d_threaded (#1404)dials.integrate: Minor performance improvements (#1399)dials.stills_process: MPI performance improvements for large datasetsdials.stills_process: Fix error when using split logs
dials.scale: Prevent discarding of resolution limits in rare cases, which could cause incorrect symmetry determination, and worse results. (#1378)dials.cosym: filter out experiments with inconsistent unit cells (#1380)- Internally slicing experiments now works if image range doesn't start at 1 (#1383)
- Restore missing I/sigma(I) resolution estimate log output (#1384)
dials.image_viewer: "Save As" button now works, for single panels- Fix developer
libtbx.precommitinstallation error (#1375)
- Supports Python 3.7 and 3.8. Python 3.6 remains the default. (#1236)
- Switch DIALS environment to use conda compilers. For development environments,
a new
dialsscript, located above the build directory, replaces the existing 'setpaths'-family of scripts. This means that all commands within the conda environment will now be available. (#1235) - New command:
dials.missing_reflectionsto identify connected regions of missing reflections in the asymmetric unit. (#1285) - Improvements to image stacking in
dials.image_viewer: - add pull-down selector for stacking mode - add modes for mean and max - add command-line selection for stacking mode - renamesum_imagescommand-line option tostack_images(#1302) - Reduce volume of output in
dials.integrate; histograms and other less important information only shows in debug output. Pass the-vvoption to restore the previous behaviour (#1319) dials.integrate: Experimental feature: Specifyingoutput_unintegrated_reflections=Falsediscards unintegrated data from output reflection file, for smaller output and faster post-processing (#1343)- Rename
dials.resolutionizercommand todials.estimate_resolution, and includes a html report. Writing png plot output is now turned off by default (passingplot=Truewill restore this behaviour). (#1330) dials.scalenow separates anomalous pairs during error model analysis (#1332)dials.background: Add parametercorrected=to optionally use pedestal-and-gain corrected data (#1348)dials.combine_experiments: Add optionoutput.max_reflections_per_experiment=, to reject experiments with too many reflections (#1369)
dials.image_viewer: Shoeboxes are now shown rotated with rotated detector panels. (#1189)dials.index: In multi-lattice indexing, ensure that reflections where refinement fails are flagged as unindexed. (#1350)dials.scale: Reflections excluded from scaling are no longer permanently excluded from any subsequentdials.scalejobs. (#1275)dials.scale: When usingintensity_choice=combine(the default), don't exclude reflections that only have one of summed or profiled intensities available, but not both. (#1300)dials.split_experiments: Don't generate extra leading zeros in the output filename when not required e.g.output_09.expt->output_9.expt(#1316)dials.plot_reflections: Fix invisible white spots on white background. (#1346)
dials.find_spots: Deprecatespotfinder.filter.use_trusted_range=(#1156)setpaths.shand related scripts in newly created DIALS development environments are made obsolete and will no longer work. (#1235)dials.show: Removeshow_image_statistics=parameter. Useimage_statistics.show_raw=for equivalent output (#1306)- Log files will omit timings unless the relevant dials program was run with
-v(#1313)
dials.scale: Allow usage ofmode=image_groupwithfiltering.method=deltacchalfwhen only providing a single data set (#1334)dials.import: When using a template and specifying an image_range, missing images outside of the range will not cause a failure (#1333)dials.stills_process: Show better error message in specific spotfinding failure case (#1180)
- Developer tool: On posix systems, sending SIGUSR2 to DIALS commands will now print a stack trace (#1277)
- HTML reports: Plot bin centres instead bin minimum for d_min line plots vs. resolution (#1323)
dials.export: Fix inconsistency in mtz export when given a non-reference (e.g. I2 or primitive) setting (#1279)dials.refine_bravais_settings: Fix crash with large (>2gb) reflection tables and reduce memory use (#1274)dials.scale: Fix bug in outlier rejection code causing misidentification of outliers (with outlier_rejection=standard).dials.scale: Fix outlier rejection formula to avoid overconfidence in spuriously low values
- Fix crash in scaling error model handling (#1243)
- dials.reciprocal_lattice_viewer: Add an option to show lattice(s) in the crystal rather than laboratory frame. (#1259)
- Support for mtz project_name in export and scaling
- dials.reciprocal_lattice_viewer: fix multiple experiment view for integrated data (#1284)
- Show more useful output when crashing in C++ code (#659)
- dials.image_viewer: for the unit cell tool, rename parameters for consistency and add a new show_hkl option to filter displayed powder rings to select only those of interest. (#1192)
- In dials.integrate: changed the background box size multiplier to be a parameter (sigma_b_multiplier) - setting to small values significantly reduces memory requirements. (#1195)
- dials.image_viewer: add an overlaying showing pixels marked as strong by the spot-finding operations. That is, the pixels picked out by the "threshold" image. (#1200)
- dials.scale report file was renamed from scaling.html to dials.scale.html dials.symmetry report file was renamed from dials-symmetry.html to dials.symmetry.html (#1202)
- dials.report output file was renamed from dials-report.html to dials.report.html (#1206)
- dials.image_viewer: faster navigation between different image types. (#1213)
- Crystal model now has a new recalculated_unit_cell attribute. This allows it to store a post-refined unit cell (e.g. from dials.two_theta_refine) in addition to that from traditional geometry refinement (which was used for prediction). Downstream programs such as dials.scale and dials.export will now use the recalculated unit cell where appropriate. (#1214)
- New best_monoclinic_beta parameter for dials.refine_bravais_settings and dials.symmetry. Setting this to False will ensure that C2 is selected in preference to I2, where I2 would lead to a less oblique cell (i.e. smaller beta angle). (#1226)
- New scaling model, model=dose_decay, implementing a shared exponential decay component for multicrystal experiments (#1183)
- Avoid empty "Unable to handle" messages on failed dials.import (#600)
- Functions from dials.export now raise exceptions on errors rather than exit. This improves their use elsewhere (such as in dials.scale). (#1205)
- Ensure dials.index chooses the C2 setting with the smallest beta angle (#1217)
- Fix propagation of best_unit_cell and application of resolution cutoffs in dials.scale and export_mtz. Add a new mtz.best_unit_cell parameter to dials.export (#1248)
- Make some of the DIALS tools furthest downstream (
dials.scale,dials.symmetry,dials.mergeanddials.report) more robust in the case of very few reflections. (#1263)
- dials.image_viewer: Add a choice between displaying the raw or the corrected image. (#634)
- Automatically choose between the simple and glm background determination algorithms, depending on whether the detector appears to be integrating or counting. (#706)
- Allow adjustment of font size for overlay text, such as Miller indices and resolution ring values. (#1074)
- Keep goniometer and scan objects in indexing of still data, if provided in input (#1076)
- Experimental:
dials.image_viewercan be remotely controlled via a ZeroMQ endpoint with thezmq_endpointPHIL parameter. Initially, the viewer can be commanded to load new images. This requires the (optional) ``pyzmq``package. (#1085) - Programs now generate a unique identifier for each experiment created, and reflection tables are linked via the experiment_identifiers map (#1086)
- Introduce dials.anvil_correction to correct the absorption of the incident and diffracted X-ray beam by the diamond anvils in a pressure cell. Call dials.anvil_correction on the output of dials.integrate and then proceed to use post-integration tools as normal, just as though the sample had been measured in air. (#1090)
- Map of detector efficiency for photon counting detectors as a function of detector position added to report, based on the qe value applied at the end of integration. (#1108)
- Significantly reduce the amount of memory required to write .refl output files (#1115)
- Add maximum_trusted_value=N option to spot finding to temporarily allow override of trusted range, e.g. to find overloaded spots in spot finding. (#1157)
- array_family.flex interface has changed: background and centroid algorithms are set via public properties. Instead of flex.strategy use functools.partial with the same signature. as_miller_array() raises KeyError instead of Sorry. .extract_shoeboxes() lost its verbosity parameter, use log levels instead. (#1158)
- dials.stills_process now supports imagesets of length > 1 (e.g. grid scans) (#1174)
- Fixed prediction on images numbered zero, so integrating works correctly. (#1128)
- Fix an issue (#1097) whereby aggregating small numbers of reflections into resolution bins could sometimes result in empty bins and consequent errors. (#1130)
- Ensure that restraints are ignored for parameterisations that are anyway fixed (#1142)
- Fix dials.search_beam_centre to ensure that the correct detector models are output when multiple detector models are present in the input. Fix dials.search_beam_centre n_macro_cycles option (previously it was starting from the original geometry every macro cycle). (#1145)
- dials.find_spots_server no longer slows down 3x when using resolution filters (#1170)
- We now fully support Python 3 environments.
- MessagePack is now the default reflection table file format. Temporarily, the
environment variable
DIALS_USE_PICKLEcan be used to revert to the previous pickle-based format, however this will be removed in a future version. (#986) - new option for dials.show 'show_shared_models=True' displays which beam, crystal, and detector models are used across experiments (#996)
- Import still image sequence as N experiments dereferencing into one image set rather than one experiment. (#1014)
- Add reflection_table.get method for defaulted column access (#1031)
- Don't use -2 to indicate masked pixels, except for DECTRIS detectors where this is to be expected. (#536)
- No longer show pixels that are above the trusted range upper bound as "saturated" on the "variance" image. (#846)
- Correctly account for scan-varying crystals while providing a scan range to dials.integrate (#962)
- Ensure that generated masks do not include pixels that are overloaded on a few images, but only pixels that are always outside the trusted range. (#978)
- Rewritten parameter auto-reduction code for dials.refine provides finer-grained fixing of individual parameters rather than whole parameterisations and correctly takes constrained parameters into account (#990)
- Fix output of predictions in dials.refine. A recently-introduced bug meant that the updated predictions weren't being copied to the output reflections file. (#991)
- Allow scan-varying refinement where either the crystal cell or orientation is fixed. (#999)
- Respect batch= option to dials.symmetry - can reduce time taken for finding the symmetry for large data sets. (#1000)
- Scan-varying refinement no longer fails when the scan is wider than the observed reflections (e.g. when the crystal has died). Instead, the scan is first trimmed to match the range of the diffraction. (#1025)
- If convert_sequences_to_stills then delete the goniometer and scan. (#1035)
- Correctly account for scan-varying crystals in dials.slice_sequence (#1040)
- Eliminate systematic absences before applying change of basis op to minimum cell in dials.symmetry. (#1064)
- Add "Extending DIALS" page to developer documentation (#893)
- The command dials.analyse_output was removed. Its replacement, dials.report, will give you more useful output. (#1009)
- Support exporting multi-dataset and still experiments to XDS_ASCII (#637)
- Replace default spotfinder with improved dispersion algorithm (#758)
dials.reportnow displays oscillation data with units and more significant figures (#896)- A new program,
dials.sequence_to_stillsto create split a sequence into a separate still Experiment for every scan point in the sequence, splitting reflections as necessary. (#917) - Moved
dials.export format=besttodials.export_bestas that one needed access to the format object, the rest do not, and havingdials.exportwork in the general case seems like a better idea... (#921) - Unified logging output for dials programs - logs are no longer split into .log and .debug.log. Use -v to get debug output. (#923)
- New command
dials.resolutionizer(replacesxia2.resolutionizer). Add support forexpt/reflindials.resolutionizer. (#933) - Changed the selection of reflections used for determination of the reflection profile parameters in integration. Now uses reflections which were previously used in refinement rather than all reflections, resulting in a speed improvement for large data sets and a negligible difference in the quality of the integrated results. (#942)
dials.image_viewernow allows the choice betweendispersion_extended(new default) anddispersion(old default) thresholding algorithms for investigating the effect of different spot-finding parameters. (#948)dials.rs_mappernow respects masked regions of images (including the trusted range mask). (#955)
- Fix and reinstate normalisation option in
dials.option(#919)