def get_pwm(self, pwm_num):
        test_dir = self.config["test_pwm_base_dir"] + str(pwm_num)

        # Get values in PWM simulated hardware files
        results = {}
        with open(test_dir + "/run", "r") as f:
            results["run"] = f.read()
        with open(test_dir + "/duty_ns", "r") as f:
            results["duty_ns"] = f.read()
        with open(test_dir + "/period_ns", "r") as f:
            results["period_ns"] = f.read()
        with open(test_dir + "/polarity", "r") as f:
            results["polarity"] = f.read()
        return results
|PackURI| instance holding partname of this part, e.g.
dataset/ETHPy150Open IEEERobotics/bot/tests/test_bot.py/TestBot.get_pwm--crossover with--dataset/ETHPy150Open python-openxml/python-docx/docx/opc/part.py/Part.partname