Skip to content

Commit

Permalink
fix bugs of random generator setting
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiim committed Jun 7, 2024
1 parent 79c74c5 commit 4073cbe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classical_doa/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "1.0.1"
__author__ = 'Qian Xu'
__version__ = "1.0.2"
__author__ = "Qian Xu"
2 changes: 2 additions & 0 deletions classical_doa/arrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def __init__(

if rng is None:
self._rng = np.random.default_rng()
else:
self._rng = rng

@property
def num_antennas(self):
Expand Down
2 changes: 2 additions & 0 deletions classical_doa/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ def __init__(self, nsamples, fs, rng=None):

if rng is None:
self._rng = np.random.default_rng()
else:
self._rng = rng

@property
def fs(self):
Expand Down

0 comments on commit 4073cbe

Please sign in to comment.