Closed bmaluenda closed 8 years ago
Great start! A few comments:
siah-laptop:switch josiah$ grep -rI save_results .
./.git/logs/HEAD:df2e1a90527e2869c6efbf329b4f72bec783482e 72493b1a2ca1c47528768ba04688b514951eeb27 josiah.johnston <josiah.johnston@gmail.com> 1471405430 -0700 rebase: added basic hawaii.save_results module
./examples/custom_extension/sunk_costs.py:save_results(model, instance, outdir)
./switch_mod/export/dump.py:def save_results(model, instance, outdir):
./switch_mod/export/example_export.py:def save_results(model, instance, outdir):
./switch_mod/utilities.py: min_data_check(), load_inputs(), save_results().
./switch_mod/utilities.py: # replace the old _save_results function
The first entry from the .git directory can obviously be ignored, but the next five hits should get fixed.
Cheers, Josiah
I wrote that in a hurry last night, and neglected to summarize my comments into a punch-list. My proposed punch-list (should be quick & easy)
Thanks again for taking on this task of cleaning up the codebase! :)
I think that your suggestion is great, so I moved the functions to the init.py file of the export module. Also, cleaned up remaining references and fixed some docstrings and imports. Finally, removed the deterministic output ordering option proposal. It is true that it corresponds to a different topic and should be pushed through another branch.
I'd suggest taking out the comment in utilities:
# replace the old _save_results function
Other than that, looks good to me. 👍
Thanks for the comments, merging now!
Passes the tests and gives me the same output as in the examples folders. Code should be compatible with Hawaii modules, since its own save_results module has a post_solve function which will be called upon solver termination.