-
Notifications
You must be signed in to change notification settings - Fork 213
Savetxt unit #1085
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
Open
fiolj
wants to merge
27
commits into
fortran-lang:master
Choose a base branch
from
fiolj:savetxt-unit
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+110
−22
Open
Savetxt unit #1085
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
d6cc685
Added optional arguments: header, footer, comment to savetxt
fiolj e2d1c09
Fixed missing dummy args in savetxt
fiolj 94c36cc
Merge branch 'master' into savetxt
fiolj af2137b
updated savetxt spec
fiolj 4db2dd0
implemented arbitrary-length delimiter
fiolj 5c8397c
Added optional fmt argument to savetxt (after header and delimiter)
fiolj eb4acc6
Overloaded savetxt version with unit instead of filename
fiolj dc2c9f8
Fixed error in default format
fiolj e6a02f7
Fixed introduced error in savetxt format
fiolj d390d79
Merge branch 'fortran-lang:master' into savetxt-header
fiolj 9cd8e51
Fixed typo and added short example with headings
b75e631
fixed typo in code (comment -> comments)
036ce25
Fixed mistake (allocatable length 1 char)
ab357fa
Merge branch 'savetxt-header' into savetxt-fmt
fiolj e6af81a
Merge branch 'savetxt-fmt' into savetxt-unit
fiolj 04061b8
Added "correctly" header and footer
fbe6d0a
Merge branch 'master' into savetxt-unit
3f6aff3
Fixed formatting for easier reveiew
fiolj d491c8f
Merge branch 'master' into savetxt-unit
fiolj 390857d
Merge branch 'master' into savetxt-unit
fiolj 4e574eb
Corrected arguments, made comments arbitrary length, check open unit
fiolj d470409
Corrected specs. filename and unit in different calls
fiolj 6c43047
Added option `newline` as in Numpy savetxt
fiolj a01ffe7
Corrected introduced errors in savetxt
fiolj e3c13f3
Merge branch 'savetxt-unit' of github.com:fiolj/stdlib into savetxt-unit
fiolj 86fa060
correct IF -> if in src/stdlib_io.fypp
fiolj 8403d30
Fixed error in footer of savetxt and added tests
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,12 @@ | ||
| program example_savetxt | ||
| use stdlib_io, only: savetxt | ||
| use, intrinsic :: iso_fortran_env, only: output_unit | ||
| implicit none | ||
| real :: x(3, 2) = 1 | ||
| call savetxt('example.dat', x) | ||
| call savetxt('example.csv', x, delimiter=',') | ||
| call savetxt('example1.dat', x, header='x (x-units) y (y-units)') | ||
| call savetxt('example2.dat', x, header='x (x-units) y (y-units)', comments='! ', footer='This is all data') | ||
| call savetxt('example3.dat', x, fmt='g0.7') | ||
| call savetxt(output_unit, x, header='x (x-units) y (y-units)') | ||
| end program example_savetxt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.