HARPgroup / HSPsquared

Hydrologic Simulation Program Python (HSPsquared)
GNU Affero General Public License v3.0
1 stars 0 forks source link

Testing command line script #50

Open rburghol opened 1 year ago

rburghol commented 1 year ago

Change into Code Base Directory

# change into the HSPsquared directory to have access to the local path structures
import os
os.chdir("C:/usr/local/home/git/HSPsquared")
from HSP2.om_model_object import *

# create a siminfo dict
from pandas import DataFrame, date_range
siminfo = {}
siminfo['delt'] =3600
siminfo['tindex'] = date_range("2001-01-01", "2001-12-31", freq=Minute(siminfo['delt']))[1:]
steps = siminfo['steps'] = len(siminfo['tindex'])

Reload a module after making code changes