예제 #1
0
def test_file_name_locator(paths, date, expect):
    pattern = ""
    locator = saf.Locator(
        pattern,
    )
    frequency = dt.timedelta(minutes=15)
    assert list(locator.find_paths(paths, date, frequency)) == expect
예제 #2
0
def test_loader():
    # Create seam to pass test data
    variable = None
    initial_time = None
    valid_time = None
    pressures = None
    pressure = None
    loader = saf.Loader(saf.Locator("saf.nc"))
    loader._image(variable, initial_time, valid_time, pressures, pressure)
예제 #3
0
def navigator():
    return saf.Navigator(saf.Locator("fake.nc"))