Commit f4ad2278 authored by yuedong0607's avatar yuedong0607
Browse files

update packaging

parent adcf01a6
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
# Pipeline for source injection on CSST images

## Installation
1. First make sure CSST simulation package is installed
2. Install the source injection packages:
```
    python setup.py install --user
    source install.sh
 ```

## Usage

install.sh

0 → 100644
+3 −0
Original line number Diff line number Diff line
conda config --add channels conda-forge
conda install -c conda-forge "cfitsio=3.*"
pip install -e .
 No newline at end of file

pyproject.toml

0 → 100644
+85 −0
Original line number Diff line number Diff line
[build-system]
requires = [
  "setuptools<82",
  "wheel",
  "Cython==3.0.6",
  "numpy==1.26.4"
]
build-backend = "setuptools.build_meta"

[project]
name = "csst-source-injection"
version = "1.0.0"
description = "CSST Source Injection Analysis Pipeline"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
authors = [
  { name = "Yuedong Fang" }
]
dynamic = ["dependencies"]

[project.scripts]
run_csst_injection = "injection_pipeline.injection_pipeline:main"
run_csst_detrending = "measurement_pipeline.run_csst_msc_instrument:main"
run_csst_photometry = "measurement_pipeline.run_csst_msc_mbi_photometry:main"

[project.urls]
Homepage = "https://csst-tb.bao.ac.cn/code/fangyuedong/injection_pipeline"

[project.optional-dependencies]
dev = [
  "pytest",
  "pytest-cov",
  "build",
  "twine",
  "ruff",
  "black",
  "mypy"
]
docs = [
  "sphinx",
  "furo"
]

[tool.setuptools]
include-package-data = true

[tool.setuptools.package-data]
"injection_pipeline.Catalog.data" = ["*.fits"]

"measurement_pipeline.L1_pipeline.csst_msc_mbi_photometry.data" = [
    "*.config",
    "*.conv",
    "*.nnw",
    "*.param",
    "*.sex",
    "*.psfex"
]

"measurement_pipeline.L1_pipeline.csst_msc_instrument" = [
    "instrument_cor_demo.head"
]

"measurement_pipeline.L1_pipeline.csst_msc_instrument.image.cosmicray.cr_model" = [
    "*.pth"
]

[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}

[tool.setuptools.packages.find]
include = ["injection_pipeline*", "measurement_pipeline*", "evaluation*", "cosmology*"]

[tool.ruff]
preview = true
line-length = 88
target-version = "py311"

[tool.ruff.lint]
select = ["E", "F", "W"]  # E/W = PEP8, F = pyflakes
ignore = ["E501", "E203"]        # example: ignore line length if using black

[tool.ruff.format]
quote-style = "double"
indent-style = "space"
 No newline at end of file
+1 −13
Original line number Diff line number Diff line
numpy==1.26.4
astropy==6.0.1
scipy==1.11.4
GalSim==2.5.2
PyYAML==6.0.1
sep==1.2.1
healpy==1.16.6
h5py==3.11.0
Cython==3.0.6
numba==0.59.1
psutil==5.9.8
toml==0.10.2
lmfit==1.2.2
 No newline at end of file
csst-msc-sim @ git+https://csst-tb.bao.ac.cn/code/csst-sims/csst_msc_sim.git@v3.4.1
 No newline at end of file