From 8b12fe66defd93f77f67718d80b3dc264a7b79a1 Mon Sep 17 00:00:00 2001 From: ichoubani Date: Thu, 17 Feb 2022 11:00:01 +0100 Subject: [PATCH] restoring activate_plugins --- src/idl/dustem_activate_plugins.pro | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/idl/dustem_activate_plugins.pro b/src/idl/dustem_activate_plugins.pro index f2693d1..7dd4564 100755 --- a/src/idl/dustem_activate_plugins.pro +++ b/src/idl/dustem_activate_plugins.pro @@ -61,7 +61,7 @@ FOR i=0L,n_elements(p_min)-1 DO BEGIN vari = strmid(PDO_tmp(0),ii+1) ; Test variable to be used to alter the initialization of the index and value arrays below as a keyword can be a scalar or a string - + ; Initialization of the index and value arrays. These arrays will be used (below) when calling the plugins (with the default key=key and val=val keywords) if strlen(strtrim(string(vari),2)) gt 1 then begin @@ -85,12 +85,13 @@ FOR i=0L,n_elements(p_min)-1 DO BEGIN k=where(strmid(tag_names(*!dustem_scope),0,4) eq strmid(strupcase(strmid(ftn,14)),0,4),counte) ; Selecting a plugin through matching the string name of the plugin form the scope system variable with the one read from the parameter description vector - + ;Dry run of the plugins to obtain their scopes and run them accordingly (an advanced user might want to add their own lines here) + str='toto='+ftn+'(scope=scope)' + toto=execute(str) (*!dustem_scope).(k)=ptr_new(scope) - ;str='((*!dustem_scope).('+strtrim(k,2)+'))=ptr_new('+ftn+'(/scope)'+')'[0] - + IF !dustem_verbose NE 0 THEN message,strupcase(strmid(ftn,7)),/info -- libgit2 0.21.2