def test_convenience_kinetics_correlated_to_reference():
    timeseries = test_convenience_kinetics()
    flattened = flatten_timeseries(timeseries)
    reference_timeseries = load_timeseries(
        os.path.join(REFERENCE_DATA_DIR, NAME + '.csv'))
    assert_timeseries_close(flattened,
                            reference_timeseries,
                            tolerances={
                                'internal_pyr_c': 9,
                                'internal_pep_c': 9,
                                'internal_g6p_c': 9,
                            })
예제 #2
0
def test_antibiotics_composite_similar_to_reference():
    timeseries = run_antibiotics_composite()
    flattened = flatten_timeseries(timeseries)
    reference = load_timeseries(
        os.path.join(REFERENCE_DATA_DIR, Antibiotics.name + '.csv'))
    assert_timeseries_close(flattened,
                            reference,
                            tolerances={
                                'cell_counts_AcrAB-TolC': 99999,
                                'cell_counts_antibiotic': 999,
                                'cell_counts_AcrAB-TolC_RNA': 9,
                                'cell_counts_porin': 9999,
                            })
def test_antibiotic_transport():
    timeseries = run_antibiotic_transport()
    flattened = flatten_timeseries(timeseries)
    reference = load_timeseries(os.path.join(
        REFERENCE_DATA_DIR, AntibioticTransport.name + '.csv'))
    assert_timeseries_close(flattened, reference)
예제 #4
0
def test_convenience_kinetics_correlated_to_reference():
    timeseries = test_convenience_kinetics()
    flattened = flatten_timeseries(timeseries)
    reference_timeseries = load_timeseries(
        os.path.join(REFERENCE_DATA_DIR, NAME + '.csv'))
    assert_timeseries_close(flattened, reference_timeseries)