src/data_utils/loader.py
def return_date(file_name):
    """Auxilliary function which returns datetime object from Traffic4Cast filename.

        Args.:
            file_name (str): file name, e.g., '20180516_100m_bins.h5'

        Returns: date string, e.g., '2018-05-16'
    """

    match = re.search(r'\d{4}\d{2}\d{2}', file_name)
    date = datetime.datetime.strptime(match.group(), '%Y%m%d').date()
    return date
Auxilliary function which returns datetime object from Traffic4Cast filename.

        Args.:
            file_name (str): file name, e.g., '20180516_100m_bins.h5'

        Returns: date string, e.g., '2018-05-16'
    
Auxilliary function which returns datetime object from Traffic4Cast filename.


Auxilliary function which returns datetime object from Traffic4Cast filename .
def return_date(file_name):
    match = re.search(r'\d{4}\d{2}\d{2}', file_name)
    date = datetime.datetime.strptime(match.group(), '%Y%m%d').date()
    return date
def return_date ( file_name ) : match = re . search ( r'\d{4}\d{2}\d{2}' , file_name ) date = datetime . datetime . strptime ( match . group ( ) , '%Y%m%d' ) . date ( ) return date
Auxilliary function which returns datetime object from Traffic4Cast filename.
Auxilliary function which returns datetime object from Traffic4Cast filename .
"""Auxilliary function which returns datetime object from Traffic4Cast filename.

        Args.:
            file_name (str): file name, e.g., '20180516_100m_bins.h5'

        Returns: date string, e.g., '2018-05-16'
    """
file_name