Skip to content

Commit

Permalink
Fix goof in last hotfix to CNMFParams
Browse files Browse the repository at this point in the history
  • Loading branch information
pgunn committed Apr 26, 2024
1 parent 41cd982 commit c45b9aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions caiman/source_extraction/cnmf/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -1124,8 +1124,8 @@ def change_params(self, params_dict, allow_legacy:bool=True, warn_unused:bool=Tr

consumed = {} # Keep track of what parameters in params_dict were used to set something in params (just for legacy API)
nagged_once = False # So we don't nag people multiple times in the same call
for paramkey in params_dict and isinstance(params_dict[paramkey], dict): # Latter half is because of scoped keys with the same name as categories, because we apparently have those. ring_CNN is an example.
if paramkey in list(self.__dict__.keys()): # Proper pathed part
for paramkey in params_dict:
if paramkey in list(self.__dict__.keys()) and isinstance(params_dict[paramkey], dict): # Handle proper pathed part. Latter half of the conditional is because of scoped keys with the same name as categories, because we apparently have those. ring_CNN is an example.
cat_handle = getattr(self, paramkey)
for k, v in params_dict[paramkey].items():
if k == 'nb' and paramkey != 'init':
Expand Down

0 comments on commit c45b9aa

Please sign in to comment.