-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
72 lines (66 loc) · 2.33 KB
/
Copy pathpyproject.toml
File metadata and controls
72 lines (66 loc) · 2.33 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
[project]
name = "magnetics"
version = "0.1.0"
description = "Device-agnostic 3D magnetic-sensor analysis of tokamak MHD instabilities (importable library + optional service)."
readme = "README.md"
authors = [
{ name = "Matthew Pharr", email = "m.pharr@protonmail.com" }
]
requires-python = ">=3.12"
dependencies = [
# data-reading (Slow Rollers' shot loaders / Data layer)
"h5netcdf>=1.8.1",
"h5py>=3.16.0",
"xarray>=2026.4.0",
"mdsthin>=1.0",
"matplotlib>=3.11.0",
"numpy>=2.4.6",
"scipy>=1.18.0",
# web service + one-command launcher (bundled GUI). Core deps so a plain
# `pip install magnetics` can run the GUI with no extras.
"fastapi>=0.138.0",
"uvicorn[standard]>=0.49.0",
# per-user data dir for installed (non-checkout) runs; see data/h5source.py
"platformdirs>=4",
# KSTAR VPN/SSH tunnel automation (data/fetch/kstar_transport.py imports it
# lazily; without declaring it, a wheel install dies at live-pull time)
"pexpect>=4.9",
]
[build-system]
requires = ["uv_build>=0.11.6,<0.12.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"pytest>=9.1.1",
"ruff>=0.15.18",
# notebook tooling (examples + clean notebook commits)
"ipykernel>=7.3.0",
"jupyter>=1.1.0",
"nbconvert>=7.16",
"nbstripout>=0.9.1",
"ty>=0.0.52",
"httpx>=0.28.1",
]
[project.scripts]
# One-command launcher: start the service and open the bundled GUI in a browser.
magnetics = "magnetics.cli:main"
# Start just the service (honors HOST/PORT env vars); kept for compatibility.
magnetics-service = "magnetics.service.app:main"
# Fetch a shot to the local data dir (the toksearch/mdsthin CLI).
magnetics-fetch = "magnetics.data.fetch.toksearch:main"
[tool.ruff]
line-length = 100 # target version is inferred from requires-python
[tool.ty.src]
# The qs_* modules are the former _slcontour SLCONTOUR translation, now promoted into
# core (shim-free). They are ruff format + lint clean; the xarray-heavy `ty` pass is a
# documented follow-up (see docs/qs_slcontour/ and the retire-quasistationary plan).
exclude = [
"src/magnetics/core/qs_fit.py",
"src/magnetics/core/qs_prep.py",
"src/magnetics/core/qs_io_data.py",
"src/magnetics/core/qs_run.py",
"src/magnetics/core/qs_plots.py",
"src/magnetics/core/qs_device.py",
]
[tool.pytest.ini_options]
testpaths = ["tests"]