File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -211,3 +211,29 @@ def _list_outputs(self):
211
211
"_run_interface" : _run_interface ,
212
212
"_list_outputs:" : _list_outputs })
213
213
return newclass
214
+
215
+
216
+ def get_dipy_workflows (module ):
217
+ """Search for DIPY workflow class.
218
+
219
+ Parameters
220
+ ----------
221
+ module : object
222
+ module object
223
+
224
+ Returns
225
+ -------
226
+ l_wkflw : list of tuple
227
+ This a list of tuple containing 2 elements:
228
+ Worflow name, Workflow class obj
229
+
230
+ Examples
231
+ --------
232
+ >>> from dipy.workflows import align
233
+ >>> get_dipy_workflows(align)
234
+
235
+ """
236
+ return [(m , obj ) for m , obj in inspect .getmembers (module )
237
+ if inspect .isclass (obj ) and
238
+ issubclass (obj , module .Workflow ) and
239
+ m not in ['Workflow' , 'CombinedWorkflow' ]]
You can’t perform that action at this time.
0 commit comments