Repository navigation
[ENH, MRG] Add info save method - #11401
Merged
Merged
Conversation
larsoner
reviewed
Jan 2, 2023
Comment on lines
+1237
to
+1242
| data_type : int | ||
| The data_type in case it is necessary. Should be 4 (FIFFT_FLOAT), | ||
| 5 (FIFFT_DOUBLE), or 16 (FIFFT_DAU_PACK16) for | ||
| raw data. | ||
| reset_range : bool | ||
| If True, info['chs'][k]['range'] will be set to unity. |
Member
There was a problem hiding this comment.
Can we avoid exposing these? I'd rather add them later if someone needs them
Contributor
Author
There was a problem hiding this comment.
This is copied from mne.io.write_info, do you want to remove it there too?
Member
There was a problem hiding this comment.
No we need it there for completeness. Stuff in mne.io.* was added quite early and not with a user API in mind. This PR is a chance for us to make a nice API from the start
| Parameters | ||
| ---------- | ||
| fname : str | ||
| The name of the file. Should end by -info.fif. |
Member
There was a problem hiding this comment.
Suggested change
| The name of the file. Should end by -info.fif. | |
| The name of the file. Should end by ``-info.fif``. |
Member
There was a problem hiding this comment.
Edited your comment to have double backticks (rst vs md code mode)
hoechenberger
approved these changes
Jan 3, 2023
agramfort
approved these changes
Jan 3, 2023
drammock
approved these changes
Jan 3, 2023
Member
|
thanks @alexrockhill |
larsoner
added a commit
to larsoner/mne-python
that referenced
this pull request
Jan 3, 2023
* upstream/main: [ENH, MRG] Add info save method (mne-tools#11401) MAINT: Sanitize name lists (mne-tools#11399) [ENH] Read annotation duration from SNIRF files. (mne-tools#11397)
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds a save method to the info class in addition to
mne.io.write_infofor convenience.