Changeset 3028


Ignore:
Timestamp:
Sep 20, 2010 12:40:47 AM (11 years ago)
Author:
wehart
Message:

Adding a 'driver' option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pyomo/trunk/coopr/pyomo/data/process_data.py

    r3026 r3028  
    522522    options = Options(**cmd[1])
    523523    for key in options:
    524         if not key in ['range','filename','format','using','query','table','user','password']:
     524        if not key in ['range','filename','format','using','driver','query','table','user','password']:
    525525            raise ValueError, "Unknown import option '%s'" % key
    526526
     
    574574        param_name = None
    575575    #
    576     data.initialize(options.filename, index=index, index_name=index_name, param_name=symb_map, set=set_name, param=param_name, format=options.format, range=options.range, query=options.query, using=options.using)
     576    data.initialize(options.filename, index=index, index_name=index_name, param_name=symb_map, set=set_name, param=param_name, format=options.format, range=options.range, query=options.query, using=options.using, table=options.table)
    577577    #
    578578    data.open()
Note: See TracChangeset for help on using the changeset viewer.