Skip to content

Commit

Permalink
Added pyproject.toml and removed setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasstolker committed Oct 7, 2024
1 parent 982f85a commit 980ddb1
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 39 deletions.
12 changes: 10 additions & 2 deletions calistar/calistar.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,10 +444,18 @@ def target_star(
"has_xp_continuous" in gaia_result.columns
and gaia_result["has_xp_continuous"][0]
):
# Sampling adopted from the Gaia XP documentation
# Sampling adopted from the GaiaXPy documentation
# https://gaiaxpy.readthedocs.io/en/latest/usage.html

# Default GaiaXPy sampling
# sampling = np.arange(336, 1021, 2)

# Improved sampling at the blue end of the spectrum
sampling = np.geomspace(330, 1049.9999999999, 361)

df_cal, sampling = calibrate(
input_object=[f"{self.gaia_source}"],
sampling=np.geomspace(330, 1049.9999999999, 361),
sampling=sampling,
truncation=False,
with_correlation=True,
output_path="./",
Expand Down
30 changes: 30 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[build-system]
requires = ["setuptools>=61.0", "setuptools-scm>=8.0"]
build-backend = "setuptools.build_meta"

[project]
name = "calistar"
version = "0.0.5"
authors = [{name = "Tomas Stolker", email = "[email protected]"}]
description = "Tool to search for a calibration star"
readme = "README.rst"
requires-python = ">=3.9,<3.12"
license = {text = "MIT License"}
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Astronomy",
]
dynamic = ["dependencies"]

[project.urls]
Documentation = "https://calistar.readthedocs.io"
Repository = "https://github.com/tomasstolker/calistar"
Issues = "https://github.com/tomasstolker/calistar/issues"

[tool.setuptools]
packages = ["calistar"]

[tool.setuptools.dynamic]
dependencies = {file = "requirements.txt"}
37 changes: 0 additions & 37 deletions setup.py

This file was deleted.

0 comments on commit 980ddb1

Please sign in to comment.