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

Support csv file reading and writing in loadtxt and savetxt. #958

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

zoziha
Copy link
Contributor

@zoziha zoziha commented Mar 20, 2025

Description

This PR will add a delimiter argument to loadtxt and savetxt functions for issue #948 to support potential CSV data file support.

Additionally, it corrects the title errors of stdlib_math and stdlib_sparse docs.

Copy link
Member

@jvdp1 jvdp1 left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you @zoziha

Copy link
Member

@perazz perazz left a comment

Choose a reason for hiding this comment

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

Nice work @zoziha, I also think that this is about ready to merge. I only have a couple comments.

@zoziha
Copy link
Contributor Author

zoziha commented Mar 21, 2025

@jvdp1, @perazz Thanks for your review.

There is a bug that made me dig deep into the reason and it took a long time. I once mentioned in #532 that the combination of form="formatted" and access="stream" in the stdlib_io.open function will lead to a bug in gfortran. But this time I also encountered this problem in ifort. You can refer to the CI failure. For safety, I think form="formatted" should better be combined with access="sequential".

Therefore, I have changed this internal detail to the open function.

Copy link
Member

@perazz perazz left a comment

Choose a reason for hiding this comment

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

LGTM, thank you @zoziha.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants