-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import numpy as np | ||
import pytest | ||
import xarray as xr | ||
|
||
|
||
# @pytest.mark.parametrize("test_input", a_list) | ||
def test_name(test_input): | ||
"""Docstrig""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import numpy as np | ||
import pytest | ||
import xarray as xr | ||
|
||
|
||
# @pytest.mark.parametrize("test_input", a_list) | ||
def test_sort_dimensions(dummy_array, rule_with_unsorted_data): | ||
"""Test to check that dimensions are sorted correctly""" | ||
from pymorize.generic import sort_dimensions | ||
|
||
dummy_array = sort_dimensions(dummy_array, rule_with_unsorted_data) | ||
|
||
assert dummy_array.dims == tuple(rule_with_unsorted_data.array_order) |