# 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
note: if you have already done an import [some module], doing the same command with not load any changes to code that you make.
In order to reload, you need to use the importlib.reload() function
Change into Code Base Directory
Reload a module after making code changes
import [some module]
, doing the same command with not load any changes to code that you make.importlib.reload()
function