Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit tests for loader functions #10

Open
stefsmeets opened this issue Nov 19, 2020 · 0 comments
Open

Add unit tests for loader functions #10

stefsmeets opened this issue Nov 19, 2020 · 0 comments

Comments

@stefsmeets
Copy link
Contributor

stefsmeets commented Nov 19, 2020

I use this little snippet for testing the data in the __init__.py file. It would be a good idea to build some basic unit tests around it.

    VERBOSE = True

    for mip_table in (
            'Amon',
            'day',
    ):
        print()
        print(f'Loading `{mip_table}`')
        ts = load_timeseries_cubes(mip_table)

        first_cube = ts[0]
        for i, cube in enumerate(ts):
            print(i)
            cube.regrid(grid=first_cube, scheme=iris.analysis.Linear())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant