Exemplo n.º 1
0
from src import __main__
if __name__ == "__main__":
    __main__.main()
Exemplo n.º 2
0
from src.__main__ import main

if __name__ == '__main__':
    main()
Exemplo n.º 3
0
from src import __main__
if __name__ == "__main__":
	__main__.main()
Exemplo n.º 4
0
from src.__main__ import main
from os import path, getcwd
import argparse

parser = argparse.ArgumentParser()
parser.add_argument('--small',
                    help='Boolean on whether to run on smaller data set')
parser.add_argument('--skip', help='Boolean on whether skip geospatial join')

args = parser.parse_args()

if __name__ == '__main__':
    main(vars(args), path.join(getcwd(), "Data"))
Exemplo n.º 5
0
def hfd_pipeline():
    from src.__main__ import main
    return main("/home/cole-work/PycharmProjects/hfd-spring-2020/test_data")
Exemplo n.º 6
0
 def test_req(self):
     test_req = os.path.join(os.path.dirname(__file__),
                             "unit_test_req.json")
     with open(test_req) as data_file:
         data = json.load(data_file)
         print(main(data))
#!/usr/bin/env python

# Copyright 2016 Daniel Nunes
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import sys
import os
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))

if __name__ == '__main__':
    from src.__main__ import main  # placed here so pycharm doesn't complain about import location
    main()