Skip to content

Commit

Permalink
v1.5.1 fix bug in algorithm with vector files
Browse files Browse the repository at this point in the history
  • Loading branch information
nkarasiak committed Sep 27, 2019
1 parent 0678a03 commit 8bf6225
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
name=dzetsaka : Classification tool
qgisMinimumVersion=3.0
description=Fast and Easy Classification plugin for Qgis
version=3.5
version=3.5.1
author=Nicolas Karasiak
[email protected]

Expand All @@ -29,6 +29,8 @@ repository=http://www.github.com/lennepkade/dzetsaka

# Uncomment the following line and add your changelog:
changelog=
3.5.1
* Fig bug with split algorithm and Train Algorithm for cv per stand/polygon
3.5
* Fix bug with gpkg files
3.4.8
Expand Down
2 changes: 1 addition & 1 deletion processing/learnWithStandCV.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def processAlgorithm(self, parameters, context, feedback):
# learn model
mainfunction.learnModel(
INPUT_RASTER.source(),
INPUT_LAYER.source(),
INPUT_LAYER.dataProvider().dataSourceUri().split('|')[0],
INPUT_COLUMN[0],
OUTPUT_MODEL,
'STAND',
Expand Down
2 changes: 1 addition & 1 deletion processing/splitTrainValidation.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def processAlgorithm(self, parameters, context, feedback):
libOk = False

if libOk:
function_vector.randomInSubset(INPUT_LAYER.source(), str(
function_vector.randomInSubset(INPUT_LAYER.dataProvider().dataSourceUri().split('|')[0], str(
INPUT_COLUMN[0]), OUTPUT_VALIDATION, OUTPUT_TRAIN, VALUE, percent)
return {self.OUTPUT_TRAIN: OUTPUT_TRAIN,
self.OUTPUT_VALIDATION: OUTPUT_VALIDATION}
Expand Down

0 comments on commit 8bf6225

Please sign in to comment.