diff
| 1 |
diff --git a/python/plugins/processing/algs/qgis/scripts/Frequency_analysis.py b/python/plugins/processing/algs/qgis/scripts/Frequency_analysis.py |
|---|---|
| 2 |
index 9dac1f4..c9d9f9e 100644 |
| 3 |
--- a/python/plugins/processing/algs/qgis/scripts/Frequency_analysis.py |
| 4 |
+++ b/python/plugins/processing/algs/qgis/scripts/Frequency_analysis.py |
| 5 |
@@ -1,22 +1,22 @@ |
| 6 |
##Table=group |
| 7 |
##Input=vector |
| 8 |
-##Fields=string |
| 9 |
+##Fields=Field Input |
| 10 |
##Frequency=output table |
| 11 |
|
| 12 |
from processing.tools.vector import TableWriter |
| 13 |
from collections import defaultdict |
| 14 |
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException |
| 15 |
|
| 16 |
-layer = processing.getObject(input) |
| 17 |
+layer = processing.getObject(Input) |
| 18 |
inputFields = layer.pendingFields() |
| 19 |
fieldIdxs = [] |
| 20 |
-fields = fields.split(',')
|
| 21 |
+fields = Fields.split(',')
|
| 22 |
for f in fields: |
| 23 |
idx = inputFields.indexFromName(f) |
| 24 |
if idx == -1: |
| 25 |
raise GeoAlgorithmExecutionException('Field not found:' + f)
|
| 26 |
fieldIdxs.append(idx) |
| 27 |
-writer = TableWriter(output, None, fields + ['FREQ']) |
| 28 |
+writer = TableWriter(Frequency, None, fields + ['FREQ']) |
| 29 |
|
| 30 |
counts = {}
|
| 31 |
feats = processing.features(layer) |