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.
Files changed (45) hide show
  1. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/PKG-INFO +1 -1
  2. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/download.py +2 -0
  3. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/chen2023large.py +2 -2
  4. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/nieuwland2018large.py +10 -5
  5. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch.egg-info/PKG-INFO +1 -1
  6. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/pyproject.toml +1 -1
  7. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/LICENSE +0 -0
  8. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/README.md +0 -0
  9. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/__init__.py +0 -0
  10. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/py.typed +0 -0
  11. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/__init__.py +0 -0
  12. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/albrecht2019increased.py +0 -0
  13. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/allen2022massive.py +0 -0
  14. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/bel2026petit.py +0 -0
  15. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/brennan2019hierarchical.py +0 -0
  16. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/dan2023bids.py +0 -0
  17. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/ghassemi2018you.py +0 -0
  18. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/gifford2022large.py +0 -0
  19. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/grootswagers2022human.py +0 -0
  20. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/hebart2023thingsmeg.py +0 -0
  21. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/hinss2023open.py +0 -0
  22. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/hollenstein2018zuco.py +0 -0
  23. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/kemp2000analysis.py +0 -0
  24. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/kueper2024eeg.py +0 -0
  25. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/li2022petit.py +0 -0
  26. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/liu2024eeg2video.py +0 -0
  27. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/miltiadous2023dice.py +0 -0
  28. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/moabb2025.py +0 -0
  29. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/mumtaz2018machine.py +0 -0
  30. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/schalk2004bci.py +0 -0
  31. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/shirazi2024hbn.py +0 -0
  32. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/singh2021timing.py +0 -0
  33. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/tuh_eeg.py +0 -0
  34. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/studies/zyma2019eeg.py +0 -0
  35. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/test_download.py +0 -0
  36. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/test_moabb2025.py +0 -0
  37. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/test_studies.py +0 -0
  38. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/test_utils.py +0 -0
  39. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch/utils.py +0 -0
  40. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch.egg-info/SOURCES.txt +0 -0
  41. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch.egg-info/dependency_links.txt +0 -0
  42. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch.egg-info/entry_points.txt +0 -0
  43. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch.egg-info/requires.txt +0 -0
  44. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/neuralfetch.egg-info/top_level.txt +0 -0
  45. {neuralfetch-0.2.0 → neuralfetch-0.2.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: neuralfetch
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Download backends and data-fetching utilities for neuralset.
5
5
  Author: Meta FAIR
6
6
  License-Expression: MIT
@@ -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, ...]] = ("openxl",)
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, ...]] = ("openpyxl",)
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.pick_types(eeg=True, stim=True)
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 / "osfstorage" / "Stimuli" / "Stimuli.zip"
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
- delong = pd.read_excel(xls_file, sheet_name="Delong_Replication")
220
- control = pd.read_excel(xls_file, sheet_name="Control_experiment")
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 " :,=.":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: neuralfetch
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Download backends and data-fetching utilities for neuralset.
5
5
  Author: Meta FAIR
6
6
  License-Expression: MIT
@@ -6,7 +6,7 @@ description = "Download backends and data-fetching utilities for neuralset."
6
6
  license = "MIT"
7
7
  license-files = ["LICENSE"]
8
8
  requires-python = ">=3.12"
9
- version = "0.2.0"
9
+ version = "0.2.2"
10
10
 
11
11
  dependencies = [
12
12
  "neuralset>=0.0.1",
File without changes
File without changes
File without changes