Skip to content

Commit

Permalink
updated umato to deal with the bug according to the number of hubs
Browse files Browse the repository at this point in the history
  • Loading branch information
hj-n committed Apr 3, 2023
1 parent 0d2c0c6 commit ec9b6d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/umato/umato_.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,8 @@ def __init__(
self.ll = ll

def _validate_parameters(self):
if self.hub_num >= self._raw_data.shape[0]:
raise ValueError("hub_num must be less than the number of data points")
if self.set_op_mix_ratio < 0.0 or self.set_op_mix_ratio > 1.0:
raise ValueError("set_op_mix_ratio must be between 0.0 and 1.0")
if self.gamma < 0.0:
Expand Down

0 comments on commit ec9b6d4

Please sign in to comment.