Skip to content

Commit

Permalink
Remove deprecated set_slow_fast_beam_centre_mm function (#544)
Browse files Browse the repository at this point in the history
This was deprecated as of 605c39.
  • Loading branch information
ndevenish authored Sep 14, 2022
1 parent 774576e commit 47cc7c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 1 addition & 0 deletions newsfragments/544.removal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The deprecated ``set_slow_fast_beam_centre_mm`` function has been removed. Please use ``set_fast_slow_beam_centre_mm`` instead.
9 changes: 0 additions & 9 deletions src/dxtbx/model/detector_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import itertools
import math
import warnings
from operator import itemgetter
from typing import TYPE_CHECKING, Tuple, cast

Expand Down Expand Up @@ -175,14 +174,6 @@ def all():
]


def set_slow_fast_beam_centre_mm(detector, beam, beam_centre, panel_id=None):
beam_centre[0], beam_centre[1] = beam_centre[1], beam_centre[0]
warnings.warn(
"set_slow_fast_beam_centre_mm is deprecated", DeprecationWarning, stacklevel=2
)
return set_fast_slow_beam_centre_mm(detector, beam, beam_centre, panel_id)


def set_fast_slow_beam_centre_mm(detector, beam, beam_centre, panel_id=None):
"""detector and beam are dxtbx objects,
beam_centre is a tuple of (fast, slow) mm coordinates.
Expand Down

0 comments on commit 47cc7c8

Please sign in to comment.