https://issues.qgis.org/https://issues.qgis.org/favicon.ico2016-02-16T07:25:15ZQGIS Issue TrackingQGIS Application - Bug report #14311: Processing `Create test` errorhttps://issues.qgis.org/issues/14311?journal_id=682662016-02-16T07:25:15ZMatthias Kuhn
<ul></ul><p>Hi Paolo,</p>
<p>Can you execute the following commands in a python console:</p>
<p>import gdal<br />from osgeo.gdalconst import GA_ReadOnly<br />ds = gdal.Open('/path/to.tiff', GA_ReadOnly)<br />print(ds)</p> QGIS Application - Bug report #14311: Processing `Create test` errorhttps://issues.qgis.org/issues/14311?journal_id=682692016-02-16T07:42:00ZPaolo Cavallinicavallini@faunalia.it
<ul></ul><p><osgeo.gdal.Dataset; proxy of <Swig Object of type 'GDALDatasetShadow *' at 0x7feac4e9c5d0> ></p> QGIS Application - Bug report #14311: Processing `Create test` errorhttps://issues.qgis.org/issues/14311?journal_id=683392016-02-18T03:04:27ZMatthias Kuhn
<ul></ul><p>Which algorithm, dataset, parameters have you been trying?</p> QGIS Application - Bug report #14311: Processing `Create test` errorhttps://issues.qgis.org/issues/14311?journal_id=683562016-02-18T07:43:57ZPaolo Cavallinicavallini@faunalia.it
<ul></ul><p>e.g.</p>
<p>processing.runalg("qgis:basicstatisticsfornumericfields","/home/paolo/Scrivania/corso_analisi/QGIS_data/processing/html/census_boundaries.shp","POP2000",None)</p>
<p>IndexError: list index out of range <br />Traceback (most recent call last):<br /> File "/usr/share/qgis/python/plugins/processing/gui/HistoryDialog.py", line 128, in createTest<br /> TestTools.createTest(item.entry.text)<br /> File "/usr/share/qgis/python/plugins/processing/gui/TestTools.py", line 160, in createTest<br /> token = tokens[i - len(alg.outputs)]<br />IndexError: list index out of range</p> QGIS Application - Bug report #14311: Processing `Create test` errorhttps://issues.qgis.org/issues/14311?journal_id=684462016-02-21T04:04:51ZMatthias Kuhn
<ul></ul><p>Hi Paolo,</p>
<p>Each output type needs to be added to the tests, vector and raster data have been present since first merge. Today I added HTML (e.g. basic statistics). So the latest error should be gone.<br />I added a test for basic statistics with a float field. It would be great if you could check if you can add basic statistics for string fields.</p>
<p>FYI:<br />Please use one of the provided test files in the processing/testdata folder unless there is a good reason to use another one. These files include some NULL values, positive and negative values and therefore should point out some common problems when implementing algorithms.</p>
<hr />
<p>Raster issues:</p>
<p>While raster outputs work fine here and on the linux test machine, there are problems on the mac machine - and it looks like they are the same as on your computer. To bad I do not have the possibility to reproduce this issue locally and to properly debug it. That would help to merge <a class="external" href="https://github.com/qgis/QGIS/pull/2761">https://github.com/qgis/QGIS/pull/2761</a> .</p>
<p>Can you retry to run an algorithm which creates a tif, check if the output file is really in place and try to create a test for it and report the result back here.</p> QGIS Application - Bug report #14311: Processing `Create test` errorhttps://issues.qgis.org/issues/14311?journal_id=684682016-02-22T02:35:46ZAlexander Bruy
<ul><li><strong>Operating System</strong> deleted (<del><i>Debian</i></del>)</li><li><strong>OS version</strong> deleted (<del><i>Sid</i></del>)</li></ul><p>Test for "Basic statistics for text fields" added</p> QGIS Application - Bug report #14311: Processing `Create test` errorhttps://issues.qgis.org/issues/14311?journal_id=693732016-04-08T04:16:42ZAlexander Bruy
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>Seems works fine now. Can we close this?</p> QGIS Application - Bug report #14311: Processing `Create test` errorhttps://issues.qgis.org/issues/14311?journal_id=693862016-04-08T22:06:07ZPaolo Cavallinicavallini@faunalia.it
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul><p>Agreed, works fine here now.<br />Thanks.</p>