Changeset 2457


Ignore:
Timestamp:
Mar 26, 2010 12:29:22 PM (9 years ago)
Author:
jwatson
Message:

Fixed error when loading more than one .dat file via the pyomo script; an instance of the old "add_model_data" method wasn't changed to the new "add" method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pyomo/trunk/coopr/pyomo/scripting/util.py

    r2409 r2457  
    178178            if suffix != "dat":
    179179                raise SystemExit, "When specifying multiple data files, they must all be *.dat files: "+str(file)
    180             modeldata.add_data_file(file)
     180            modeldata.add(file)
    181181        modeldata.read(model)
    182182        instance = model.create(modeldata)
Note: See TracChangeset for help on using the changeset viewer.