From a0db9dabf6e013a7bfea47e6fee895ad2bb04cd6 Mon Sep 17 00:00:00 2001 From: Kevin Lewis Date: Fri, 5 Jul 2024 13:03:33 -0400 Subject: [PATCH] Remove empty returns --- hexrd/material/spacegroup.py | 4 ---- scripts/calibrate_from_rotation_series.py | 4 +--- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/hexrd/material/spacegroup.py b/hexrd/material/spacegroup.py index 9425ce6d5..1d296d3d5 100644 --- a/hexrd/material/spacegroup.py +++ b/hexrd/material/spacegroup.py @@ -133,8 +133,6 @@ def _set_sgnum(self, v): self._pointGroup = pglg[0] self._laueGroup = pglg[1] - return - sgnum = property(_get_sgnum, _set_sgnum, None, "Space group number") @@ -1967,8 +1965,6 @@ def testHKLs(): print(' number of hkls: ', len(hkls)) print(hkls) - return - if __name__ == '__main__': # diff --git a/scripts/calibrate_from_rotation_series.py b/scripts/calibrate_from_rotation_series.py index e255ce272..174233d9a 100644 --- a/scripts/calibrate_from_rotation_series.py +++ b/scripts/calibrate_from_rotation_series.py @@ -221,9 +221,7 @@ def calibrate_instrument_from_sx( panel.tilt = fit_params[ii:ii + 3] panel.tvec = fit_params[ii + 3:ii + 6] ii += 6 - # !!! use jj to do distortion... - if panel.distortion is not None: - pass + # !!! use jj to do distortion? return fit_params, resd, sim_final