Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2b377e4

Browse files
committedNov 6, 2024·
Merge remote-tracking branch 'origin/main' into indexer_multicrystal_multiorientation_bug
2 parents de0122d + 3eb01cd commit 2b377e4

File tree

17 files changed

+377
-74
lines changed

17 files changed

+377
-74
lines changed
 

‎doc/sphinx/_static/dials-styles.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,11 @@ div.leftside {
159159
div.rightside {
160160
margin-left: 10px;
161161
}
162+
163+
div.leftside-nih {
164+
color: white;
165+
background-color: black;
166+
height: 80px;
167+
padding: 0px 10px 0px 10px;
168+
float: left;
169+
}

‎doc/sphinx/about.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ reuse both within DIALS and by third parties.
3535
Development Teams
3636
=================
3737

38-
DIALS East
38+
DIALS UK
3939
----------
4040

4141
Development of DIALS in the UK is funded by the `Wellcome Trust`_,
4242
`Diamond Light Source`_ and `CCP4`_, and led by `Dr Gwyndaf Evans`_.
4343

44-
DIALS West
44+
DIALS US
4545
----------
4646

4747
Development of DIALS at `Lawrence Berkeley National Laboratory`_, USA is led by
48-
`Dr Nicholas Sauter`_ and supported by `National Institutes of Health`_ /
49-
`National Institute of General Medical Sciences`_ grant R01-GM117126: *DIALS:
50-
New Computational Methods to Enable Challenging Crystallographic Experiments*.
48+
`Dr Aaron Brewster`_ and supported by `National Institutes of Health`_ /
49+
`National Institute of General Medical Sciences`_ grant R24GM154040: *DIALS:
50+
supporting structural biology through open source diffraction processing software*.
5151
Work at LBNL is performed under `Department of Energy`_ contract
5252
DE-AC02-05CH11231.
5353

@@ -83,11 +83,11 @@ Matthew Webber.
8383
8484
.. _`Wellcome Trust`: https://wellcome.ac.uk/
8585
.. _`Boost.Python`: http://www.boost.org/doc/libs/1_59_0/libs/python/doc/index.html
86-
.. _`cctbx`: http://cctbx.sourceforge.net/
86+
.. _`cctbx`: https://github.com/cctbx
8787
.. _`CCP4`: http://www.ccp4.ac.uk/
8888
.. _`Diamond Light Source`: http://www.diamond.ac.uk/Home.html
8989
.. _`Dr Gwyndaf Evans`: http://www.diamond.ac.uk/Beamlines/Mx/VMXm/Staff/Evans.html
90-
.. _`Dr Nicholas Sauter`: https://biosciences.lbl.gov/profiles/nicholas-sauter/
90+
.. _`Dr Aaron Brewster`: https://biosciences.lbl.gov/profiles/aaron-brewster/
9191
.. _`Lawrence Berkeley National Laboratory`: http://www.lbl.gov/
9292
.. _`National Institutes of Health`: http://www.nih.gov/
9393
.. _`National Institute of General Medical Sciences`: http://www.nigms.nih.gov/

‎doc/sphinx/documentation/tutorials/diamond.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Feedback
169169

170170
If you encounter any problems using DIALS or xia2, or indeed have any other
171171
feedback (positive or negative - we love to hear from you either way),
172-
please contact dials-support@lists.sourceforge.net or xia2.support@gmail.com
173-
respectively.
172+
please contact log feedback at https://github.com/dials/dials/issues or
173+
https://github.com/xia2/xia2/issues respectively.
174174

175175
.. _xia2: https://xia2.github.io/

‎doc/sphinx/documentation/tutorials/multi_crystal_analysis.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ for each dataset. This script could be written in BASH, tcsh, perl,
9595
ruby - whatever you feel most comfortable with. However here we will use Python,
9696
or more specifically :program:`dials.python` because we will take advantage of
9797
features in the cctbx to make it easy to write scripts that take advantage
98-
of `parallel execution <http://cctbx.sourceforge.net/current/python/libtbx.easy_mp.html>`_.
98+
of `parallel execution <https://cctbx.github.io/libtbx/libtbx.easy_mp.html>`_.
9999
Also we would like to read :samp:`imported.expt` with the DIALS API rather than
100100
extracting the sequence templates using something like :program:`grep`.
101101

‎doc/sphinx/index.rst

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ DIALS: Diffraction Integration for Advanced Light Sources
1717
How-to <howto>
1818
Knowledge Base <https://dials.github.io/kb>
1919
workshops/index
20+
US National Resource <national_resource>
2021
publications
2122
projects
2223
License <license>
@@ -41,8 +42,6 @@ For feature requests, bug reports or any other information, please contact
4142
the DIALS developers at dials-support@lists.sourceforge.net, or post an
4243
`issue`_.
4344

44-
Mirror sites: `DIALS-East`_, `DIALS-West`_, `dials.github.io`_.
45-
4645
Funding
4746
=======
4847

@@ -69,8 +68,29 @@ DIALS development at `Diamond Light Source`_ is performed by employees of
6968

7069
DIALS development at `Lawrence Berkeley National Laboratory`_ is
7170
supported by `National Institutes of Health`_ / `National Institute of General Medical Sciences`_
72-
grant R01-GM117126. Work at LBNL is performed under
73-
`Department of Energy`_ contract DE-AC02-05CH11231.
71+
grant R24GM154040.
72+
73+
.. container:: twocol
74+
75+
.. container:: leftside-nih
76+
77+
.. image:: https://www.nigms.nih.gov/Style%20Library/NIGMS2/images/nih.svg
78+
:alt: NIH NIGMS
79+
:target: `NIH`_
80+
:height: 70px
81+
82+
.. container:: leftside-nih
83+
84+
| National Institute of
85+
| General Medical Sciences
86+
87+
.. rst-class:: clear-both
88+
89+
DIALS is an NIH NIGMS US National Resource with the goal of supporting both users and
90+
facilities in using DIALS to analyse their diffraction data.
91+
:ref:`Learn more <national_resource>`.
92+
93+
Work at LBNL is performed under `Department of Energy`_ contract DE-AC02-05CH11231.
7494

7595
.. _`issue`: https://github.com/dials/dials/issues
7696
.. _`Wellcome`: https://wellcome.ac.uk/
@@ -82,6 +102,4 @@ grant R01-GM117126. Work at LBNL is performed under
82102
.. _`National Institute of General Medical Sciences`: http://www.nigms.nih.gov/
83103
.. _`Department of Energy`: http://www.energy.gov/
84104
.. _dials.github.io: https://dials.github.io/
85-
.. _`DIALS-East`: http://dials.diamond.ac.uk/
86-
.. _`DIALS-West`: http://dials.lbl.gov/
87-
105+
.. _`NIH`: https://www.nigms.nih.gov/

‎doc/sphinx/national_resource.rst

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
++++++++++++++++++++++++++
2+
US DIALS National Resource
3+
++++++++++++++++++++++++++
4+
5+
.. _national_resource:
6+
7+
In the US, DIALS is supported through a R24 National Resource grant (R24GM154040)
8+
from the `National Institutes of Health`_ / `National Institute of General Medical Sciences`_
9+
at `Lawrence Berkeley National Laboratory`_. The goal of the resource is to support both
10+
users and facilities in using DIALS to analyse their diffraction data. This is part of a
11+
larger international software project that includes support from staff in the US, UK, and
12+
worldwide.
13+
14+
.. container:: twocol
15+
16+
.. container:: leftside-nih
17+
18+
.. image:: https://www.nigms.nih.gov/Style%20Library/NIGMS2/images/nih.svg
19+
:alt: NIH NIGMS
20+
:target: `NIGMS`_
21+
:height: 70px
22+
23+
.. container:: leftside-nih
24+
25+
| National Institute of
26+
| General Medical Sciences
27+
28+
.. rst-class:: clear-both
29+
30+
Goals
31+
=====
32+
33+
The goals of the Resource are two-fold: 1) support users, instrument scientists,
34+
and beamline scientists in using DIALS to analyze their data and 2) maintain and upgrade DIALS
35+
as a software product.
36+
37+
Community support activities
38+
----------------------------
39+
40+
DIALS has many use cases. Just a few of a variety of possible examples:
41+
42+
- The individual scientist processing data on their laptop
43+
- The synchrotron beamline processing thousands of datasets a week an a local cluster
44+
- The electron diffraction team at a university solving structures using FIB milling single crystal methods
45+
- The XFEL researcher processing tens of thousands of images a minute on a nation-leading supercomputer
46+
47+
In each case, different support is may be needed. The individual scientist may need help with parameters for indexing. The synchroton may need to minimize memory load. The electron micrscope may require different spotfinder paramters than default. The XFEL data may need new super-computing submission arguments. For all of this and more, the Resource can help. Simply email a staff member or join the community!
48+
49+
Additionally, workshops and training for DIALS will be available and direct support can be arranged by way of site visits by Resource staff. Please be in touch!
50+
51+
Software activities
52+
-------------------
53+
54+
DIALS is built on cctbx, and in turn many packages depend on DIALS. The Resource conducts the following activities to maintain and upgrade DIALS:
55+
56+
- Codebase optimization: as processing needs increase and data volumes accelerate, DIALS staff refactors and optimizes the codebase, profiling code, bringing critical algoritms into C++ or onto GPUs, and increasing code stability.
57+
- Codebase maintenance: the Resource tracks modern coding standards and upgrades the code to support them, be they Python, C++, or HDF5 standards. Additionally as external libraries change and evolve, the Resource continually runs regression tests to monitor for changes that affect code function and performance
58+
- Provide user interfaces: through GUIs and command line programs, DIALS staff build tools that allow data visualization and statistical analysis.
59+
60+
Resource administration
61+
=======================
62+
63+
Staff
64+
-----
65+
66+
- Aaron Brewster: Director, Principal Investigator, representative of DIALS to standards bodies and user communities
67+
- Daniel Paley: senior staff and lead for outreach, maintenance, and optimization
68+
- David Mittan-Moreau: synchrotron and MicroED integration
69+
- Herbert Bernstein: CBF and NeXus support and maintenance
70+
71+
Board
72+
-----
73+
74+
The DIALS advisory board will include crystallographic software developers, beamline facility staff, and representatives of standards bodies to ensure the needs of all aspects of the crystallographic data collection and processing community are being addressed in the DIALS development efforts. Annual board meetings will include discussions of metrics, improvements, and assessment of progress, and will charge developers to move towards completing specific milestones and deliverables. The board is currently being assembled.
75+
76+
.. _`Lawrence Berkeley National Laboratory`: http://www.lbl.gov/
77+
.. _`National Institutes of Health`: http://www.nih.gov/
78+
.. _`National Institute of General Medical Sciences`: https://www.nigms.nih.gov/
79+
.. _`NIGMS`: https://www.nigms.nih.gov/

