<gh_stars>1-10
def comp_Ld(self):
    """Compute and set the stator winding inductance along d-axis for the EEC

    Parameters
    ----------
    self : EEC_PMSM
        an EEC_PMSM object

    """

    Id = self.OP.get_Id_Iq()["Id"]
    if Id not in [None, 0]:
        if self.Phid is None:
            self.comp_Phidq()
        if self.Phid_mag is None:
            self.comp_Phidq_mag()
        self.Ld = (self.Phid - self.Phid_mag) / Id
    else:
        self.Ld = None

def comp_Ld(self):
    """Compute and set the stator winding inductance along d-axis for the EEC

    Parameters
    ----------
    self : EEC_PMSM
        an EEC_PMSM object

    """

    Id = self.OP.get_Id_Iq()["Id"]
    if Id not in [None, 0]:
        if self.Phid is None:
            self.comp_Phidq()
        if self.Phid_mag is None:
            self.comp_Phidq_mag()
        self.Ld = (self.Phid - self.Phid_mag) / Id
    else:
        self.Ld = None
Compute and set the stator winding inductance along d-axis for the EEC      Parameters     ----------     self : EEC_PMSM         an EEC_PMSM object