Skip to content

Commit f683149

Browse files
committed
filter out possiblity
1 parent 55ea6ae commit f683149

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎pygridmap/__version__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# *since*: June 2020
1414

1515

16-
VERSION = (0, 0, 4)
16+
VERSION = (0, 0, 5)
1717
"""Current version.
1818
"""
1919

‎pygridmap/gridtiler.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,12 @@ def grid_transformation(input_file, function, output_file, input_file_delimiter
213213
for c in csvreader:
214214

215215
#apply function
216-
function(c)
216+
out = function(c)
217+
218+
#filter out
219+
if out == False: continue
220+
221+
#to save space, by removing the ".0"
217222
round_floats_to_ints(c)
218223

219224
#create writer, if necessary, write file header

0 commit comments

Comments
 (0)