‎doc/sphinx/publications.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Publications
66
DIALS Journal Articles
77
----------------------
88

9+
* .. pubmed:: 39386198 Laue-DIALS
910
* .. pubmed:: 35647922 xia2.multiplex
1011
* .. pubmed:: 34747533 DIALS as a toolkit
1112
* .. pubmed:: 32254063 dials.scale
@@ -28,6 +29,7 @@ DIALS Journal Articles
2829
DIALS Application to XFEL Crystallography
2930
-----------------------------------------
3031

32+
* .. pubmed:: 35046599 Chemical Crystallography at XFELs
3133
* .. pubmed:: 26352473 synuclein
3234
* .. pubmed:: 26280336 synaptotagmin-SNARE
3335
* .. pubmed:: 26057680 Ginn 2015b

‎doc/sphinx/workshops/index.rst

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,42 @@
33
Workshops
44
+++++++++
55

6-
.. toctree::
7-
8-
DIALS-1
9-
10-
* `DIALS West-1`_: July 2012 (Boston, MA)
6+
* `Serial Crystallography Methods Workshop`_: July 2023 (Ithaca, NY)
117

12-
.. _`DIALS West-1`: http://cci.lbl.gov/dials/jul_2012_boston.htm
8+
.. _`Serial Crystallography Methods Workshop`: https://indico.classe.cornell.edu/event/2248/
139

