Small improvements: Safety check for gage load from files; and added .vs folder to gitignore; Skip comment lines while reading GMG datasets#2544
Conversation
…aths. This check prevents the function to throw TypeError: "NoneType" object is not iterable.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #2544 +/- ##
==========================================
+ Coverage 55.5% 55.9% +0.4%
==========================================
Files 644 640 -4
Lines 124135 123798 -337
==========================================
+ Hits 68947 69265 +318
+ Misses 55188 54533 -655
🚀 New features to boost your workflow:
|
|
Added another small fix to the request. First time making this pull request here... I believe I should have made it in a different one. Just getting the hang of it (sorry :) ) |
|
@whcollab-proj no problem, thanks for the pr. can you run the ruff formatter/linter? ideally these could be separate (with tests) but the changes are small. the first one is good, second one, I've never used GMG, are those input files supposed to support comments? |
|
> @whcollab-proj no problem, thanks for the pr. can you run the ruff formatter/linter?
> ideally these could be separate (with tests) but the changes are small.
> the first one is good, second one, I've never used GMG, are those input files supposed to support comments?
#Geometric Multigrid Solver: Input Instruction |
wpbonelli
left a comment
There was a problem hiding this comment.
I suppose it makes sense to support the extra comments for compatibility with external tools, even though the spec doesn't mention comments on lines below the first.
This pull request includes three minor improvements:
1 - Gage file safety check: Ensures that the loop over gage-related files only executes if the file array is properly initialized. This prevents errors in cases where no files are provided.
2 - .gitignore update**: Added the
.vsdirectory (Visual Studio workspace settings) to the.gitignorefile to avoid accidentally committing user-specific IDE files.3- Extend the comment skip lines to all GMG dataset reads