Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
HRV_MEG
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ryan Christopher Godwin
HRV_MEG
Commits
539c9080
Commit
539c9080
authored
2 years ago
by
=
Browse files
Options
Downloads
Patches
Plain Diff
Nearly there
parent
13a9d666
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Progress toward getting the evaluation integrated
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/hrvmeg/data.py
+5
-2
5 additions, 2 deletions
src/hrvmeg/data.py
src/hrvmeg/evaluate.py
+1
-1
1 addition, 1 deletion
src/hrvmeg/evaluate.py
src/hrvmeg/predict.py
+0
-1
0 additions, 1 deletion
src/hrvmeg/predict.py
with
6 additions
and
4 deletions
src/hrvmeg/data.py
+
5
−
2
View file @
539c9080
...
...
@@ -8,6 +8,7 @@ import matplotlib.pyplot as plt
import
scipy.signal
as
signal
import
pandas
as
pd
class
MNEProcessor
:
def
__init__
(
self
,
scan_path
,
output_dir
,
csv_output_path
):
self
.
scan_path
=
scan_path
...
...
@@ -35,7 +36,7 @@ class MNEProcessor:
sfreq
=
raw
.
info
[
"
sfreq
"
]
#Unused so ignoring
#
Unused so ignoring
# mag_picks = mne.pick_types(raw.info, meg=True, eeg=False, misc=False)
# eeg_picks = mne.pick_types(raw.info, meg=False, eeg=True, misc=False)
misc_picks
=
mne
.
pick_types
(
raw
.
info
,
meg
=
False
,
eeg
=
False
,
misc
=
True
)
...
...
@@ -101,6 +102,7 @@ class MNEProcessor:
header
=
"
Time, IC1, IC2, IC3, IC4, IC5, IC6, IC7, IC8, IC9, IC10, IC11, IC12, IC13, IC14, IC15, IC16, IC17, IC18, IC19, IC20
"
,
)
class
GetRRComponent
:
def
__init__
(
self
,
output_sub_dir
,
subject_id
,
subject_path
,
ICA_value
):
"""
...
...
@@ -244,6 +246,7 @@ class GetRRComponent:
df
.
to_csv
(
stats_component
,
index
=
False
)
class
GetRRIntervals
:
def
__init__
(
self
,
subject_id
):
self
.
subject_id
=
subject_id
...
...
@@ -494,4 +497,4 @@ class GetRRIntervals:
df
=
df
.
set_index
(
"
Signal
"
)
# df = df.dropna()
df
.
to_csv
(
stats_ECG
)
\ No newline at end of file
df
.
to_csv
(
stats_ECG
)
This diff is collapsed.
Click to expand it.
src/hrvmeg/evaluate.py
+
1
−
1
View file @
539c9080
#TODO add code here...
#
TODO add code here...
# from typing import Dict, List
# import numpy as np
...
...
This diff is collapsed.
Click to expand it.
src/hrvmeg/predict.py
+
0
−
1
View file @
539c9080
...
...
@@ -4,7 +4,6 @@ from tensorflow import keras
import
pandas
as
pd
class
label_ICA_components
:
"""
Date 11/11/2021
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment