Exemple #1
0
def get_map_datasets():
    dataset_1 = simulate_map_dataset(random_state=0)
    dataset_1._name = "dataset_1"
    gti1 = GTI.create("0 h", "1 h", "2010-01-01T00:00:00")
    dataset_1.gti = gti1

    dataset_2 = simulate_map_dataset(random_state=1)
    gti2 = GTI.create("1 h", "2 h", "2010-01-01T00:00:00")
    dataset_2._name = "dataset_2"
    dataset_2.gti = gti2

    return [dataset_1, dataset_2]
def get_map_datasets():
    dataset_1 = simulate_map_dataset(random_state=0)
    dataset_1.counts.meta = {
        "t_start": Time("2010-01-01T00:00:00"),
        "t_stop": Time("2010-01-01T01:00:00"),
    }

    dataset_2 = simulate_map_dataset(random_state=1)
    dataset_2.counts.meta = {
        "t_start": Time("2010-01-01T01:00:00"),
        "t_stop": Time("2010-01-01T02:00:00"),
    }

    return [dataset_1, dataset_2]