-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
MRG, FIX: Datetime call in gdf 2.x age calculation #7581
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
Conversation
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 |
|
#7582 duplicate? |
|
Indeed, @SveaMeyer13 can you see if #7582 also works? I slightly prefer that one since it includes a test |
|
@SveaMeyer13 actually, instead can you update |
|
Done! |
| .. _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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
https://19252-1301584-gh.circle-artifacts.com/0/dev/whats_new.html
|
Thanks @SveaMeyer13 ! |
* FIX: Datetime call in gdf 2.x age calculation * DOC: Update latest and names
* 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) ...
* 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) ...
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).