diff --git a/propulate/propagators/base.py b/propulate/propagators/base.py index a1ffb11..f56b779 100644 --- a/propulate/propagators/base.py +++ b/propulate/propagators/base.py @@ -537,10 +537,7 @@ def __call__(self, *inds: Individual) -> Individual: # type: ignore[override] if isinstance( self.limits[limit][0], int ): # If ordinal trait of type integer. - if len(self.limits[limit]) == 2: # Selecting one value in range of ordinal parameter - position[limit] = self.rng.randint(*self.limits[limit]) - else: # Selecting one distinct value from ordinal parameters - position[limit] = self.rng.choice(self.limits[limit]) + position[limit] = self.rng.randint(*self.limits[limit]) elif isinstance( self.limits[limit][0], float ): # If interval trait of type float.