-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds a public API to convert and convert_results methods #180
Conversation
In previous versions of otoole, the internal read and write strategies were exposed to the user. This was not ideal as it meant that the user had to know the internal structure of the model. This commit adds a public API to convert and convert_results methods. These methods are used to convert between different file formats. This commit also: - adds tests for the convert and convert_results methods - adds a new module to the otoole package called convert.py - adds a test fixture for the super_simple model - fixes typing errors
This looks so cool, @willu47!! My schedule is pretty tight for the rest of this week, but I should have time early next week to review this and give feedback! |
Hi @willu47! I am so sorry this took me nearly 2 months to review. This is a really excellent addition! I ran through the examples you posted in the
Wherever we land on these points, I am happy to help address them if needed! :) |
Hi @trevorb1 - see the latest commits for adding a I have also "fixed" the awkward flags in the I haven't moved the config arguments around, as I feel that CLI and Python interfaces will be used separately, and the documentation is such that it is easy to follow e.g. docstrings for Python interface, and the integrated help dialog for the CLI. |
In previous versions of otoole, the internal read and write strategies were exposed to the user. This was not ideal as it meant that the user had to know the internal structure of the model. This commit adds a public API to
convert
,read
,write
andconvert_results
methods. These methods are used to read, write and convert between different file formats for input data, and convert from solution files to a folder of csv files for results.Description
This PR also:
Issue Ticket Number
#181
Documentation
Added a documentation page "Python API" with a short outline of the new functions, and links to the module documentation. Docstrings are filled out in detail.