Skip to content

Commit

Permalink
Merge pull request #235 from OSeMOSYS/issue-231
Browse files Browse the repository at this point in the history
Fix `read_results` API docs
  • Loading branch information
trevorb1 authored Sep 23, 2024
2 parents efe0e17 + f711902 commit fb608de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/convert.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ See :func:`otoole.convert.convert_results` for more details
Reading solver results into a dict of Pandas DataFrames
-------------------------------------------------------

The ``read_results`` function reads a CBC_, CLP_,
Gurobi_ or CPLEX_ solution file into memory::
The ``read_results`` function reads a CBC_, CLP_, Gurobi_ or CPLEX_ solution file to a Python object.
This allows you to then use all the features offered by Python to manipulate the data.

>>> from otoole import read_results
>>> read_results('my_model.yaml', 'cbc', 'csv', 'my_model.sol', 'my_model_csvs', 'datafile', 'my_model.dat')
>>> data, defaults = read_results('my_model.yaml', 'cbc', 'my_model.sol', 'datafile', 'my_model.dat')

See :func:`otoole.convert.read_results` for more details

Expand Down

0 comments on commit fb608de

Please sign in to comment.