Skip to content

Commit

Permalink
Revert "added if clause for more than two given ordinal parameters"
Browse files Browse the repository at this point in the history
  • Loading branch information
mcw92 authored Sep 12, 2024
1 parent db2b6da commit 74cc0bb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions propulate/propagators/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 74cc0bb

Please sign in to comment.