Skip to content

Commit

Permalink
Fix scipy deprecation warning and doc build failure in pinkindexer.py (
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeilstenedmands authored Feb 26, 2024
1 parent 245dd44 commit d2f8e5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/2617.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix Deprecation warning and doc build failure for pinkindexer file
6 changes: 5 additions & 1 deletion src/dials/algorithms/indexing/lattice_search/pinkindexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import gemmi
import numpy as np
from scipy.spatial.transform.rotation import Rotation
from scipy.spatial.transform import Rotation

import iotbx.phil
from dxtbx.model import Crystal
Expand Down Expand Up @@ -348,6 +348,7 @@ def index_pink(
class PinkIndexer(Strategy):
"""
A lattice search strategy using the pinkIndexer algorithm.
For more info, see:
[Gevorkov Y, 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.](https://doi.org/10.1107/S2053273319015559)
"""
Expand All @@ -364,10 +365,13 @@ def __init__(
self, target_symmetry_primitive, max_lattices, params=None, *args, **kwargs
):
"""Construct PinkIndexer object.
Args:
target_symmetry_primitive (cctbx.crystal.symmetry): The target
crystal symmetry and unit cell
max_lattices (int): The maximum number of lattice models to find
params (phil,optional): Phil params
"""
super().__init__(params=None, *args, **kwargs)
Expand Down

0 comments on commit d2f8e5f

Please sign in to comment.