Skip to content

Commit

Permalink
Added a check if options dict is provided or not
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekmittal15 committed Dec 3, 2022
1 parent 02e6a61 commit 4b7cf27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion procrustes/psdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ def psdp_projgrad(
"f_tol": 1e-12
}

options.update(options_dict)
if options_dict:
options.update(options_dict)

# Performing some precomputations
aat = a@a.conj().T
Expand Down

0 comments on commit 4b7cf27

Please sign in to comment.