Skip to content

Commit

Permalink
pair down rng logic
Browse files Browse the repository at this point in the history
  • Loading branch information
dougbrn committed Dec 22, 2023
1 parent f8c5847 commit bc5ff2b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/tape/ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -1870,10 +1870,8 @@ def select_random_timeseries(self, seed=None):
in larger partitions.
"""
if seed is not None:
rng = np.random.default_rng(seed)
else:
rng = np.random

rng = np.random.default_rng(seed)

# We will select one partition at random to select an object from
partitions = np.array(range(self.object.npartitions))
Expand Down

0 comments on commit bc5ff2b

Please sign in to comment.