Skip to content

Commit

Permalink
Remove an unnecessary redirection
Browse files Browse the repository at this point in the history
Simplify a method call by directly calling the sub-call.
  • Loading branch information
benjaminhwilliams committed Apr 28, 2020
1 parent 4ed0b6f commit b4fbd3e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Modules/Scaler/DialsScaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def _do_multisweep_symmetry_analysis(self):
reind_refl,
reind_exp,
reindex_initial,
) = self._dials_symmetry_indexer_jiffy(
) = self._helper.dials_symmetry_indexer_jiffy(
[prescaled_experiments], [prescaled_reflections], refiners, multisweep=True
)

Expand Down Expand Up @@ -256,7 +256,7 @@ def _standard_scale_prepare(self):
_,
__,
___,
) = self._dials_symmetry_indexer_jiffy(
) = self._helper.dials_symmetry_indexer_jiffy(
[experiment], [reflections], [refiner]
)

Expand Down Expand Up @@ -1033,13 +1033,6 @@ def apply_reindex_operator_to_sweep_info(self, si, reindex_operator, reason):
"Reindexed with operator %s, reason is %s", reindex_operator, reason
)

def _dials_symmetry_indexer_jiffy(
self, experiments, reflections, refiners, multisweep=False
):
return self._helper.dials_symmetry_indexer_jiffy(
experiments, reflections, refiners, multisweep
)

def get_UBlattsymm_from_sweep_info(self, sweep_info):
"""Calculate U, B and lattice symmetry from experiment."""
expt = load.experiment_list(sweep_info.get_experiments())[0]
Expand Down

0 comments on commit b4fbd3e

Please sign in to comment.