Skip to content

Commit

Permalink
Updated setup.cfg, input.config and ginputfunc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xfeng2021 committed Jun 21, 2024
1 parent 286f1cc commit 70883c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/createInput/configs/input.config
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ optimization_algorithm = dds

# Specify algorithm parameters for PSO and GWO only
# Control parameters c1, c2 and w are only needed for PSO
# This entry is optional.
# These entries are optional.
swarm_size = 20
c1 = 2
c2 = 2
Expand Down
4 changes: 2 additions & 2 deletions python/createInput/src/ginputfunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ def create_cfe_input(
f.write("%s" %("max_gw_storage=" + str(dfa.loc[catID]['gw_Zmax']/1000.) + "[m]\n"))
f.write("%s" %("Cgw=" + str(dfa.loc[catID]['gw_Coeff']*3600*1e-6) + "[m h-1]\n"))
f.write("%s" %("expon=" + str(dfa.loc[catID]['gw_Expon']) + "[]\n"))
f.write("%s" %("gw_storage=0.05[m/m]\n"))
f.write("%s" %("gw_storage=0.3[m/m]\n"))
f.write("%s" %("alpha_fc=0.33\n"))
f.write("%s" %("soil_storage=0.05[m/m]\n"))
f.write("%s" %("soil_storage=0.5[m/m]\n"))
f.write("%s" %("K_nash=0.03[]\n"))
f.write("%s" %("K_lf=0.01[]\n"))
f.write("%s" %("nash_storage=0.0,0.0\n"))
Expand Down
4 changes: 3 additions & 1 deletion python/runCalibValid/ngen_cal/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ install_requires =
hydrotools.metrics
hydrotools.nwis_client
pyarrow
pyswarms
pyyaml
scipy
tables
hypy @ git+https://github.com/noaa-owp/hypy@master#egg=hypy&subdirectory=python
pyyaml
python_requires = >=3.7
include_package_data = True

Expand Down

0 comments on commit 70883c4

Please sign in to comment.