-
Notifications
You must be signed in to change notification settings - Fork 23
/
pyproject.toml
404 lines (374 loc) · 8.43 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
[build-system]
requires = ["setuptools>=64"]
build-backend = "setuptools.build_meta"
[project]
name = "neuroconv"
version = "0.6.6"
description = "Convert data from proprietary formats to NWB format."
readme = "README.md"
authors = [
{ name = "Cody Baker" },
{ name = "Szonja Weigl" },
{ name = "Heberto Mayorquin" },
{ name = "Paul Adkisson" },
{ name = "Luiz Tauffer" },
{ name = "Ben Dichter", email = "[email protected]" },
]
license = { file = "license.txt" }
keywords = ["nwb", "NeurodataWithoutBorders"]
classifiers = [
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"License :: OSI Approved :: BSD License",
]
requires-python = ">=3.9"
dependencies = [
"numpy>=1.22.0, <2.0.0; python_version <= '3.11'",
"numpy>=1.26.0, <2.0.0; python_version >= '3.12'",
"jsonschema>=3.2.0",
"PyYAML>=5.4",
"scipy>=1.4.1",
"h5py>=3.9.0",
"hdmf>=3.13.0",
"hdmf_zarr>=0.7.0",
"pynwb>=2.7.0",
"pydantic>=2.0.0",
"typing_extensions>=4.1.0",
"psutil>=5.8.0",
"tqdm>=4.60.0",
"pandas",
"parse>=1.20.0",
"click",
"docstring-parser",
"packaging" # Issue 903
]
[project.urls]
"Homepage" = "https://github.com/catalystneuro/neuroconv"
"Documentation" = "https://neuroconv.readthedocs.io/"
"Changelog" = "https://github.com/catalystneuro/neuroconv/blob/main/CHANGELOG.md"
[project.scripts]
neuroconv = "neuroconv.tools.yaml_conversion_specification._yaml_conversion_specification:run_conversion_from_yaml_cli"
[project.optional-dependencies]
test = [
"pytest",
"pytest-cov",
"ndx-events>=0.2.0", # for special tests to ensure load_namespaces is set to allow NWBFile load at all times
"parameterized>=0.8.1",
"ndx-miniscope",
"spikeinterface[qualitymetrics]>=0.101.0",
"zarr<2.18.0", # Error with Blosc (read-only during decode) in numcodecs on May 7; check later if resolved
"pytest-xdist"
]
docs = [
"Jinja2<3.1",
"Sphinx==5.1.1",
"sphinx_rtd_theme==1.0.0",
"readthedocs-sphinx-search==0.1.2",
"sphinx-toggleprompt==0.2.0",
"sphinx-copybutton==0.5.0",
"roiextractors", # Needed for the API documentation
"spikeinterface>=0.101.0", # Needed for the API documentation
"pydata_sphinx_theme==0.12.0"
]
dandi = ["dandi>=0.58.1"]
compressors = ["hdf5plugin"]
aws = ["boto3"]
##########################
# Modality-specific Extras
##########################
## Text
csv = [
]
excel = [
"openpyxl",
"xlrd",
]
text = [
"neuroconv[csv]",
"neuroconv[excel]",
]
## Behavior
audio = [
"ndx-sound>=0.2.0",
]
sleap = [
"av>=10.0.0",
"sleap-io>=0.0.2,<0.0.12; python_version<'3.9'",
"sleap-io>=0.0.2; python_version>='3.9'",
]
deeplabcut = [
"ndx-pose==0.1.1",
"tables; platform_system != 'Darwin'",
"tables>=3.10.1; platform_system == 'Darwin' and python_version >= '3.10'",
]
fictrac = [
]
video = [
"opencv-python-headless>=4.8.1.78",
]
lightningpose = [
"ndx-pose==0.1.1",
"neuroconv[video]",
]
medpc = [
"ndx-events==0.2.0",
]
behavior = [
"neuroconv[sleap]",
"neuroconv[audio]",
"neuroconv[deeplabcut]",
"neuroconv[fictrac]",
"neuroconv[video]",
"neuroconv[lightningpose]",
"neuroconv[medpc]",
"ndx-miniscope>=0.5.1", # This is for the miniscope behavior data interface, not sure is needed
]
## Ecephys
alphaomega = [
"neo>=0.13.3",
"spikeinterface>=0.101.0",
]
axona = [
"neo>=0.13.3",
"spikeinterface>=0.101.0",
]
biocam = [
"neo>=0.13.3",
"spikeinterface>=0.101.0",
]
blackrock = [
"neo>=0.13.3",
"spikeinterface>=0.101.0",
]
cellexplorer = [
"hdf5storage>=0.1.18",
"neo>=0.13.3",
"pymatreader>=0.0.32",
"spikeinterface>=0.101.0",
]
edf = [
"neo>=0.13.3",
"pyedflib>=0.1.36",
"spikeinterface>=0.101.0",
]
intan = [
"neo>=0.13.3",
"spikeinterface>=0.101.0",
]
kilosort = [
"neo>=0.13.3",
"spikeinterface>=0.101.0",
]
maxwell = [
"neo>=0.13.3",
"spikeinterface>=0.101.0",
]
mcsraw = [
"neo>=0.13.3",
"spikeinterface>=0.101.0",
]
mearec = [
"MEArec>=1.8.0",
"neo>=0.13.3",
"spikeinterface>=0.101.0",
]
neuralynx = [
"natsort>=7.1.1",
"neo>=0.13.3",
"spikeinterface>=0.101.0",
]
neuroscope = [
"lxml>=4.6.5",
"neo>=0.13.3",
"spikeinterface>=0.101.0",
]
openephys = [
"lxml>=4.9.4",
"neo>=0.13.3",
"spikeinterface>=0.101.0",
]
phy = [
"neo>=0.13.3",
"spikeinterface>=0.101.0",
]
plexon = [
"neo>=0.13.3",
"spikeinterface>=0.101.0",
"zugbruecke >= 0.2.1; platform_system != 'Windows'",
]
spike2 = [
"neo>=0.13.3",
"sonpy>=1.7.1; python_version=='3.9' and platform_system != 'Darwin'",
"spikeinterface>=0.101.0",
]
spikegadgets = [
"neo>=0.13.3",
"spikeinterface>=0.101.0",
]
spikeglx = [
"neo>=0.13.3",
"spikeinterface>=0.101.0",
]
tdt = [
"neo>=0.13.3",
"spikeinterface>=0.101.0",
]
ecephys = [
"neuroconv[alphaomega]",
"neuroconv[axona]",
"neuroconv[biocam]",
"neuroconv[blackrock]",
"neuroconv[cellexplorer]",
"neuroconv[edf]",
"neuroconv[intan]",
"neuroconv[kilosort]",
"neuroconv[maxwell]",
"neuroconv[mcsraw]",
"neuroconv[mearec]",
"neuroconv[neuralynx]",
"neuroconv[neuroscope]",
"neuroconv[openephys]",
"neuroconv[phy]",
"neuroconv[plexon]",
"neuroconv[spike2]",
"neuroconv[spikegadgets]",
"neuroconv[spikeglx]",
"neuroconv[tdt]",
]
## Icephys
abf = [
"ndx-dandi-icephys>=0.4.0",
"neo>=0.13.2",
]
icephys = [
"neuroconv[abf]",
]
## Ophys
brukertiff = [
"roiextractors>=0.5.10",
"tifffile>=2023.3.21",
]
caiman = [
"roiextractors>=0.5.10",
]
cnmfe = [
"roiextractors>=0.5.10",
]
extract = [
"roiextractors>=0.5.10",
]
hdf5 = [
"roiextractors>=0.5.10",
]
micromanagertiff = [
"roiextractors>=0.5.10",
"tifffile>=2023.3.21",
]
miniscope = [
"natsort>=8.3.1",
"ndx-miniscope>=0.5.1",
"roiextractors>=0.5.10",
]
sbx = [
"roiextractors>=0.5.10",
]
scanimage = [
"roiextractors>=0.5.10",
"scanimage-tiff-reader>=1.4.1",
]
sima = [
"roiextractors>=0.5.10",
]
suite2p = [
"roiextractors>=0.5.10",
]
tdt_fp = [
"ndx-fiber-photometry",
"roiextractors>=0.5.10",
"tdt",
]
tiff = [
"roiextractors>=0.5.9",
"tiffile>=2018.10.18",
]
ophys = [
"neuroconv[brukertiff]",
"neuroconv[caiman]",
"neuroconv[cnmfe]",
"neuroconv[extract]",
"neuroconv[hdf5]",
"neuroconv[micromanagertiff]",
"neuroconv[miniscope]",
"neuroconv[sbx]",
"neuroconv[scanimage]",
"neuroconv[sima]",
"neuroconv[suite2p]",
"neuroconv[tdt_fp]",
"neuroconv[tiff]",
]
# Note these are references to the package in pipy (not local)
full = [
"neuroconv[aws]",
"neuroconv[compressors]",
"neuroconv[dandi]",
"neuroconv[behavior]",
"neuroconv[ecephys]",
"neuroconv[icephys]",
"neuroconv[ophys]",
"neuroconv[text]",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra --doctest-glob='*.rst'"
testpaths = ["docs/conversion_examples_gallery/", "tests"]
doctest_optionflags = "ELLIPSIS"
[tool.black]
line-length = 120
target-version = ['py38', 'py39', 'py310']
include = '\.pyi?$'
extend-exclude = '''
/(
\.toml
|\.yml
|\.txt
|\.sh
|\.git
|\.ini
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.ruff]
[tool.ruff.lint]
select = [
"F401", # Unused import
"I", # All isort rules
"D101", # Missing docstring in public class
"D103", # Missing docstring in public function
]
fixable = ["ALL"]
[tool.ruff.lint.per-file-ignores]
"**__init__.py" = ["F401", "I"]
"tests/**" = ["D"] # We are not enforcing docstrings in tests
"src/neuroconv/tools/testing/data_interface_mixins.py" = ["D"] # We are not enforcing docstrings in the interface mixings
"docs/conf.py" = ["D"] # We are not enforcing docstrings in the conf.py file
"docs/conversion_examples_gallery/conftest.py" = ["D"] # We are not enforcing docstrings in the conversion examples
[tool.ruff.lint.isort]
relative-imports-order = "closest-to-furthest"
known-first-party = ["neuroconv"]
[tool.codespell]
skip = '.git*,*.pdf,*.css'
check-hidden = true
ignore-words-list = 'assertin'