def METHOD_NAME(self, idx):
    if idx is None:
        return 0.0
    if idx < 1 or idx > self.platform['num_psus']:
        print("Invalid index %d\n" % idx)
        return 0.0
    device = "PSU"+"%d" % (idx)
    output = pddf_obj.get_attr_name_output(device, "psu_i_out")
    if not output:
        return 0.0
    i_out = output['status']
    # current in mA
    return float(i_out)/1000