Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
118 lines (105 loc) · 3.71 KB
/
Copy pathpyproject.toml
File metadata and controls
118 lines (105 loc) · 3.71 KB
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
[build-system]
requires = ["setuptools>=77", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "PycWB"
description = "A Python package for coherent gravitational wave burst analysis"
readme = "README.md"
license = "GPL-3.0-or-later"
license-files = ["LICENSE"]
authors = [
{name = "The PycWB team", email = "yumeng.xu@ligo.org"},
]
keywords = ["ligo", "physics", "gravity", "signal processing", "gravitational waves", "cwb", "coherent wave burst"]
requires-python = ">=3.11"
dynamic = ["version"]
dependencies = [
"matplotlib",
"astropy",
"pyyaml",
"jsonschema",
"numba",
"jax",
"gwpy",
"gwosc",
"gwdatafind",
"requests",
"ligo-gracedb",
"filelock",
"numpy>=2",
"scipy>=1.13",
"h5py>=3.11",
"lalsuite>=7.23",
"healpy>=1.17",
"scikit-learn>=1.4.2",
"joblib>=1.3",
"pyarrow>=17",
"pillow>=9.0.0",
"click",
"orjson",
"dacite",
"cartopy",
"htcondor",
"psutil",
"memspectrum",
"jinja2",
"plotly",
"wdm-wavelet>=0.4.0",
"burst-waveform>=0.5.0",
"pandas",
"duckdb>=1.5.6",
"tqdm",
"iminuit"
]
[project.optional-dependencies]
pycbc = ["pycbc"]
# nds2-client and python-nds2-client are not on PyPI; install via conda-forge.
# gwpy (a hard dependency) will use them automatically when present.
nds2 = ["python-nds2-client"]
# Postproduction imports XGBoost; production searches do not need it.
xgboost = ["xgboost"]
# Optional live terminal dashboard; batch/plain workflows do not require Rich.
terminal = ["rich>=13.7"]
autoencoder = ["tensorflow"]
# Reads cWB ROOT output files without PyROOT.
root = ["uproot", "awkward"]
test = ["pytest>=7", "pytest-mock", "pytest-cov", "pytest-xdist>=3.6", "iminuit", "xgboost", "uproot", "awkward", "rich>=13.7"]
[project.scripts]
pycwb = "pycwb.cli.main:main"
[project.urls]
Homepage = "https://git.ligo.org/yumeng.xu/pycwb"
Documentation = "https://pycwb.readthedocs.io"
Issues = "https://git.ligo.org/yumeng.xu/pycwb/-/issues"
Changelog = "https://git.ligo.org/yumeng.xu/pycwb/-/blob/main/CHANGES.md"
[tool.setuptools_scm]
write_to = "pycwb/_version.py"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
# Without include, namespace discovery installs every top-level directory
# (tests, tools, benchmark, ...) into site-packages. Tests stay in the sdist.
where = ["."]
include = ["pycwb", "pycwb.*"]
exclude = ["pycwb.tests", "pycwb.tests.*", "pycwb.*.tests", "pycwb.*.tests.*"]
[tool.setuptools.exclude-package-data]
# include-package-data would otherwise ship excluded test directories as data.
"*" = ["tests/*", "tests/**/*"]
[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
[tool.ruff]
line-length = 100
target-version = "py311"
force-exclude = true
extend-exclude = ["**/tests/**", "**/vendor/**", "_version.py"]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F"]
[tool.mypy]
python_version = "3.11"
files = ["pycwb/types/execution.py", "pycwb/types/processing.py", "pycwb/constants/processing_options.py", "pycwb/constants/gpu_options.py", "pycwb/types/gpu_options.py", "pycwb/constants/execution_options.py", "pycwb/modules/gpu_settings.py", "pycwb/modules/execution_settings.py", "pycwb/config/schema.py", "pycwb/modules/coherence_native/callbacks.py", "pycwb/modules/super_cluster_native/callbacks.py", "pycwb/modules/likelihoodWP/callbacks.py", "pycwb/utils/size.py", "pycwb/utils/intervals.py", "pycwb/modules/coherence_gpu/coherence.py", "pycwb/modules/likelihood_gpu/likelihood.py", "pycwb/modules/super_cluster_gpu/super_cluster.py"]
follow_imports = "skip"
ignore_missing_imports = true
check_untyped_defs = true
disallow_untyped_defs = true
warn_unused_ignores = true