def positions(self):
    pathTpl = ((self.path + '/') + '{0}')
    with self:
        itemPath = pathTpl.format('pos_0')
        pos_0 = self._get_array_data(itemPath)
        itemPath = pathTpl.format('pos_1')
        pos_1 = self._get_array_data(itemPath)
        itemPath = pathTpl.format('motor_0')
        motor_0 = self._get_scalar_data(itemPath)
        itemPath = pathTpl.format('motor_1')
        motor_1 = self._get_scalar_data(itemPath)
        itemPath = pathTpl.format('n_0')
        n_0 = self._get_scalar_data(itemPath)
        itemPath = pathTpl.format('n_1')
        n_1 = self._get_scalar_data(itemPath)
    return ScanPositions(motor_0=motor_0, pos_0=pos_0, motor_1=motor_1, pos_1=pos_1, shape=(n_0, n_1))
def positions(self):
    pathTpl = ((self.path + '/') + '{0}')
    with self:
        itemPath = pathTpl.format('pos_0')
        pos_0 = self._get_array_data(itemPath)
        itemPath = pathTpl.format('pos_1')
        pos_1 = self._get_array_data(itemPath)
        itemPath = pathTpl.format('motor_0')
        motor_0 = self._get_scalar_data(itemPath)
        itemPath = pathTpl.format('motor_1')
        motor_1 = self._get_scalar_data(itemPath)
        itemPath = pathTpl.format('n_0')
        n_0 = self._get_scalar_data(itemPath)
        itemPath = pathTpl.format('n_1')
        n_1 = self._get_scalar_data(itemPath)
    return ScanPositions(motor_0=motor_0, pos_0=pos_0, motor_1=motor_1, pos_1=pos_1, shape=(n_0, n_1))