Write settings.yml parameters in original order - #2352
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2352 +/- ##
==========================================
+ Coverage 94.62% 94.69% +0.07%
==========================================
Files 247 247
Lines 14065 14065
==========================================
+ Hits 13309 13319 +10
+ Misses 756 746 -10 ☔ View full report in Codecov by Sentry. |
|
Thanks for taking the time to contribute this feature! Could you please have a look at the checklist and do the things on it when you have the time? Then we can merge this. |
|
Hi @bouweandela Sorry for the delay; I have been on a research visit since April and have not worked on priority topics related to my research. The test failed because the method I modified was not covered by the original tests. I have added a small test to ensure the data is saved in order in the Let me know if you require a more specific example/test. |
|
Something failed with the Codacy Upload |
Yes, it's a known issue with the Codacy Coverage uploader: codacy/codacy-coverage-reporter#500. |
Description
Small fix to write
settings.ymlwithout sorting the keys. This preserves the original order of the parameters as they were given in the recipe, keeps the order given by the user. It also will add all the ESMValTool written parameters at the end so the block can be easily identified, see the settings from an example I ran:Closes #2339
Link to documentation:
Before you get started
Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.
To help with the number pull requests: