Skip to content

Commit

Permalink
r.patch: ensure r.in.ascii in relevant tests always create CELL (#3037)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrasovaa committed Jun 8, 2023
1 parent 3dd9fc5 commit dcb034f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions raster/r.patch/testsuite/test_rpatch_artificial.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,21 @@ def setUpClass(cls):
# 15 / 6 == 2.5 ((n-s) / number of cells)
# 10 / 8 == 1.25 ((e-w) / number of cells)
cls.runModule("g.region", n=35, s=20, e=25, w=15, nsres=2.5, ewres=1.25)
cls.runModule("r.in.ascii", input="-", stdin=cell_overlap_a, output=cls.cell_a)
cls.runModule(
"r.in.ascii",
input="-",
type="CELL",
stdin=cell_overlap_a,
output=cls.cell_a,
)
cls.to_remove.append(cls.cell_a)
cls.runModule("r.in.ascii", input="-", stdin=cell_overlap_b, output=cls.cell_b)
cls.runModule(
"r.in.ascii",
input="-",
type="CELL",
stdin=cell_overlap_b,
output=cls.cell_b,
)
cls.to_remove.append(cls.cell_b)
cls.runModule(
"r.category",
Expand Down

0 comments on commit dcb034f

Please sign in to comment.