parameters_testing_optimum_finding.py
def analyse_data(data: dict) -> list:
    """
    Analysing the inputted data and returning the optimal values
    """

    optimal_values = {}

    for parameter in data.keys():
        elem = data[parameter]
        print("len - {}".format(len(elem.keys())))

        keys = []
        time_values = []
        error_values = []

        for key, value in elem.items():
            keys.append(float(key))
            time_values.append(float(value["time"]))
            error_values.append(float(value["error"]))

        # Seeing which key has the lowest multiplication of time and error
        products = []
        for time, error in zip(time_values, error_values):
            product = round(time * error, 4)
            products.append(product)

        min_value = min(products)
        min_index = products.index(min_value)
        optimal_value = keys[min_index]

        optimal_values[parameter] = optimal_value

    return optimal_values

    Analysing the inputted data and returning the optimal values
    
Analysing the inputted data and returning the optimal values
Analysing the inputted data and returning the optimal values
def analyse_data(data: dict) -> list:
    optimal_values = {}
    for parameter in data.keys():
        elem = data[parameter]
        print("len - {}".format(len(elem.keys())))
        keys = []
        time_values = []
        error_values = []
        for key, value in elem.items():
            keys.append(float(key))
            time_values.append(float(value["time"]))
            error_values.append(float(value["error"]))
        products = []
        for time, error in zip(time_values, error_values):
            product = round(time * error, 4)
            products.append(product)
        min_value = min(products)
        min_index = products.index(min_value)
        optimal_value = keys[min_index]
        optimal_values[parameter] = optimal_value
    return optimal_values
def analyse_data ( data : dict ) -> list : optimal_values = { } for parameter in data . keys ( ) : elem = data [ parameter ] print ( "len - {}" . format ( len ( elem . keys ( ) ) ) ) keys = [ ] time_values = [ ] error_values = [ ] for key , value in elem . items ( ) : keys . append ( float ( key ) ) time_values . append ( float ( value [ "time" ] ) ) error_values . append ( float ( value [ "error" ] ) ) products = [ ] for time , error in zip ( time_values , error_values ) : product = round ( time * error , 4 ) products . append ( product ) min_value = min ( products ) min_index = products . index ( min_value ) optimal_value = keys [ min_index ] optimal_values [ parameter ] = optimal_value return optimal_values
Analysing the inputted data and returning the optimal values
Analysing the inputted data and returning the optimal values
"""
    Analysing the inputted data and returning the optimal values
    """ # Seeing which key has the lowest multiplication of time and error
data
dict