DOI-BOR / ostrich

An optimization toolkit for model calibration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ostrich hangs when invalid response variable name used in tied response variable

analytophile opened this issue · comments

Ostrich fails without warning message when an invalid response variable is use in the BeginTiedResponseVars...EndTiedResponseVars block. Example input causing failure:

BeginResponseVars
  #name	  filename                   keyword  line col token
  NS     ..\output\Diagnostics.csv;  OST_NULL 1    3   ','
  KGE     ..\output\Diagnostics.csv;  OST_NULL 1    5   ','
  PBias   ..\output\Diagnostics.csv;  OST_NULL 1    4   ','
EndResponseVars 

BeginTiedRespVars
  NegKGE 1 KGE wsum -1.00
  NegNSE 1 NSE wsum -1.00 # here mistakenly uses NSE, not NS
EndTiedRespVars