def create_experiment_from_binding_row(display_name, row_id):
    from model_new_schema.evelement import Experiment
    
    format_name = create_format_name(display_name)
    link = experiment_link(format_name)

    new_experiment = Experiment(create_experiment_id_from_binding_row(row_id, format_name), display_name, format_name, link, None, None, None, None)
    return [new_experiment]
def create_experiment(old_cv_term):
    from model_new_schema.evelement import Experiment as NewExperiment
    
    display_name = old_cv_term.name
    format_name = create_format_name(display_name)
    description = old_cv_term.definition
    link = experiment_link(format_name)
    
    new_experiment = NewExperiment(create_experiment_id(old_cv_term.id), display_name, format_name, link, description, None,
                               old_cv_term.date_created, old_cv_term.created_by)
    return [new_experiment]
def create_experiment_from_reg_row(display_name, eco_id, row_id):
    from model_new_schema.evelement import Experiment
    
    if display_name is None:
        display_name = eco_id
    format_name = create_format_name(display_name)
    
    if display_name.endswith('evidence'):
        display_name = display_name[:-9]
        
    link = experiment_link(format_name)

    new_experiment = Experiment(create_experiment_id_from_reg_row(row_id, format_name), display_name, format_name, link, None, eco_id, None, None)
    return [new_experiment]