Beispiel #1
0
def test_remove_multiple_geodata(mp):
    scen = TimeSeries(mp, *test_args, version='new', annotation='fo')
    scen.add_geodata(DATA['geo'])
    row = DATA['geo'].loc[[False, True, True]]
    scen.remove_geodata(row)
    scen.commit('adding geodata (references to map layers)')
    assert_geodata(scen.get_geodata(), DATA['geo'].loc[[True, False, False]])
Beispiel #2
0
def test_remove_multiple_geodata(mp):
    scen = TimeSeries(mp, *test_args, version="new", annotation="fo")
    scen.add_geodata(DATA["geo"])
    row = DATA["geo"].loc[[False, True, True]]
    scen.remove_geodata(row)
    scen.commit("adding geodata (references to map layers)")
    assert_geodata(scen.get_geodata(), DATA["geo"].loc[[True, False, False]])
Beispiel #3
0
def test_fetch_empty_geodata(mp):
    scen = TimeSeries(mp, *test_args, version='new', annotation='fo')
    empty = scen.get_geodata()
    assert_geodata(empty, DATA['geo'].loc[[False, False, False]])
Beispiel #4
0
def test_fetch_empty_geodata(mp):
    scen = TimeSeries(mp, *test_args, version="new", annotation="fo")
    empty = scen.get_geodata()
    assert_geodata(empty, DATA["geo"].loc[[False, False, False]])
Beispiel #5
0
 def test_fetch_empty_geodata(self, mp):
     scen = TimeSeries(mp, *models["h2g2"], version="new", annotation="fo")
     empty = scen.get_geodata()
     assert_geodata(empty, DATA["geo"].loc[[False, False, False]])