Issue 923 in moose-technology: EyeSee red-square-of-death from ESValueLabelDecorator>>chooseNonOverlappingValues

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 923 in moose-technology: EyeSee red-square-of-death from ESValueLabelDecorator>>chooseNonOverlappingValues

moose-technology
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 923 by [hidden email]: EyeSee red-square-of-death from  
ESValueLabelDecorator>>chooseNonOverlappingValues
http://code.google.com/p/moose-technology/issues/detail?id=923

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.




--
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 923 in moose-technology: EyeSee red-square-of-death from ESValueLabelDecorator>>chooseNonOverlappingValues

moose-technology

Comment #1 on issue 923 by [hidden email]: EyeSee  
red-square-of-death from ESValueLabelDecorator>>chooseNonOverlappingValues
http://code.google.com/p/moose-technology/issues/detail?id=923

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


--
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 923 in moose-technology: EyeSee red-square-of-death from ESValueLabelDecorator>>chooseNonOverlappingValues

moose-technology
Updates:
        Status: WontFix

Comment #2 on issue 923 by [hidden email]: EyeSee red-square-of-death  
from ESValueLabelDecorator>>chooseNonOverlappingValues
http://code.google.com/p/moose-technology/issues/detail?id=923

I think this won't get fixed if we focus on Graph-ET

--
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 923 in moose-technology: EyeSee red-square-of-death from ESValueLabelDecorator>>chooseNonOverlappingValues

moose-technology

Comment #3 on issue 923 by [hidden email]: EyeSee  
red-square-of-death from ESValueLabelDecorator>>chooseNonOverlappingValues
http://code.google.com/p/moose-technology/issues/detail?id=923

fair enough

--
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev