Skip to content

Commit

Permalink
Merge pull request #626 from Julat300/ContrastDir
Browse files Browse the repository at this point in the history
Made the contrast_curve function more robust to classes with inherited attributes
  • Loading branch information
VChristiaens authored Dec 18, 2023
2 parents 6028e7e + 20da21c commit 5785214
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vip_hci/metrics/contrcurve.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ def throughput(
mod = algo.__module__[:idx]
tmp = __import__(mod, fromlist=[algo_name.upper()+'_Params'])
algo_params = getattr(tmp, algo_name.upper()+'_Params')
argl = [attr for attr in vars(algo_params)]
argl = [attr for attr in dir(algo_params)]
if "cube" in argl and "angle_list" in argl and "verbose" in argl:
# (ii) a VIP postproc algorithm [OK]
pass
Expand Down Expand Up @@ -870,7 +870,7 @@ def throughput(
tmp = __import__(
mod, fromlist=[algo_name.upper()+'_Params'])
algo_params = getattr(tmp, algo_name.upper()+'_Params')
arg = [attr for attr in vars(algo_params)]
arg = [attr for attr in dir(algo_params)]
if "cube" in arg and "angle_list" in arg and "verbose" in arg:
# (ii) a VIP postproc algorithm [OK]
pass
Expand Down Expand Up @@ -996,7 +996,7 @@ def throughput(
tmp = __import__(
mod, fromlist=[algo_name.upper()+'_Params'])
algo_params = getattr(tmp, algo_name.upper()+'_Params')
arg = [attr for attr in vars(algo_params)]
arg = [attr for attr in dir(algo_params)]
if "cube" in arg and "angle_list" in arg and "verbose" in arg:
# (ii) a VIP postproc algorithm [OK]
pass
Expand Down

0 comments on commit 5785214

Please sign in to comment.