def generatePath(pointer, timeSeriesName):
    """
    Outputs the path to find the specified JSON file.

    Input:
    - pointer: float
        Folder number to find the JSON file.
    - timeSeriesName: string
        'deviceMotion_walking_outbound', 'deviceMotion_walking_rest' or 'pedometer_walking_outbound'
    """
    pointer = int(pointer)
    path = '../data/{}/{}/{}/'
    path = path.format(timeSeriesName, str(pointer % 1000), str(pointer))
    return path