Skip to content

Commit

Permalink
STY: pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
jklenzing committed Dec 20, 2023
1 parent d608508 commit b84fefb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysatModels/utils/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,8 +859,8 @@ def extract_modelled_observations(inst, model, inst_name, mod_name,
if mod_ind in mind and pair_method == 'closest':
# Test to see if this model observation has multiple pairings
old_ind = mind.index(mod_ind)
if(del_sec[inst_ind, mod_ind]
< del_sec[iind[old_ind], mind[old_ind]]):
if (del_sec[inst_ind, mod_ind] < del_sec[iind[old_ind],
mind[old_ind]]):
# If this one is closer, keep it
iind[old_ind] = inst_ind
mind[old_ind] = mod_ind
Expand Down

0 comments on commit b84fefb

Please sign in to comment.