Skip to content

Commit f9b0574

Browse files
authored
Merge pull request computationalgeography#914 from OliverSchmitz/gh913
Enable pcr.report for nonspatials
2 parents 97a62d1 + 595c729 commit f9b0574

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

source/framework/python/pcraster/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,10 +419,8 @@ def readmap(pathname):
419419

420420

421421
def report(expression, pathname):
422-
# TODO Right? Otherwise, don't create spatials here. Use another format to write scalars to.
423-
assert is_spatial(expression)
424-
# if is_non_spatial(expression):
425-
# expression = non_spatial_to_spatial(fill_value=expression)
422+
if is_non_spatial(expression):
423+
expression = non_spatial_to_spatial(fill_value=expression)
426424

427425
lfr.to_gdal(expression, pathname, configuration.pathname)
428426

0 commit comments

Comments
 (0)