code: def singlediode(self, photocurrent, saturation_current,
                      resistance_series, resistance_shunt, nNsVth,
                      ivcurve_pnts=None):
          
          return singlediode(photocurrent, saturation_current,
                             resistance_series, resistance_shunt, nNsVth,
                             ivcurve_pnts=ivcurve_pnts)
docs: Wrapper around the :py:func:`singlediode` function.
  
          Parameters
          ----------
          See pvsystem.singlediode for details
  
          Returns
          -------
          See pvsystem.singlediode for details