Showing 1 of 5 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 = OrderedDict()
108 +
            self.model_vars = {}
109 109
110 110
        if self.agent_reporters:
111 -
            self.agent_vars = OrderedDict()
111 +
            self.agent_vars = {}
112 112
113 113
        # Make Compatible with Python 3.5
114 114
        self.datacollector_model_reporters = OrderedDict()
@@ -395,7 +395,6 @@
Loading
395 395
        raise StopIteration()
396 396
397 397
398 -
# TODO: No difference- deleting will remove whitespace issue
399 398
class BatchRunner(FixedBatchRunner):
400 399
    """ This class is instantiated with a model class, and model parameters
401 400
    associated with one or more values. It is also instantiated with model and
@@ -451,16 +450,28 @@
Loading
451 450
            display_progress: Display progress bar with time estimation?
452 451
453 452
        """
454 -
        super().__init__(
455 -
            model_cls,
456 -
            ParameterProduct(variable_parameters),
457 -
            fixed_parameters,
458 -
            iterations,
459 -
            max_steps,
460 -
            model_reporters,
461 -
            agent_reporters,
462 -
            display_progress,
463 -
        )
453 +
        if variable_parameters is None:
454 +
            super().__init__(
455 +
                model_cls,
456 +
                variable_parameters,
457 +
                fixed_parameters,
458 +
                iterations,
459 +
                max_steps,
460 +
                model_reporters,
461 +
                agent_reporters,
462 +
                display_progress,
463 +
            )
464 +
        else:
465 +
            super().__init__(
466 +
                model_cls,
467 +
                ParameterProduct(variable_parameters),
468 +
                fixed_parameters,
469 +
                iterations,
470 +
                max_steps,
471 +
                model_reporters,
472 +
                agent_reporters,
473 +
                display_progress,
474 +
            )
464 475
465 476
466 477
class BatchRunnerMP(BatchRunner):
Files Coverage
mesa 88.87%
Project Totals (20 files) 88.87%
1853.3
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
1853.1
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
1854.2
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
1853.2
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
1854.3
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
1854.1
TRAVIS_PYTHON_VERSION=3.6
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