-
Notifications
You must be signed in to change notification settings - Fork 56
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
Export opt model setting #1141
Export opt model setting #1141
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks okay.
Are we fine keeping the name of the functions to be serialize_problem
rather than export_problem
?
IMO is fine, serialize is not exported. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1141 +/- ##
==========================================
+ Coverage 77.89% 77.93% +0.03%
==========================================
Files 118 118
Lines 12700 12707 +7
==========================================
+ Hits 9893 9903 +10
+ Misses 2807 2804 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
||
if get_export_optimization_model(get_settings(model)) | ||
model_output_dir = joinpath(output_dir, "optimization_model_exports") | ||
if !ispath(model_output_dir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case you care, this is slightly more convenient.
if !ispath(model_output_dir) | |
mkpath(model_output_dir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Made one minor suggestion if you're interested.
No description provided.