8000 no pdb, test for tifs · grovduck/pyimpute@8018a7c · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

8000

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8018a7c

Browse files
committed
no pdb, test for tifs
1 parent a3b1100 commit 8018a7c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[pytest]
22
norecursedirs = examples* src* scripts* docs*
3-
addopts = --maxfail=1 --pdb -rf -v
3+
# addopts = --maxfail=1 --pdb -rf -v
44

src/pyimpute/_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def impute(target_xs, clf, raster_info, outdir="output", linechunk=1000, class_p
186186
classes = list(clf.classes_)
187187
class_paths = []
188188
for i, c in enumerate(classes):
189-
ods = os.path.join(outdir, "probability_%s.img" % c)
189+
ods = os.path.join(outdir, "probability_%s.tif" % c)
190190
class_paths.append(ods)
191191
for p in class_paths:
192192
class_dss.append(rasterio.open(p, 'w', **profile))

tests/test_impute.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ def test_impute():
2727
impute(target_xs, clf, raster_info, outdir=TMPOUT,
2828
linechunk=400, class_prob=True, certainty=True)
2929

30-
assert os.path.exists(os.path.join(TMPOUT, "responses.img"))
31-
assert os.path.exists(os.path.join(TMPOUT, "certainty.img"))
32-
assert os.path.exists(os.path.join(TMPOUT, "probability_90.img"))
30+
assert os.path.exists(os.path.join(TMPOUT, "responses.tif"))
31+
assert os.path.exists(os.path.join(TMPOUT, "certainty.tif"))
32+
assert os.path.exists(os.path.join(TMPOUT, "probability_90.tif"))
3333

3434

3535
def test_load_training_rasters():

0 commit comments

Comments
 (0)
0