Skip to content

Commit

Permalink
Fix bug with thresh=None
Browse files Browse the repository at this point in the history
  • Loading branch information
yachmena committed Aug 23, 2023
1 parent b0ad66f commit 9103cd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion richmol/rot/labtens.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def __init__(self, arg, basis, thresh=None, **kwargs):

# self.basis = basis # can be deprecated, replaced by `symtop_basis`

csr_mat = lambda m, thr: csr_matrix(np.where(np.abs(m) > thr, m, 0))
csr_mat = lambda m, thr: csr_matrix(m) if thr==None else csr_matrix(np.where(np.abs(m) > thr, m, 0))
self.symtop_basis = {
round(float(J), 1): {
sym: {
Expand Down

0 comments on commit 9103cd9

Please sign in to comment.