omnetpp / omnetpp-resultfiles

Abandoned project.
27 stars 18 forks source link

bug in chart demo #2

Open jeromerousselot opened 14 years ago

jeromerousselot commented 14 years ago

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 commented 14 years ago

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.