14-
* `DIALS-2`_: February 2013 (Berkeley, CA)
10+
* `Berkeley Lab Serial Crystallography Workshop`_: Feburary 2017 (Berkeley, CA)
1511

16-
.. _`DIALS-2`: http://cci.lbl.gov/dials/feb_2013_berkeley.htm
12+
.. _`Berkeley Lab Serial Crystallography Workshop`: http://cci.lbl.gov/xfel/index.php/2017_Tutorials
1713

18-
.. toctree::
14+
* `DIALS-6`_: May 2015 (Berkeley, CA)
1915

20-
dials3d
16+
.. _`DIALS-6`: http://cci.lbl.gov/dials/may_2015_berkeley.htm
2117

22-
* DIALS-4A: September 2013 (Diamond Light Source, UK)
18+
* DIALS-5: November 2014 (Diamond Light Source, UK)
2319

2420
.. _`xxx`: xxx
2521

2622
* `DIALS-4B`_: October 2013 (Berkeley, CA)
2723

2824
.. _`DIALS-4B`: http://cci.lbl.gov/dials/oct_2013_berkeley.htm
2925

30-
* DIALS-5: November 2014 (Diamond Light Source, UK)
26+
* DIALS-4A: September 2013 (Diamond Light Source, UK)
3127

3228
.. _`xxx`: xxx
3329

