Skip to content

Commit b6a6802

Browse files
committed
fixes regression showing too many decimal places in analyzer results
1 parent f91933e commit b6a6802

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/artisanlib/main.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -6813,8 +6813,8 @@ def curveSimilarity2(self,exp:int=-1,analysis_starttime:float=0,analysis_endtime
68136813
mindelta = float('nan')
68146814
ioi_start = ''
68156815
ioi_duration = ''
6816-
ioi_maxdelta = ''
6817-
ioi_abcprime = ''
6816+
ioi_maxdelta = 0.
6817+
ioi_abcprime = 0.
68186818
maxdeltas_seg = numpy.empty(0)
68196819
deltatimes_seg:npt.NDArray[numpy.double] = numpy.empty(0)
68206820
timeindexs_seg:npt.NDArray[numpy.int64] = numpy.empty(0, dtype=numpy.int64)
@@ -7007,7 +7007,7 @@ def replNone(a:'npt.NDArray[numpy.double]', nv:'npt.NDArray[numpy.int64]') -> 'n
70077007
except Exception: # pylint: disable=broad-except
70087008
tra = numpy.trapz(ioi_abs_deltas, x=times_all) # type:ignore [attr-defined, unused-ignore]
70097009
ioi_abc_deltas = float(numpy.sum(tra))
7010-
ioi_abcprime = str(ioi_abc_deltas / ioi_seconds)
7010+
ioi_abcprime = ioi_abc_deltas / ioi_seconds
70117011

70127012
# fit RoR in C/min/min
70137013
if exp == 2:

0 commit comments

Comments
 (0)