omnetpp-resultfiles icon indicating copy to clipboard operation
omnetpp-resultfiles copied to clipboard

bug in chart demo

Open jeromerousselot opened this issue 15 years ago • 1 comments

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.

jeromerousselot avatar Jun 29 '10 08:06 jeromerousselot

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.

omnetpp avatar Jun 29 '10 09:06 omnetpp