Skip to content

Commit

Permalink
TST Codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Jul 18, 2020
1 parent dda874a commit 9445463
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions apstools/plans.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,16 +288,16 @@ def peak_analysis():
x_range = abs(max(ps.x_data) - min(ps.x_data))

if final is None:
logger.error(f"centroid is None")
logger.error("centroid is None")
final = old_position
elif fwhm is None:
logger.error(f"FWHM is None")
logger.error("FWHM is None")
final = old_position
elif hi < peak_factor*lo:
logger.error(f"no clear peak: {hi} < {peak_factor}*{lo}")
logger.error("no clear peak: %f < %f*%f", hi, peak_factor, lo)
final = old_position
elif fwhm > width_factor*x_range:
logger.error(f"FWHM too large: {fwhm} > {width_factor}*{x_range}")
logger.error("FWHM too large: %f > %f*%f", fwhm, width_factor, x_range)
final = old_position
else:
aligned = True
Expand Down
2 changes: 1 addition & 1 deletion apstools/synApps/swait.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
from ophyd import EpicsSignal
from ophyd.signal import EpicsSignalBase

from ._common import EpicsRecordDeviceCommonAll, EpicsRecordFloatFields
from ._common import EpicsRecordDeviceCommonAll
from .. import utils as APS_utils

__all__ = """
Expand Down

0 comments on commit 9445463

Please sign in to comment.