# A python-based importer for iolite 4 starts with some metadata
# / Type: Importer
# / Name: MyImporter
# / Authors: My name
# / Description: An importer for the masses
# / References: None
# / Version: 1.0
# / Contact: myemail@example.com

import numpy as np
import pandas as pd
import re
from datetime import datetime

def accepted_files():
    return ".csv"


def correct_format():
    """
    Return either True or False, indicating whether the file can be loaded.
    """
    return False


def import_data():
    """
    This method uses the provided file name (stored in importer.fileName),
    parses its contents, and registers time series data with iolite by
    emitting the timeSeriesData signal.

    Note that emitting signals here simply means calling the corresponding
    function, e.g. importer.message('My message')

    Importer progress can be updated via the 'message' and 'progress'
    signals. These will be displayed in the iolite interface.

    When finished, the 'finished' signal should be emitted.
    """

    importer.message("Finished")
    importer.progress(100)
    importer.finished()
