Skip to content

Commit cef8aef

Browse files
authored
Merge pull request #15 from ajithabhks/variance_bug_fix
Solve invalid value in variance calculation
2 parents 586160d + 409d412 commit cef8aef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sigmt/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""
22
Returns version of the package
33
"""
4-
__version__ = "2.0.1"
4+
__version__ = "2.0.2"

sigmt/core/robust_estimation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def get_variance(self) -> None:
379379
else:
380380
db = 100
381381

382-
self.z1_var = np.sqrt(np.real(da))
383-
self.z2_var = np.sqrt(np.real(db))
382+
self.z1_var = np.sqrt(abs(np.real(da)))
383+
self.z2_var = np.sqrt(abs(np.real(db)))
384384
#
385385
self.predicted_coherency = np.sqrt(coh)

0 commit comments

Comments
 (0)