Add target profile icon

This commit is contained in:
DarkPhoenix
2019-07-26 13:07:33 +03:00
parent a5b22aa112
commit d803c8374f
2 changed files with 6 additions and 5 deletions

View File

@@ -152,11 +152,12 @@ class FitGraph(metaclass=ABCMeta):
ys = [ys[0], ys[0]]
else:
raise
# Same for NaN which means we tried to denormalize infinity values, which might be the
# case for the ideal target profile with infinite signature radius
if mainInput.unit == xSpec.unit == '%' and all(math.isnan(x) for x in xs):
xs = [min(mainInput.value), max(mainInput.value)]
ys = [ys[0], ys[0]]
else:
# Same for NaN which means we tried to denormalize infinity values, which might be the
# case for the ideal target profile with infinite signature radius
if mainInput.unit == xSpec.unit == '%' and all(math.isnan(x) for x in xs):
xs = [min(mainInput.value), max(mainInput.value)]
ys = [ys[0], ys[0]]
return xs, ys
_normalizers = {}

BIN
imgs/gui/target_small.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB