Showing 1 of 1 files from the diff.

@@ -105,10 +105,10 @@
Loading
105 105
        self.agent_reporters = agent_reporters
106 106
107 107
        if self.model_reporters:
108 -
            self.model_vars = {}
108 +
            self.model_vars = OrderedDict()
109 109
110 110
        if self.agent_reporters:
111 -
            self.agent_vars = {}
111 +
            self.agent_vars = OrderedDict()
112 112
113 113
        # Make Compatible with Python 3.5
114 114
        self.datacollector_model_reporters = OrderedDict()
@@ -274,7 +274,7 @@
Loading
274 274
275 275
    def collect_model_vars(self, model):
276 276
        """ Run reporters and collect model-level variables. """
277 -
        model_vars = OrderedDict()
277 +
        model_vars = {}
278 278
        for var, reporter in self.model_reporters.items():
279 279
            model_vars[var] = reporter(model)
280 280
@@ -282,7 +282,7 @@
Loading
282 282
283 283
    def collect_agent_vars(self, model):
284 284
        """ Run reporters and collect agent-level variables. """
285 -
        agent_vars = OrderedDict()
285 +
        agent_vars = {}
286 286
        for agent in model.schedule._agents.values():
287 287
            agent_record = {}
288 288
            for var, reporter in self.agent_reporters.items():
@@ -524,7 +524,7 @@
Loading
524 524
        run_iter_args, total_iterations = self._make_model_args_mp()
525 525
        # register the process pool and init a queue
526 526
        # store results in ordered dictionary
527 -
        results = OrderedDict()
527 +
        results = {}
528 528
529 529
        if self.processes > 1:
530 530
            with tqdm(total_iterations, disable=not self.display_progress) as pbar:
Files Coverage
mesa 86.41%
Project Totals (20 files) 86.41%
1821.3
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
1821.2
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
1821.4
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading