Skip to content

Commit

Permalink
Fix bug in ENVI.py related to negative data values
Browse files Browse the repository at this point in the history
  • Loading branch information
DoronHav committed May 20, 2024
1 parent 5a5cb74 commit 9928afc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scenvi/ENVI.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def __init__(
self.cov_coeff = cov_coeff
self.kl_coeff = kl_coeff

if self.sc_dist == "norm" or self.spatial_dist == "norm" or self.spatial_data.X.min<0 or self.sc_data.X.min<0:
if self.sc_dist == "norm" or self.spatial_dist == "norm" or self.spatial_data.X.min()<0 or self.sc_data.X.min()<0:
self.log_input = -1
else:
self.log_input = log_input
Expand Down

0 comments on commit 9928afc

Please sign in to comment.