Skip to content

Commit

Permalink
corrected for 0 vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
jvdkwast authored and PeterPetrik committed Mar 9, 2019
1 parent 7a7c570 commit a2df705
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crayfish/processing/saga_flow_to_grib.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ def processAlgorithm(self, parameters, context, feedback):
y_block = QgsRasterBlock(Qgis.Float32, width, height)
diag = 1. / sqrt(2)
dir_map = {
0: (0, 1),
0: (1e-7, 1),
1: (diag, diag),
2: (1, 0),
2: (1, 1e-7),
3: (diag, -diag),
4: (0, -1),
4: (1e-7, -1),
5: (-diag, -diag),
6: (-1, 0),
6: (-1, 1e-7),
7: (-diag, diag),
255: (0, 0)
}
Expand Down

0 comments on commit a2df705

Please sign in to comment.