Skip to content
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

(Closes #426) Add convert argument to open(). #435

Merged
merged 11 commits into from
Jan 29, 2024

Conversation

arporter
Copy link
Member

No description provided.

@arporter arporter self-assigned this Dec 19, 2023
Copy link

codecov bot commented Dec 19, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0410062) 91.99% compared to head (ce2a081) 91.96%.

❗ Current head ce2a081 differs from pull request most recent head 53f32fa. Consider uploading reports for the commit 53f32fa to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #435      +/-   ##
==========================================
- Coverage   91.99%   91.96%   -0.04%     
==========================================
  Files          85       85              
  Lines       13681    13641      -40     
==========================================
- Hits        12586    12545      -41     
- Misses       1095     1096       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@arporter
Copy link
Member Author

In the interests of speed (of implementation) I haven't added full testing of the OPEN statement here.
Ready for review from either @sergisiso or @rupertford.

Copy link
Collaborator

@rupertford rupertford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some additional tests, refactoring and making the extension optional are required - please see inline comments.

doc/source/fparser2.rst Show resolved Hide resolved
src/fparser/two/Fortran2003.py Outdated Show resolved Hide resolved
@rupertford rupertford added reviewed with actions PR has been reviewed and is back with developer and removed ready for review labels Dec 20, 2023
@arporter arporter added in progress and removed reviewed with actions PR has been reviewed and is back with developer labels Jan 3, 2024
@arporter
Copy link
Member Author

arporter commented Jan 3, 2024

Ready for another look now. Ran across #432 while trying to check the documentation. Happily that's a separate issue though :-)

@arporter arporter added ready for merge PR is waiting on final CI checks before being merged. ready for review and removed in progress ready for merge PR is waiting on final CI checks before being merged. labels Jan 3, 2024
arporter added a commit that referenced this pull request Jan 4, 2024
arporter added a commit that referenced this pull request Jan 4, 2024
arporter added a commit that referenced this pull request Jan 10, 2024
arporter added a commit that referenced this pull request Jan 10, 2024
arporter added a commit that referenced this pull request Jan 10, 2024
arporter added a commit that referenced this pull request Jan 10, 2024
@arporter
Copy link
Member Author

Taking this back as I've discovered it doesn't work if one requests a F2008 parser instead of F2003!

sergisiso added a commit that referenced this pull request Jan 11, 2024
@arporter
Copy link
Member Author

This has got a bit bigger as, on looking at the Fortran2008 implementation of Open (which I missed first time around), I realised that there was a lot of code duplication that could be factored out. I also slightly refactored the way that we handle the list of supported extensions (we now have a method that returns the list rather than just a module-scope variable containing a list). This makes testing a bit cleaner as monkeypatch can be used more easily.

Ready for another look now.

Copy link
Collaborator

@sergisiso sergisiso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arporter Again, I gave a quick read to this PR since this was already reviewed once to check that I agree with the general solution and that the previously raised comments from @rupertford are now all resolved. This is ready to merge.

@sergisiso sergisiso added ready for merge PR is waiting on final CI checks before being merged. and removed under review labels Jan 29, 2024
@sergisiso sergisiso merged commit 6d8481c into master Jan 29, 2024
4 checks passed
@sergisiso sergisiso deleted the 426_convert_arg_to_open branch January 29, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ready for merge PR is waiting on final CI checks before being merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants