class_docstr: A base interface for py:mod:`dipy` computations.
class_docstr_tok: ["A","base","interface","for","py",":","mod",":","`","dipy","`","computations","."]
code: def _get_gradient_table(self):
      bval = np.loadtxt(self.inputs.in_bval)
      bvec = np.loadtxt(self.inputs.in_bvec).T
      from dipy.core.gradients import gradient_table
  
      gtab = gradient_table(bval, bvec)
  
      gtab.b0_threshold = self.inputs.b0_thres
      return gtab
  
file_path: nipype/nipype/interfaces/dipy/base.py
imports: import os.path
  import inspect
  import numpy
  from ...None import logging
  from ..base import traits, File, isdefined, LibraryBaseInterface, BaseInterfaceInputSpec, TraitedSpec
label_desc: Use image node_id 1 for calling the DipyDiffusionInterface obj's underlying member method code with example usage: obj._get_gradient_table() and returns: gtab