Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataSet.aggregateData returns NaN when aggregating data nodes with just a single value #22

Closed
GoogleCodeExporter opened this issue Feb 13, 2016 · 4 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.Replace the 2008_Olympics.xml with the modified one attached
2.Run the HClusterStackExample
3.Put a debug point at dc.invalidateDisplayList();
4.Look at the aggregates output in the debugger (see screenshot attached) 
to see that the medal_count_avg = NaN for South Korea (which was modified 
to just have a single gold metal node)

What is the expected output? What do you see instead?
The expected would be the aggeration of the single node, but it returns NaN

What version of the product are you using? On what operating system?
I downloaded the May build version as well as R309 on Windows XP

Please provide any additional information below.

I have attached a screenshot of the debugger as well as the raw xml file 
used to simulate the condition.


Original issue reported on code.google.com by nprocto...@gmail.com on 25 Aug 2009 at 10:28

Attachments:

@GoogleCodeExporter
Copy link
Author

thanks for submitting this bug report.  We are making significant changes to 
DataSet, with more strongly typed 
classes to support grouping and aggregation.  We will be sure to test for 
single node collections in 
aggregation.

Original comment by twgonza...@gmail.com on 25 Aug 2009 at 11:54

@GoogleCodeExporter
Copy link
Author

These 'country' nodes should to be wrapped in a root 'countries' node for well 
formed XML (in the 
2008_Olympics example).

Aggregation is not functional if the XML has a root level node.

This becomes major in dealing with systems using XML typed objects.  



Original comment by jasonlst...@gmail.com on 27 Oct 2009 at 10:24

@GoogleCodeExporter
Copy link
Author

I fixed this issue in response to a question on the google group, but I'm only 
noticing it here now. Marking it as closed. The fix can be found in the 
development 
branch.

Original comment by mvand...@gmail.com on 4 Dec 2009 at 1:29

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Hi there, woudl it possible to just post how you fix. 
The version you have online is actually quite different from the one I'm using 
and it
actually renders my application useless.
Thanks in advance for your time.
Wils

Original comment by wilsoned...@gmail.com on 3 Mar 2010 at 3:28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant