eegdash 0.3.6__py3-none-any.whl → 0.3.6.dev97__py3-none-any.whl

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.

Potentially problematic release.


This version of eegdash might be problematic. Click here for more details.

eegdash/__init__.py CHANGED
@@ -7,4 +7,4 @@ __init__mongo_client()
7
7
 
8
8
  __all__ = ["EEGDash", "EEGDashDataset", "EEGChallengeDataset"]
9
9
 
10
- __version__ = "0.3.6"
10
+ __version__ = "0.3.6.dev97"
eegdash/registry.py CHANGED
@@ -57,7 +57,7 @@ def register_openneuro_datasets(
57
57
 
58
58
  init = make_init(dataset_id)
59
59
 
60
- doc = f"""Create an instance for OpenNeuro dataset ``{dataset_id}``.
60
+ doc = f"""OpenNeuro dataset ``{dataset_id}``.
61
61
 
62
62
  {markdown_table(row_series)}
63
63
 
@@ -69,11 +69,15 @@ def register_openneuro_datasets(
69
69
  Extra Mongo query merged with ``{{'dataset': '{dataset_id}'}}``.
70
70
  s3_bucket : str | None
71
71
  Optional S3 bucket name.
72
+ subject : str | None
73
+ Optional subject identifier.
74
+ task : str | None
75
+ Optional task identifier.
72
76
  **kwargs
73
77
  Passed through to {base_class.__name__}.
74
78
  """
75
79
 
76
- init.__doc__ = doc
80
+ # init.__doc__ = doc
77
81
 
78
82
  cls = type(
79
83
  class_name,
@@ -101,6 +105,7 @@ def markdown_table(row_series: pd.Series) -> str:
101
105
  """Create a reStructuredText grid table from a pandas Series."""
102
106
  if row_series.empty:
103
107
  return ""
108
+ dataset_id = row_series["dataset"]
104
109
 
105
110
  # Prepare the dataframe with user's suggested logic
106
111
  df = (
@@ -112,6 +117,7 @@ def markdown_table(row_series: pd.Series) -> str:
112
117
  "n_tasks": "#Classes",
113
118
  "sampling_freqs": "Freq(Hz)",
114
119
  "duration_hours_total": "Duration(H)",
120
+ "size": "Size",
115
121
  }
116
122
  )
117
123
  .reindex(
@@ -122,6 +128,7 @@ def markdown_table(row_series: pd.Series) -> str:
122
128
  "#Classes",
123
129
  "Freq(Hz)",
124
130
  "Duration(H)",
131
+ "Size",
125
132
  ]
126
133
  )
127
134
  .infer_objects(copy=False)
@@ -131,6 +138,9 @@ def markdown_table(row_series: pd.Series) -> str:
131
138
  # Use tabulate for the final rst formatting
132
139
  table = tabulate(df, headers="keys", tablefmt="rst", showindex=False)
133
140
 
141
+ # Add a caption for the table
142
+ caption = f"Short overview of dataset {dataset_id} more details in the `Nemar documentation <https://nemar.org/dataexplorer/detail?dataset_id={dataset_id}>`_."
143
+ # adding caption below the table
134
144
  # Indent the table to fit within the admonition block
135
145
  indented_table = "\n".join(" " + line for line in table.split("\n"))
136
- return f"\n\n{indented_table}"
146
+ return f"\n\n{indented_table}\n\n{caption}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eegdash
3
- Version: 0.3.6
3
+ Version: 0.3.6.dev97
4
4
  Summary: EEG data for machine learning
5
5
  Author-email: Young Truong <dt.young112@gmail.com>, Arnaud Delorme <adelorme@gmail.com>, Aviv Dotan <avivd220@gmail.com>, Oren Shriki <oren70@gmail.com>, Bruno Aristimunha <b.aristimunha@gmail.com>
6
6
  License-Expression: GPL-3.0-only
@@ -59,6 +59,7 @@ Requires-Dist: numpydoc; extra == "docs"
59
59
  Requires-Dist: memory_profiler; extra == "docs"
60
60
  Requires-Dist: ipython; extra == "docs"
61
61
  Requires-Dist: lightgbm; extra == "docs"
62
+ Requires-Dist: plotly; extra == "docs"
62
63
  Provides-Extra: all
63
64
  Requires-Dist: eegdash[docs]; extra == "all"
64
65
  Requires-Dist: eegdash[dev]; extra == "all"
@@ -1,4 +1,4 @@
1
- eegdash/__init__.py,sha256=98fKNGN_Q6JIg7jL9AQtMbxbGDjnzZ8FAroMiRY-7pA,234
1
+ eegdash/__init__.py,sha256=HYsDh0y4j3POtxBWU3sZVZBmB-GK6ty61GwRrsM7cJo,240
2
2
  eegdash/api.py,sha256=yotN4vqurZAxVA4q_DK4z0mhh9P8sbpxKzvyxuRSkcQ,38538
3
3
  eegdash/data_config.py,sha256=OS6ERO-jHrnEOfMJUehY7ieABdsRw_qWzOKJ4pzSfqw,1323
4
4
  eegdash/data_utils.py,sha256=mi9pscui-BPpRH9ovRtGWiSwHG5QN6K_IvJdYaING2I,27679
@@ -6,7 +6,7 @@ eegdash/dataset.py,sha256=iGi7m2FNhLgJxxwSsB9JIy01p4tmdlJIPzdL5CDAJU4,9446
6
6
  eegdash/dataset_summary.csv,sha256=9Rw9PawiQ9a_OBRJYKarrzb4UFSGpkGULhYB0MYUieE,14740
7
7
  eegdash/mongodb.py,sha256=GD3WgA253oFgpzOHrYaj4P1mRjNtDMT5Oj4kVvHswjI,2006
8
8
  eegdash/preprocessing.py,sha256=7S_TTRKPKEk47tTnh2D6WExBt4cctAMxUxGDjJqq5lU,2221
9
- eegdash/registry.py,sha256=cxqX53GYyDvg5DkiqJkvjqHDPI72JTPlI4qVh2sILu8,3873
9
+ eegdash/registry.py,sha256=jBR2tGE4YJL4yhbZcn2CN4jaC-ttyVN0wmsCR1uWzoU,4329
10
10
  eegdash/utils.py,sha256=wU9CBQZLW_LIQIBwhgQm5bU4X-rSsVNPdeF2iE4QGJ4,410
11
11
  eegdash/features/__init__.py,sha256=BXNhjvL4_SSFAY1lcP9nyGpkbJNtoOMH4AHlF6OyABo,4078
12
12
  eegdash/features/datasets.py,sha256=kU1DO70ArSIy-LF1hHD2NN4iT-kJrI0mVpSkyV_OSeI,18301
@@ -23,8 +23,8 @@ eegdash/features/feature_bank/dimensionality.py,sha256=j_Ds71Y1AbV2uLFQj8EuXQ4kz
23
23
  eegdash/features/feature_bank/signal.py,sha256=3Tb8z9gX7iZipxQJ9DSyy30JfdmW58kgvimSyZX74p8,3404
24
24
  eegdash/features/feature_bank/spectral.py,sha256=bNB7skusePs1gX7NOU6yRlw_Gr4UOCkO_ylkCgybzug,3319
25
25
  eegdash/features/feature_bank/utils.py,sha256=DGh-Q7-XFIittP7iBBxvsJaZrlVvuY5mw-G7q6C-PCI,1237
26
- eegdash-0.3.6.dist-info/licenses/LICENSE,sha256=asisR-xupy_NrQBFXnx6yqXeZcYWLvbAaiETl25iXT0,931
27
- eegdash-0.3.6.dist-info/METADATA,sha256=jxpD8NJMnPwutQKPSXsL9LsBV5_miObbQy-luSTSUwQ,9919
28
- eegdash-0.3.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
29
- eegdash-0.3.6.dist-info/top_level.txt,sha256=zavO69HQ6MyZM0aQMR2zUS6TAFc7bnN5GEpDpOpFZzU,8
30
- eegdash-0.3.6.dist-info/RECORD,,
26
+ eegdash-0.3.6.dev97.dist-info/licenses/LICENSE,sha256=asisR-xupy_NrQBFXnx6yqXeZcYWLvbAaiETl25iXT0,931
27
+ eegdash-0.3.6.dev97.dist-info/METADATA,sha256=FYW3VeKH9zdIRjVdIlE5sjKPIo8Qxs9yAdhfRm31skU,9964
28
+ eegdash-0.3.6.dev97.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
29
+ eegdash-0.3.6.dev97.dist-info/top_level.txt,sha256=zavO69HQ6MyZM0aQMR2zUS6TAFc7bnN5GEpDpOpFZzU,8
30
+ eegdash-0.3.6.dev97.dist-info/RECORD,,