Skip to content

[BUG] Missing Sorts before integerize_1d usage #102

@GregorSchroeder

Description

@GregorSchroeder

Describe the bug

The integerize_1d function using the "weighted_random" methodology has a stochastic element that must be controlled through a random seed and generator as well as by ensuring the data it is being applied to has a consistent order. The current implementation in #98 did not add explicit sorts before usage of the integerize_1d function.

To Reproduce

See annual_cycle.py and calculate_population.py.

Expected behavior

Data passed to integerize_1d should be explicitly sorted.

Potential resolution

Explicitly sort prior to passing into integerize_1d.

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions