Skip to content

Commit

Permalink
Commit class_test achieved !
Browse files Browse the repository at this point in the history
  - Test with data
  - Expected output obtained
  - Commenting and syntax remain to be standardized
  • Loading branch information
NikoZHAI committed Jul 20, 2017
1 parent 66077f3 commit b8f28e1
Show file tree
Hide file tree
Showing 4 changed files with 338 additions and 290 deletions.
33 changes: 33 additions & 0 deletions class_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import hbv96 as mcd

md = mcd.HBV96()

md.par['area'] = 94.36

md.par['tfac'] = 12

md.config['file_path'] = '/home/niko/Documents/UNESCO-IHE/Model/HBV96/all_data.csv'

md.config['header'] = 0

md.config['seperator'] = ','

md.config['obj_fun'] = md._rmse

md.config['init_guess'] = None

md.config['fun_name'] = 'RMSE'

md.config['wu'] = 10

md.config['verbose'] = False

md.config['minimise'] = True

md.config['tol'] = 1e7

md.dictlike_data_extractor()

md.config['miles'] = len(md.data)-1

md.calibrate()
Loading

0 comments on commit b8f28e1

Please sign in to comment.