class_docstr: Class to create coordinate maps of different dimensions
      
class_docstr_tok: ["Class","to","create","coordinate","maps","of","different","dimensions"]
docstr: Create affine or non-affine coordinate map
  
  Parameters
  ----------
  \*args :
      Arguments to ``make_affine`` or ``make_cmap`` methods. We check the
      first argument to see if it is a scalar or an affine, and pass the
      \*args, \*\*kwargs to ``make_cmap`` or ``make_affine``
      respectively
  \*\*kwargs:
      See above
  
  Returns
  -------
  cmap : ``CoordinateMap`` or ``AffineTransform``
      Affine if the first \*arg was an affine array, otherwise a
      Coordinate Map.
docstr_tok: ["Create","affine","or","non-affine","coordinate","map","Parameters","--","--","--","--","--","\\","*","args",":","Arguments","to","``","make_affine","``","or","``","make_cmap","``","methods",".","We","check","the","first","argument","to","see","if","it","is","a","scalar","or","an","affine",",","and","pass","the","\\","*","args",",","\\","*","\\","*","kwargs","to","``","make_cmap","``","or","``","make_affine","``","respectively","\\","*","\\","*","kwargs",":","See","above","Returns","--","--","--","-","cmap",":","``","CoordinateMap","``","or","``","AffineTransform","``","Affine","if","the","first","\\","*","arg","was","an","affine","array",",","otherwise","a","Coordinate","Map","."]
code: def __call__(self, *args, **kwargs):
      r"""Create affine or non-affine coordinate map
  
      Parameters
      ----------
      \*args :
          Arguments to ``make_affine`` or ``make_cmap`` methods. We check the
          first argument to see if it is a scalar or an affine, and pass the
          \*args, \*\*kwargs to ``make_cmap`` or ``make_affine``
          respectively
      \*\*kwargs:
          See above
  
      Returns
      -------
      cmap : ``CoordinateMap`` or ``AffineTransform``
          Affine if the first \*arg was an affine array, otherwise a
          Coordinate Map.
      """
      arg0 = np.asarray(args[0])
      if arg0.shape == ():
          return self.make_cmap(*args, **kwargs)
      return self.make_affine(*args, **kwargs)
  
imports: import warnings
  import numpy
  import numpy.linalg
  from nibabel import io_orientation
  from nibabel.affines import from_matvec, to_matvec
  from .coordinate_system import CoordinateSystem, is_coordsys, safe_dtype
  from .coordinate_system import product
label_desc: Use image node_id 4 for calling the CoordMapMaker obj's underlying member method code with example usage: obj.__call__() and returns: self, self