-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNB_PTFs.pyt
51 lines (41 loc) · 1.41 KB
/
NB_PTFs.pyt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -*- coding: utf-8 -*-
import arcpy
import os
import sys
import configuration
try:
reload(configuration) # Python 2.7
except NameError:
try:
import importlib # Python 3.4
importlib.reload(configuration)
except Exception:
arcpy.AddError('Could not load configuration module')
sys.exit()
# Load and refresh the refresh_modules module
from NB_PTFs.lib.external.six.moves import reload_module
import NB_PTFs.lib.refresh_modules as refresh_modules
reload_module(refresh_modules)
from NB_PTFs.lib.refresh_modules import refresh_modules
import NB_PTFs.lib.input_validation as input_validation
refresh_modules(input_validation)
import NB_PTFs.tool_classes.c_CalcKsat as c_CalcKsat
refresh_modules(c_CalcKsat)
CalcKsat = c_CalcKsat.CalcKsat
import NB_PTFs.tool_classes.c_BrooksCorey as c_BrooksCorey
refresh_modules(c_BrooksCorey)
BrooksCorey = c_BrooksCorey.BrooksCorey
import NB_PTFs.tool_classes.c_CalcVG as c_CalcVG
refresh_modules(c_CalcVG)
calcVG_PTFs = c_CalcVG.calcVG_PTFs
import NB_PTFs.tool_classes.c_CalcPointPTFs as c_CalcPointPTFs
refresh_modules(c_CalcPointPTFs)
calcPoint_PTFs = c_CalcPointPTFs.calcPoint_PTFs
##########################
### Toolbox definition ###
##########################
class Toolbox(object):
def __init__(self):
self.label = u'Nature Braid PTF v1.0'
self.alias = u'NB_PTF'
self.tools = [calcVG_PTFs, calcPoint_PTFs, CalcKsat, BrooksCorey]