Is it because the model has only one package? :)
In any case, the metric should have a check for size = 1.
Cheers, Doru
On 11 Oct 2011, at 16:22, Fabrizio Perin wrote:
Another question: basically all the Fuel tests end with an error because of a division by zero in this method:
relativeImportanceForSystem <MSEProperty: #relativeImportanceForSystem type: #Number> <MSEComment: 'The number of client packages normalized by the total number of packages'>
^ self lookUpPropertyNamed: #PRIS computedAs: [ self numberOfClientPackages / (self mooseModel allModelPackages size - 1)]
Something else changed lately that can make (self mooseModel allModelPackages size - 1) = 0?
Cheers,
Fabrizio
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Beauty is where we see it."