Skip to content

Commit

Permalink
check most init params combinations
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaelicke committed Oct 16, 2023
1 parent 8abaee4 commit 5980f22
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions skgstat/tests/test_gstatsim_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,31 @@ def test_grid_resolution_from_bbox():
assert grid.cols == 96


@pytest.mark.skipif(sys.version_info < (3, 8), reason="requires Python >= 3.8 or higher")
def test_grid_init_symetric_bbox():
bbox = [0, 100, 0, 100]
grid = Grid(bbox=bbox, resolution=5)

assert grid.rows == 21
assert grid.cols == 21


@pytest.mark.skipif(sys.version_info < (3, 8), reason="requires Python >= 3.8 or higher")
def test_grid_init_bbox_row_and_resolution():
bbox = [0, 100, 0, 100]
grid = Grid(bbox=bbox, rows=21, resolution=5)

assert grid.shape == (21, 21)


@pytest.mark.skipif(sys.version_info < (3, 8), reason="requires Python >= 3.8 or higher")
def test_grid_init_bbox_col_and_resolution():
bbox = [0, 100, 0, 100]
grid = Grid(bbox=bbox, cols=21, resolution=5)

assert grid.shape == (21, 21)


@pytest.mark.skipif(sys.version_info < (3, 8), reason="requires Python >= 3.8 or higher")
def test_grid_rows_setting():
grid = Grid(variogram, resolution=5)
Expand Down

0 comments on commit 5980f22

Please sign in to comment.