def generate_data_layer(data_file="Thermodynamic Data 36 bar OF 0,1 to 8,0 H2O2 87,5.json"):
    """ generate_data_layer instantiates all of the objects that
    are required as data layer for the program to run properly.
    :param data_file: name of the json file to be used as reference for the simulation (str)
    :return JsonInterpreter """

    # Pass the file name
    data_directory = "../data"

    # Return the output
    return JsonInterpreter(file_name="/".join([data_directory, data_file]))
def generate_data_layer(data_file):
    """ generate_data_layer instantiates all of the objects that
    are required as data layer for the program to run properly.
    :param data_file: name of the json file to be used as reference for the simulation (str)
    :return JsonInterpreter """

    # Pass the file name
    data_directory = "../data/ONERA Data Files"

    # Return the output
    return JsonInterpreter(file_name="/".join([data_directory, data_file]))
示例#3
0
def generate_data_layer(
        data_file="Thermodynamic Data 36 bar OF 0,1 to 8,0 H2O2 87,5.json"):
    """ generate_data_layer instantiates all of the objects that
    are required as data layer for the program to run properly.
    :param data_file: name of the json file to be used as reference for the simulation (str)
    :return JsonInterpreter """

    # Pass the file name
    data_directory = "C:/Users/Felix Zapata/Google Drive/" \
                     "MSc in AE ISAE - SUPAERO/Griffon Project/GriffonSimulator/data"

    # Return the output
    return JsonInterpreter(file_name="/".join([data_directory, data_file]))