Skip to content

Commit

Permalink
Updated version number
Browse files Browse the repository at this point in the history
Slight performance improvement for sceua example
  • Loading branch information
thouska committed Sep 4, 2020
1 parent 4418bc2 commit bc7a24a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name = 'spotpy',
version = '1.5.10',
version = '1.5.11',
description = 'A Statistical Parameter Optimization Tool',
long_description=open(os.path.join(os.path.dirname(__file__),
"README.rst")).read(),
Expand Down
2 changes: 1 addition & 1 deletion spotpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
from . import describe # Contains some helper functions to describe samplers and set-ups
from .hydrology import signatures # Quantifies goodness of fit between simulation and evaluation data with hydrological signatures

__version__ = '1.5.10'
__version__ = '1.5.11'
6 changes: 3 additions & 3 deletions spotpy/examples/tutorial_sceua_hymod.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@
# Initialize the Hymod example
# In this case, we tell the setup which algorithm we want to use, so
# we can use this exmaple for different algorithms
spot_setup=spot_setup(users_objective_function=spotpy.objectivefunctions.rmse)
spot_setup=spot_setup(spotpy.objectivefunctions.rmse)

#Select number of maximum allowed repetitions
rep=500
rep=1000
filename = 'SCEUA_hymod'
# Create the SCE-UA sampler of spotpy, alt_objfun is set to None to force SPOTPY
# to jump into the def objectivefunction in the spot_setup class (default is
# spotpy.objectivefunctions.rmse)
sampler=spotpy.algorithms.sceua(spot_setup, dbname='SCEUA_hymod', dbformat='csv')

#Start the sampler, one can specify ngs, kstop, peps and pcento id desired
sampler.sample(rep)#,ngs=10, kstop=50, peps=0.1, pcento=0.1)
sampler.sample(rep, ngs=7, kstop=3, peps=0.1, pcento=0.1)

# Load the results gained with the sceua sampler, stored in SCEUA_hymod.csv
results = spotpy.analyser.load_csv_results('SCEUA_hymod')
Expand Down

0 comments on commit bc7a24a

Please sign in to comment.