You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ESValueLabelDecorator>>chooseNonOverlappingValues has the line...
chosenValues add: (self values minValue: [:each | each value]).
but minValue: injects (Float infinity) so that if 'self values' is empty then (Float
infinity) is added to choseValues, which later are #rounded causing an error in the
Morph drawing and subsequent RSOD for the EyeSee morph.
I am not sure if I've done something wrong that causes 'self values' to be empty, but
in any case, this should not kill the Morph.
Just for further information, here is the triggering code...
browser transmit from: #navigationtree; to: #attributes; andShow:
[ :a |
a eyesee
title: 'Optimize' ;
diagram:
[ :renderer :input |
renderer scatterplot
diagramTitle: '@', input absorbedLoad asString , 'kW' ;
x: #ratedOutput ;
y: [ :m | m powerLossForAbsorbedLoad: input absorbedLoad ] ;
valueAxis ;
addXDecorator: ESValueLabelDecorator new ;
models: (LEKCatalogMotor catalog values sort: [ :m1 :m2 | m1 ratedOutput < m2
ratedOutput ]).
].
where if in a Workspace I do...
models:= (LEKCatalogMotor catalog values sort: [ :m1 :m2 | m1 ratedOutput < m2
ratedOutput ])'.
models collect: [ :m | m ratedOutput -> m powerLossForAbsorbedLoad: 24 ] explore
...then all the data looks okay.
Reported by benjamin.t.coman on 2013-03-30 16:42:41
The text was updated successfully, but these errors were encountered:
Here is an example to isolate the problem from my own code...
The following works as expected...
|diag|
diag := ESDiagramRenderer new.
(diag scatterplot)
y: [ :x | x squared ];
x: #value;
valueAxis;
models: {1. 2. 3. 4. 5}.
diag open
However replace with the line...
y: [ :x | x squared negated ];
and you get the error
Reported by benjamin.t.coman on 2013-03-31 13:30:00
Originally reported on Google Code with ID 923
Reported by
benjamin.t.coman
on 2013-03-30 16:42:41The text was updated successfully, but these errors were encountered: