-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathpyproject.toml
More file actions
145 lines (133 loc) · 3.53 KB
/
Copy pathpyproject.toml
File metadata and controls
145 lines (133 loc) · 3.53 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
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mosfit"
dynamic = ["version"]
description = "Modular software for fitting semi-analytical model predictions to observed astronomical transient data."
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.11"
authors = [
{ name = "James Guillochon", email = "guillochon@gmail.com" },
{ name = "Matt Nicholl" },
]
keywords = ["astronomy", "fitting", "monte carlo", "modeling"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Physics",
]
dependencies = [
"astrocats>=0.5.0",
"astropy>=7.1",
"dynesty>=3.1",
"emcee>=3.0.2",
"extinction>=0.2.2",
"h5py>=3.8.0",
"inflect>=1.0.0",
"matplotlib>=3.0.0",
"nbstripout>=0.2.9",
"numba>=0.67.0",
"numexpr>=2.6.1",
"numpy>=2.3",
"pandas>=2.2",
"palettable>=2.1.1",
"schwimmbad>=0.4.2",
"scipy>=1.2",
"seaborn>=0.7.1",
"six>=1.0.0",
]
[project.optional-dependencies]
mpi = [
"mpi4py>=3.1.6",
]
sedona = [
"torch",
]
docs = [
"sphinx>=7.0,<8",
"sphinx_rtd_theme>=2.0",
"sphinx_automodapi",
"sphinxcontrib-autoprogram",
"numpydoc",
"tqdm",
]
[project.urls]
Homepage = "https://github.com/guillochon/mosfit"
Documentation = "https://mosfit.readthedocs.io/"
Changelog = "https://github.com/guillochon/MOSFiT/blob/master/CHANGELOG.md"
Download = "https://github.com/guillochon/mosfit/tarball/v2.1.0"
conda-forge = "https://anaconda.org/conda-forge/mosfit"
[project.scripts]
mosfit = "mosfit.main:main"
[tool.hatch.version]
path = "mosfit/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"/mosfit",
"/LICENSE",
"/README.md",
"/CHANGELOG.md",
"/test.py",
"/recipe",
]
[tool.hatch.build.targets.sdist.force-include]
"test.py" = "test.py"
[tool.hatch.build.targets.wheel]
packages = ["mosfit"]
[dependency-groups]
dev = [
"coverage>=7.6",
]
# Minimal runtime set for the rest-frame SED path (`--lynx` /
# `mosfit.lynx.LynxSource`). Fitting, plotting and the samplers are excluded:
# nothing on that path imports `emcee`, `dynesty` or `numba`. Install it
# alongside MOSFiT itself with dependencies suppressed, e.g.
#
# uv pip install --no-deps -e .
# uv pip install --group lynx
#
# `h5py` is needed only to write `products/lynx_seds.h5` from the command
# line; `LynxSource` returns arrays and does not touch it. `emcee` backs the
# prior draws the command line makes, and is not needed by `LynxSource`.
# `numba` is needed only by the `tde` model, whose viscous transform is
# JIT-compiled.
lynx = [
"astrocats>=0.5.0",
"astropy>=7.1",
"emcee>=3.0.2",
"extinction>=0.2.2",
"h5py>=3.8.0",
"inflect>=1.0.0",
"numexpr>=2.6.1",
"numpy>=2.3",
"schwimmbad>=0.4.2",
"scipy>=1.2",
"six>=1.0.0",
]
[tool.coverage.run]
source = ["mosfit"]
omit = [
"mosfit/tests/*",
"mosfit/modules/seds/sesn_sedona.py",
"mosfit/emulators/*",
]
parallel = true
branch = false
[tool.coverage.report]
fail_under = 70
show_missing = false
skip_empty = true
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"raise NotImplementedError",
]