Changeset 1953


Ignore:
Timestamp:
Nov 25, 2009 9:39:46 PM (10 years ago)
Author:
jwatson
Message:

Improved error diagnostics relating to illegal/unexpected set initialization data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pyomo/trunk/coopr/pyomo/base/PyomoModelData.py

    r1768 r1953  
    277277          if type(cmd[i]) is not tuple:
    278278            if flag:
     279               if type(cmd[i]) is not tuple:
     280                  raise ValueError, "Problem initializing set="+sname+" with input data="+str(cmd)+" - first element was interpreted as a tuple, but element="+str(i)+" is of type="+str(type(cmd[i]))+"; types must be consistent"
    279281               tmpval=tmp
    280282               tmpval[ndx] = self._data_eval([cmd[i]])[0]
Note: See TracChangeset for help on using the changeset viewer.