Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

bug in chart demo #2

Open
jeromerousselot opened this issue Jun 29, 2010 · 1 comment
Open

bug in chart demo #2

jeromerousselot opened this issue Jun 29, 2010 · 1 comment

Comments

@jeromerousselot
Copy link
Contributor

When trying demo(charts, package='omnetpp'), I get:

dataset <- loadDataset(scalarFiles,

  •          add(type='scalar', select='module(Aloha.server) AND name("channel utilization")'),
    
  •          add(type='scalar', select='name(mean)'))
    
    xydata <- makeScatterChartDataset(dataset, xModule='.', xName='mean', isoAttrs='numHosts', averageReplications=TRUE)
    Error in split.default(seq_len(nrow(x)), f, drop = drop, ...) :
    Group length is 0 but data length > 0

In the dataset object, I can see the values in dataset$scalars$value.
There is nothing in dataset$bins, or in dataset$fields. I don't know if this is normal or not.

@omnetpp
Copy link
Collaborator

omnetpp commented Jun 29, 2010

I think makeScatterChartDataset has a bug.

That dataset$bins and dataset$fields is empty is normal, because although the selected scalar files contain histograms, the "add()" arguments to loadDataset() filters them out, and only the "mean" and "channel utilization" scalars get loaded. If you just do plain loadDataset(scalarFiles), the fields and bins will be there.

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

No branches or pull requests

1 participant