# Path: lib/exception.py
# class DataException(Exception):
# 
#     def __init__(self, message):
#         # Call the base class constructor with the parameters it needs
#         super(DataException, self).__init__(message)
#         self.returncode = 2
#         logg = Logger('DataException')
#         logg.error(message)
# 
# Path: lib/sitkaAPI.py
# def APIGet(url, absolute=False):
#     """
#     GET Wrapper around APIGet
#     :param url:
#     :param absolute:
#     :return:
#     """
#     log = Logger("APIGet")
#     #log.info("Making Call: GET {}".format(url))
#     return APICall(url, absolute, method=requests.get)


import sqlite3
import xml.etree.ElementTree as ET
import xml.dom.minidom
import json
import datetime
from loghelper import Logger
from os import path
from lib.exception import DataException
from lib.sitkaAPI import APIGet

dUnitDefs = {
    'Fast-NonTurbulent/Glide': ['Fast-NonTurbulent/Glide'],
    'Fast-Turbulent': ['Riffle', 'Rapid', 'Cascade', 'Falls'],
    'Slow/Pool': ['Scour Pool', 'Plunge Pool', 'Dam Pool', 'Beaver Pool', 'Off Channel'],
    'Small Side Channel': ['Small Side Channel']

# Path: lib/exception.py
# class DataException(Exception):
# 
#     def __init__(self, message):
#         # Call the base class constructor with the parameters it needs
#         super(DataException, self).__init__(message)
#         self.returncode = 2
#         logg = Logger('DataException')
#         logg.error(message)
# 
# Path: lib/sitkaAPI.py
# def APIGet(url, absolute=False):
#     """
#     GET Wrapper around APIGet
#     :param url:
#     :param absolute:
#     :return:
#     """
#     log = Logger("APIGet")
#     #log.info("Making Call: GET {}".format(url))
#     return APICall(url, absolute, method=requests.get)


# Path: lib/channelunits.py
import sqlite3
import xml.etree.ElementTree as ET
import xml.dom.minidom
import json
import datetime
from loghelper import Logger
from os import path
from lib.exception import DataException
from lib.sitkaAPI import APIGet


dUnitDefs = {
    'Fast-NonTurbulent/Glide': ['Fast-NonTurbulent/Glide'],
    'Fast-Turbulent': ['Riffle', 'Rapid', 'Cascade', 'Falls'],
    'Slow/Pool': ['Scour Pool', 'Plunge Pool', 'Dam Pool', 'Beaver Pool', 'Off Channel'],
    'Small Side Channel': ['Small Side Channel']

}