DOI-BOR / ostrich

An optimization toolkit for model calibration
GNU General Public License v2.0
1 stars 1 forks source link

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

Open analytophile opened 10 months ago

analytophile commented 10 months ago

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