Revision b6158841 simulator.py

View differences:

simulator.py
47 47
        self.expName = sectionExp
48 48
        self.mob = config.configMobility(self.params)
49 49
        self.OP = outPath
50
        NN = self.params['nodes_number']
50
        NN = -1
51
        if 'nodes_number' in self.params:
52
            NN = self.params['nodes_number']
53
        else:
54
            NN = len(next(self.mob))
55
            self.params['nodes_number'] = NN
51 56
        self.statsFiles = {}
52 57
        for i in range(NN):
53 58
            f = open(outPath+"/stats"+'%08d' % i+".csv", 'a+')

Also available in: Unified diff