Closed maxitg closed 3 years ago
Due to a weed in Wolfram Language, MeanAround sometimes returns a single number instead of Around:
MeanAround
Around
In[] := MeanAround[{1, 1}] Out[] = 1
This sometimes breaks ./performanceTest.wls, which assumes Around objects.
./performanceTest.wls
This PR implements a workaround for this case.
magnitude = 1
differenceString
$ ./performanceTest.wls master HEAD 2 Testing 811551cb72de921652430003f56fcf25e4a8f185 Testing 19264e2884d6d3cc6831c1fcce2941225f7d217c Single-input rule 1 ± 0 % Medium rule 1 ± 0 % Sequential rule 1 ± 0 % Large rule 1 ± 0 % Exponential-match-count rule 1 ± 0 % CA emulator 1 ± 0 % Multiset addition 1 ± 0 %
This change is
Another issue could appear if the old timing is identically zero, so I added that case as well.
Changes
Due to a weed in Wolfram Language,
MeanAround
sometimes returns a single number instead ofAround
:This sometimes breaks
./performanceTest.wls
, which assumesAround
objects.This PR implements a workaround for this case.
Examples
magnitude = 1
indifferenceString
does work:This change is