def test_logging(self):
        """
        Test of create_vrt_from_filelist
        Returns:

        """
        logger = terre_image_logging.configure_logger()
        logger.debug('debug message')
        logger.info('info message')
        logger.warn('warn message')
        logger.error('error message')
        logger.critical('critical message')
        # self.assertTrue(False)
Ejemplo n.º 2
0
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

=========================================================================*/
"""

from PyQt4 import QtCore, QtGui
import xml.etree.ElementTree as xml

# import logging for debug messages
from TerreImage import terre_image_logging
logger = terre_image_logging.configure_logger()


def read_results_old(outputresults):
    percentage = {}
    root = xml.parse(outputresults).getroot()

    # Confusion matrix
    matrix = []
    for row in root.find("Resultats").find("MatriceConfusion").findall("Class"):
        matrix.append(row.text.split())
    '''
    for line in iter(root.find("Resultats").find("MatriceConfusion").text.splitlines()):
        if not line:
            continue
        matrix.append(line.split())
Ejemplo n.º 3
0
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
 """

from PyQt4.QtCore import Qt, SIGNAL
from PyQt4.QtGui import QColor, QWidget, QPixmap, QIcon, QInputDialog

from ui_terre_image_curve import Ui_Form

import random

# import logging for debug messages
from TerreImage import terre_image_logging
logger = terre_image_logging.configure_logger()

LETTERSTOQCOLOR = {
    "bleu": QColor(0, 132, 255),
    "vert": QColor(148, 255, 69),
    "rouge": QColor(255, 30, 0),
    "cyan": QColor(0, 255, 204),
    "magenta": QColor(255, 0, 255),
    "jaune": QColor(255, 255, 0),
    "noir": QColor(0, 0, 0)
}

FRENCHTOLETTER = {
    "bleu": 'b',
    "vert": 'g',
    "rouge": 'r',