Commit 40cb4765ebef502879e3d34e3598f966c9c330d0

Authored by Ilyes Choubani
1 parent ae2e6114
Exists in master

Small correction help header for run_plugin

Showing 1 changed file with 4 additions and 18 deletions   Show diff stats
src/idl/dustem_run_plugins.pro
... ... @@ -13,7 +13,7 @@ help=help
13 13 ; dustem_run_plugins
14 14 ; PURPOSE:
15 15 ; runs the plugins according to their scopes
16   -; a N_ELEMENTS(PLUGINS)X N_ELEMENTS(PLUGINS) matrix is created to achieve this
  16 +; a N_ELEMENTS(PLUGINS)X N_ELEMENTS(SCOPES) matrix is created to achieve this
17 17 ; CATEGORY:
18 18 ; DUSTEM Wrapper, Distributed, Mid-Level, Plugins
19 19 ; CALLING SEQUENCE:
... ... @@ -206,22 +206,10 @@ FOR i=0L,n_elements(param_descs)-1 DO BEGIN
206 206 ENDFOR
207 207  
208 208 ;==============Runnig of the plugins according to their scopes==============
209   - ;idd=1
210   -
  209 +
211 210  
212 211 if keyword_set(avoid) then idd=product(indices[k,*]) else idd=total(indices[k,*])
213   -
214   -; FOR j=0L,n_elements(scopes)-1 DO BEGIN
215   -;
216   -; if (size(indices))[0] GT 1 then BEGIN
217   -;
218   -; if keyword_set(avoid) then idd *= indices(k,j) else idd += indices(k,j) ;the + is for the case when run_plugins is run with a scopes vector containing more than one element and when the avoid keyword isn't set. ( I do not know when this will occur but in the future, maybe the user will want to run 'ONLY' the plugins in the scopes vector)
219   -;
220   -;
221   -; ENDIF ELSE idd *= indices(k)
222   -;
223   -;
224   -; ENDFOR
  212 +
225 213 IF idd GE 1 THEN BEGIN
226 214  
227 215 str='((*!dustem_plugin).('+strtrim(k,2)+').spec)=ptr_new('+ftn+'(key=index,val=value)'+')' & str=str(0)
... ... @@ -233,9 +221,7 @@ FOR i=0L,n_elements(param_descs)-1 DO BEGIN
233 221 !dustem_current = ptr_new(st)
234 222  
235 223 endif
236   -
237   -
238   - idd = 1
  224 +
239 225 ENDIF
240 226  
241 227  
... ...