-
Notifications
You must be signed in to change notification settings - Fork 166
Fix: Correct capitalization to GDXCOMPRESS in aux file #965
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #965 +/- ##
=====================================
Coverage 96.2% 96.2%
=====================================
Files 60 60
Lines 5132 5132
=====================================
Hits 4940 4940
Misses 192 192 |
|
@Tyler-lc thanks for the initiative in investigating, filing #964, and opening this PR. Please request a review when you've finished with the checklist. One minor suggestion for now: per our code style, first bullet → The seven rules of a great Git commit message → item 5, the commit message could be:
or even:
instead of:
|
|
Hi @khaeru, I think this PR doesn't really require a change in the documentation, but only the "update release note". I have checked on message-ix documentation "how to contribute", but I'm still unsure how to update the release note. |
Agreed! That's usually the case for bug fixes: the documentation already describes what the code should do; the bug is that the code is not doing that. So by fixing the bug, the existing docs again become a true statement of the behaviour.
Thanks for asking, and sorry the docs are not clear on that. The file to be modified is RELEASE_NOTES.rst, here. You can click "🕑 History" in the top right to see the commit history for that file, which includes commits like 3e366ef. Try to make a similar commit with a similar message. Some tips are:
|
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.
Thanks for this fix :)
I rebased the branch on main and adapted the second commit message so that it starts capitalized. Now looks good to me 🚀
Short explanation
Corrected capitalization in auxiliary_settings.gms, that prevented output files from being compressed in UNIX systems.
Longer explanation
On case-sensitive file system (MacOS and Linux), GAMS is not compressing the output files as expected. This results in output gdx files that can be 3-4 times larger than on machines running Windows (which does not have a case sensitive file system).
The problem seems to be in a capitalization in the file "auxiliary_settings.gms". Currently we have:
"$SETENV GdxCompress 1"
However, it should be in all-caps:
"$SETENV GDXCOMPRESS 1"
The typo causes the command to be ignored on MacOS and Linux.
How to review
PR checklist