def get_gpio(self, gpio_num):
        test_dir = self.config["test_gpio_base_dir"] + str(gpio_num)

        # Get values in GPIO simulated hardware files
        results = {}
        with open(test_dir + "/value", "r") as f:
            results["value"] = f.read()
        with open(test_dir + "/direction", "r") as f:
            results["direction"] = f.read()
        return results
A PETSc LGMap mapping process-local indices to global
dataset/ETHPy150Open IEEERobotics/bot/tests/test_bot.py/TestBot.get_gpio--crossover with--dataset/ETHPy150Open OP2/PyOP2/pyop2/petsc_base.py/MixedDataSet.unblocked_lgmap