Skip to content

Commit

Permalink
for theta unset warning
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgigante committed Mar 27, 2019
1 parent 81eb664 commit 649bda0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphtools/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,9 @@ def _check_symmetrization(self, kernel_symm, theta):

if kernel_symm == 'theta':
if theta is None:
warnings.warn("kernel_symm='theta' but theta not given. "
"Defaulting to theta=0.5.")
self.theta = theta = 1
warnings.warn("kernel_symm='theta' but theta not given. "
"Defaulting to theta={}.".format(self.theta))
elif not isinstance(theta, numbers.Number) or \
theta < 0 or theta > 1:
raise ValueError("theta {} not recognized. Expected "
Expand Down

0 comments on commit 649bda0

Please sign in to comment.