34-
* `DIALS-6`_: May 2015 (Berkeley, CA)
30+
.. toctree::
3531

36-
.. _`DIALS-6`: http://cci.lbl.gov/dials/may_2015_berkeley.htm
32+
dials3d
33+
34+
* `DIALS-2`_: February 2013 (Berkeley, CA)
35+
36+
.. _`DIALS-2`: http://cci.lbl.gov/dials/feb_2013_berkeley.htm
37+
38+
* `DIALS West-1`_: July 2012 (Boston, MA)
39+
40+
.. _`DIALS West-1`: http://cci.lbl.gov/dials/jul_2012_boston.htm
41+
42+
.. toctree::
43+
44+
DIALS-1

‎installer/dials_installer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def reconfigure(self, log=None, *args, **kwargs):
8080
traceback.print_exc()
8181
print("\n")
8282
sys.exit(
83-
"Please report this installation error to dials-support@lists.sourceforge.net"
83+
"Please report this installation error at https://github.com/dials/dials/issues"
8484
)
8585

8686
def reconfigure_as_libtbx_does(self, log):

‎newsfragments/2528.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update documentation to remove most references to sourceforge.

‎newsfragments/2780.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add new R24 National Resource for DIALS to the website

‎newsfragments/2787.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
``dials.generate_distortion_maps``: Correct definitions for creating elliptical distortion correction maps.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
#include <boost/python.hpp>
22
#include <boost/python/def.hpp>
3-
#include <dials/algorithms/image/distortion/ellipse.h>
3+
#include <dials/algorithms/image/distortion/plane.h>
44

55
namespace dials { namespace algorithms { namespace boost_python {
66

77
using namespace boost::python;
88

9-
void export_create_elliptical_distortion_maps() {
10-
class_<CreateEllipticalDistortionMaps>("CreateEllipticalDistortionMaps", no_init)
9+
void export_create_plane_distortion_maps() {
10+
class_<PlaneLinearTransformationMaps>("PlaneLinearTransformationMaps", no_init)
1111
.def(init<const Panel &,
1212
scitbx::mat2<double>,
1313
scitbx::vec3<double>,
1414
scitbx::vec3<double>,
1515
scitbx::vec3<double>>(
1616
(arg("panel"), arg("ellipse_matrix"), arg("fast"), arg("slow"), arg("mid"))))
17-
.def("get_dx", &CreateEllipticalDistortionMaps::get_dx)
18-
.def("get_dy", &CreateEllipticalDistortionMaps::get_dy);
17+
.def("get_dx", &PlaneLinearTransformationMaps::get_dx)
18+
.def("get_dy", &PlaneLinearTransformationMaps::get_dy);
1919
}
2020

2121
BOOST_PYTHON_MODULE(dials_algorithms_image_distortion_ext) {
22-
export_create_elliptical_distortion_maps();
22+
export_create_plane_distortion_maps();
2323
}
2424

2525
}}} // namespace dials::algorithms::boost_python

‎src/dials/algorithms/image/distortion/ellipse.h renamed to ‎src/dials/algorithms/image/distortion/plane.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ namespace dials { namespace algorithms {
1414
using scitbx::vec2;
1515
using scitbx::vec3;
1616

17-
class CreateEllipticalDistortionMaps {
17+
class PlaneLinearTransformationMaps {
1818
public:
19-
CreateEllipticalDistortionMaps(const Panel &panel,
20-
const mat2<double> ellipse_matrix,
21-
const vec3<double> fast,
22-
const vec3<double> slow,
23-
const vec3<double> mid) {
19+
PlaneLinearTransformationMaps(const Panel &panel,
20+
const mat2<double> matrix,
21+
const vec3<double> fast,
22+
const vec3<double> slow,
23+
const vec3<double> mid) {
2424
std::size_t xsize = panel.get_image_size()[0];
2525
std::size_t ysize = panel.get_image_size()[1];
2626
dx_.resize(scitbx::af::c_grid<2>(ysize, xsize));
@@ -33,7 +33,7 @@ namespace dials { namespace algorithms {
3333
double x = offset * fast; // undistorted X coordinate (mm)
3434
double y = offset * slow; // undistorted Y coordinate (mm)
3535
vec2<double> distort =
36-
ellipse_matrix * vec2<double>(x, y); // distorted by ellipse matrix
36+
matrix * vec2<double>(x, y); // distorted by transformation matrix
3737

3838
// store correction in units of the pixel size
3939
dx_(j, i) = (x - distort[0]) / panel.get_pixel_size()[0];

0 commit comments

Comments
 (0)
Please sign in to comment.