def hef_gdir(hef_gdir_base, class_case_dir): """ Provides a copy of the base Hintereisenferner glacier directory in a case directory specific to the current test class. All cases in the test class will use the same copy of this glacier directory. """ return tasks.copy_to_basedir(hef_gdir_base, base_dir=class_case_dir, setup='all')
def setup(): global gdir gdir = init_hef(border=80) teardown() gdir = tasks.copy_to_basedir(gdir, base_dir=testdir, setup='all')
def setup(): global gdir gdir = init_hef(border=80) teardown() gdir = tasks.copy_to_basedir(gdir, base_dir=testdir, setup='all') flowline.init_present_time_glacier(gdir)
def hef_copy_gdir(hef_copy_gdir_base, class_case_dir): """Same as hef_gdir but with another RGI ID (for testing) """ return tasks.copy_to_basedir(hef_copy_gdir_base, base_dir=class_case_dir, setup='all')
def setup(): global gdir gdir = init_hef(border=80, logging_level='ERROR') teardown() gdir = tasks.copy_to_basedir(gdir, base_dir=testdir, setup='all')