neuralfetch 0.2.0__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/PKG-INFO +1 -1
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/download.py +2 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/chen2023large.py +2 -2
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/nieuwland2018large.py +10 -5
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch.egg-info/PKG-INFO +1 -1
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/pyproject.toml +1 -1
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/LICENSE +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/README.md +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/__init__.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/py.typed +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/__init__.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/albrecht2019increased.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/allen2022massive.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/bel2026petit.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/brennan2019hierarchical.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/dan2023bids.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/ghassemi2018you.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/gifford2022large.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/grootswagers2022human.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/hebart2023thingsmeg.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/hinss2023open.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/hollenstein2018zuco.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/kemp2000analysis.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/kueper2024eeg.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/li2022petit.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/liu2024eeg2video.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/miltiadous2023dice.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/moabb2025.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/mumtaz2018machine.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/schalk2004bci.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/shirazi2024hbn.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/singh2021timing.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/tuh_eeg.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/zyma2019eeg.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/test_download.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/test_moabb2025.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/test_studies.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/test_utils.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/utils.py +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch.egg-info/SOURCES.txt +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch.egg-info/dependency_links.txt +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch.egg-info/entry_points.txt +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch.egg-info/requires.txt +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch.egg-info/top_level.txt +0 -0
- {neuralfetch-0.2.0 → neuralfetch-0.2.2}/setup.cfg +0 -0
|
@@ -801,6 +801,8 @@ class Dryad(BaseDownload):
|
|
|
801
801
|
continue
|
|
802
802
|
print(f" [{i}/{len(files)}] Downloading {name}...")
|
|
803
803
|
digest_type = f.get("digestType", "")
|
|
804
|
+
# sha-256 -> sha256
|
|
805
|
+
digest_type = digest_type.replace("-", "")
|
|
804
806
|
digest = f.get("digest", "")
|
|
805
807
|
file_hash = f"{digest_type}:{digest}" if digest and digest_type else None
|
|
806
808
|
download_file(
|
|
@@ -84,7 +84,7 @@ class Chen2023Large(study.Study):
|
|
|
84
84
|
description: tp.ClassVar[str] = """
|
|
85
85
|
EEG recordings for 123 participants while viewing 28 video clips targeting nine categories of emotion
|
|
86
86
|
"""
|
|
87
|
-
requirements: tp.ClassVar[tuple[str, ...]] = ("
|
|
87
|
+
requirements: tp.ClassVar[tuple[str, ...]] = ("python-calamine",)
|
|
88
88
|
_info: tp.ClassVar[study.StudyInfo] = study.StudyInfo(
|
|
89
89
|
num_timelines=123,
|
|
90
90
|
num_subjects=123,
|
|
@@ -225,7 +225,7 @@ class Chen2023Large(study.Study):
|
|
|
225
225
|
@cached_property
|
|
226
226
|
def _stimulus_info(self) -> pd.DataFrame:
|
|
227
227
|
stim_df = pd.read_excel(
|
|
228
|
-
self._get_filename("stimuli_info", {"": ""}), skipfooter=6
|
|
228
|
+
self._get_filename("stimuli_info", {"": ""}), skipfooter=6, engine="calamine"
|
|
229
229
|
)
|
|
230
230
|
rename_cols = {
|
|
231
231
|
"Video index": "video_index",
|
|
@@ -89,7 +89,7 @@ class Nieuwland2018Large(study.Study):
|
|
|
89
89
|
"EEG recordings from 334 participants across 9 laboratories reading sentences in "
|
|
90
90
|
"RSVP to test phonological predictions."
|
|
91
91
|
)
|
|
92
|
-
requirements: tp.ClassVar[tuple[str, ...]] = ("
|
|
92
|
+
requirements: tp.ClassVar[tuple[str, ...]] = ("python-calamine",)
|
|
93
93
|
_info: tp.ClassVar[study.StudyInfo] = study.StudyInfo(
|
|
94
94
|
num_timelines=335,
|
|
95
95
|
num_subjects=295,
|
|
@@ -123,7 +123,7 @@ class Nieuwland2018Large(study.Study):
|
|
|
123
123
|
dict(task=timeline["task"]) if timeline.get("task") is not None else dict()
|
|
124
124
|
)
|
|
125
125
|
raw = site._load_raw(subject=timeline["site_subject"], **kwargs)
|
|
126
|
-
raw.
|
|
126
|
+
raw.pick(["eeg", "stim"])
|
|
127
127
|
if raw.get_montage() is None:
|
|
128
128
|
montage = mne.channels.make_standard_montage("standard_1005")
|
|
129
129
|
raw.set_montage(montage)
|
|
@@ -207,7 +207,7 @@ def _preproc_stimuli(path: str):
|
|
|
207
207
|
path_preprocessed = Path(path) / "prepare"
|
|
208
208
|
stim_dir = path_preprocessed / "stimuli"
|
|
209
209
|
stim_dir.mkdir(exist_ok=True, parents=True)
|
|
210
|
-
zip_file = path_download / "
|
|
210
|
+
zip_file = path_download / "Stimuli" / "Stimuli.zip"
|
|
211
211
|
xls_file = stim_dir / "replication_items.xlsx"
|
|
212
212
|
|
|
213
213
|
if not xls_file.exists():
|
|
@@ -216,8 +216,13 @@ def _preproc_stimuli(path: str):
|
|
|
216
216
|
xls = archive.read("Stimuli/Sentence Materials/REPLICATION_ITEMS.xlsx")
|
|
217
217
|
f.write(xls)
|
|
218
218
|
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
sheets = pd.read_excel(
|
|
220
|
+
xls_file,
|
|
221
|
+
sheet_name=["Delong_Replication", "Control_experiment"],
|
|
222
|
+
engine="calamine",
|
|
223
|
+
)
|
|
224
|
+
delong = sheets["Delong_Replication"]
|
|
225
|
+
control = sheets["Control_experiment"]
|
|
221
226
|
|
|
222
227
|
def badchar(string):
|
|
223
228
|
for k in " :,=.":
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|