Repository navigation
MRG, FIX: Datetime call in gdf 2.x age calculation - #7581
Merged
Merged
Conversation
cbrnr
approved these changes
Apr 8, 2020
Codecov Report
@@ Coverage Diff @@
## master #7581 +/- ##
==========================================
- Coverage 90.20% 90.12% -0.09%
==========================================
Files 452 452
Lines 82104 82941 +837
Branches 13109 13110 +1
==========================================
+ Hits 74064 74752 +688
- Misses 5206 5356 +150
+ Partials 2834 2833 -1 |
Contributor
|
#7582 duplicate? |
Member
|
Indeed, @SveaMeyer13 can you see if #7582 also works? I slightly prefer that one since it includes a test |
Member
|
@SveaMeyer13 actually, instead can you update |
Closed
Contributor
Author
|
Done! |
larsoner
reviewed
Apr 9, 2020
| .. _Ramiro Gatti: https://github.com/ragatti No newline at end of file | ||
| .. _Ramiro Gatti: https://github.com/ragatti | ||
|
|
||
| .. _Svea Marie Meyer: https://github.com/SveaMeyer13 |
Member
There was a problem hiding this comment.
Name here and above need to match, it's what CircleCI complains about (search "warning" in the log and you'll see it)
And the broken link is visible here
Member
|
Thanks @SveaMeyer13 ! |
larsoner
pushed a commit
that referenced
this pull request
Apr 9, 2020
* FIX: Datetime call in gdf 2.x age calculation * DOC: Update latest and names
larsoner
added a commit
to larsoner/mne-python
that referenced
this pull request
Apr 10, 2020
* upstream/master: (1522 commits) FIX: Show bug MRG, FIX: Datetime call in gdf 2.x age calculation (mne-tools#7581) DOC: Simplify Darwin installation (mne-tools#7584) MRG, ENH: Allow picking without preload (mne-tools#7507) DOC: Document anonymization better (mne-tools#7587) Rework _Brain show (mne-tools#7580) DOC: Fixes in tutorial (mne-tools#7579) ENH: muscle artifact detection (mne-tools#7407) MRG: Remove toolbars in PyVista plotter (mne-tools#7572) WIP: Deregister plotter from the figure list in close() (mne-tools#7573) MRG: Fix mouse wheel event in _TimeViewer (mne-tools#7563) FIX: Fix toggle all (mne-tools#7567) MRG, FIX: parallel n_jobs check (mne-tools#7566) Rename artifact detection to movement detection (mne-tools#7569) ENH: Update spelling check [ci skip] (mne-tools#7565) MRG, ENH: Dont require preload for raw resample (mne-tools#7508) MRG: Add interpolation for NIRS signals (mne-tools#7428) WIP: Add temporal derivative distribution repair algorithm (mne-tools#7556) DOC: fix link in docstr [skip ci] (mne-tools#7562) ENH: Custom figure title when plotting Dipole locations (mne-tools#7558) ...
larsoner
added a commit
to larsoner/mne-python
that referenced
this pull request
Apr 25, 2023
* upstream/master: (1522 commits) FIX: Show bug MRG, FIX: Datetime call in gdf 2.x age calculation (mne-tools#7581) DOC: Simplify Darwin installation (mne-tools#7584) MRG, ENH: Allow picking without preload (mne-tools#7507) DOC: Document anonymization better (mne-tools#7587) Rework _Brain show (mne-tools#7580) DOC: Fixes in tutorial (mne-tools#7579) ENH: muscle artifact detection (mne-tools#7407) MRG: Remove toolbars in PyVista plotter (mne-tools#7572) WIP: Deregister plotter from the figure list in close() (mne-tools#7573) MRG: Fix mouse wheel event in _TimeViewer (mne-tools#7563) FIX: Fix toggle all (mne-tools#7567) MRG, FIX: parallel n_jobs check (mne-tools#7566) Rename artifact detection to movement detection (mne-tools#7569) ENH: Update spelling check [ci skip] (mne-tools#7565) MRG, ENH: Dont require preload for raw resample (mne-tools#7508) MRG: Add interpolation for NIRS signals (mne-tools#7428) WIP: Add temporal derivative distribution repair algorithm (mne-tools#7556) DOC: fix link in docstr [skip ci] (mne-tools#7562) ENH: Custom figure title when plotting Dipole locations (mne-tools#7558) ...
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.
Reference issue
WIth regards to #7124 .
What does this implement/fix?
While importing a GDF 2.x file with
we encountered the following error:
After closer investigation, we suspect that it was caused by the changes introduced by #7124 and released in v0.20.0.
As stated in the Python docs for datetime,
datetime.now(tz=timezone.utc) should be the syntactically correct functional equivalent.
To then make today and patient['birthday'] comparable, we add tzinfo to birthday (in line 860).