-
Notifications
You must be signed in to change notification settings - Fork 0
/
Run_py3.py
33 lines (26 loc) · 928 Bytes
/
Run_py3.py
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
# -*- coding: utf-8 -*-
"""
Created on 03 Dec 2019
@author: tih, sajid pareeth
"""
import pysebal_py3
import traceback # amir
##### USER INPUTS
##### For Linux SET THE PATH TO INPUT EXCEL SHEET #####
#inputExcel = r"/mnt/d/PySEBAL_dev/test_data/InputEXCEL_v3_3_7_LIN.xlsx"
##### For Windows SET THE PATH TO INPUT EXCEL SHEET #####
inputExcel = r"D:\Amir\Thesis\PySEBAL\Run1\input_run1.xlsx"
st = 2 # starting row number
en = 13 # ending row number
####### USER INPUTS FINISH HERE
for number in range(st, en + 1):
try:
print ('starting line num: %d' % number)
pysebal_py3.SEBALcode(number,inputExcel)
print ('line num: %d done' % number)
except: # amir
print ('--------------------\n')
print ('SEBAL did not run line %d fully' % number)
print ('\n******* ERROR *******\n')
traceback.print_exc()
print ('\n--------------------\n')