Skip to content

Commit 3c3d489

Browse files
add code + workflows
1 parent 4c23025 commit 3c3d489

File tree

16 files changed

+9815
-1
lines changed

16 files changed

+9815
-1
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Publish Python 🐍 distribution 📦 to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
build:
12+
name: Build distribution 📦
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
persist-credentials: false
18+
fetch-depth: 0
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.x"
23+
- name: Install pypa/build
24+
run: >-
25+
python3 -m
26+
pip install
27+
build
28+
--user
29+
- name: Build a binary wheel and a source tarball
30+
run: python3 -m build
31+
- name: Store the distribution packages
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: python-package-distributions
35+
path: dist/
36+
publish-to-pypi:
37+
name: >-
38+
Publish Python 🐍 distribution 📦 to PyPI
39+
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
40+
needs:
41+
- build
42+
runs-on: ubuntu-latest
43+
environment:
44+
name: pypi
45+
url: https://pypi.org/p/find-asteroids
46+
permissions:
47+
id-token: write # IMPORTANT: mandatory for trusted publishing
48+
steps:
49+
- name: Download all the dists
50+
uses: actions/download-artifact@v4
51+
with:
52+
name: python-package-distributions
53+
path: dist/
54+
- name: Publish distribution 📦 to PyPI
55+
uses: pypa/gh-action-pypi-publish@release/v1
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Publish Python 🐍 distribution 📦 to TestPyPI
2+
3+
on: push
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
build:
10+
name: Build distribution 📦
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
persist-credentials: false
16+
fetch-depth: 0
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.x"
21+
- name: Install pypa/build
22+
run: >-
23+
python3 -m
24+
pip install
25+
build
26+
--user
27+
- name: Build a binary wheel and a source tarball
28+
run: python3 -m build
29+
- name: Store the distribution packages
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: python-package-distributions
33+
path: dist/
34+
publish-to-testpypi:
35+
name: Publish Python 🐍 distribution 📦 to TestPyPI
36+
needs:
37+
- build
38+
runs-on: ubuntu-latest
39+
40+
environment:
41+
name: testpypi
42+
url: https://test.pypi.org/p/find-asteroids
43+
44+
permissions:
45+
id-token: write # IMPORTANT: mandatory for trusted publishing
46+
47+
steps:
48+
- name: Download all the dists
49+
uses: actions/download-artifact@v4
50+
with:
51+
name: python-package-distributions
52+
path: dist/
53+
- name: Publish distribution 📦 to TestPyPI
54+
uses: pypa/gh-action-pypi-publish@release/v1
55+
with:
56+
repository-url: https://test.pypi.org/legacy/

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,3 +205,5 @@ cython_debug/
205205
marimo/_static/
206206
marimo/_lsp/
207207
__marimo__/
208+
209+
docs/notebooks/results

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 stevenstetzler
3+
Copyright (c) 2024 Steven Stetzler
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

docs/notebooks/catalog.ecsv

Lines changed: 8190 additions & 0 deletions
Large diffs are not rendered by default.

docs/notebooks/psfs.ecsv

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# %ECSV 1.0
2+
# ---
3+
# datatype:
4+
# - {name: visit, datatype: int64}
5+
# - {name: detector, datatype: int64}
6+
# - {name: psf, unit: arcsec, datatype: float64}
7+
# schema: astropy-2.0
8+
visit detector psf
9+
845959 1 0.7528969979009208
10+
845902 1 0.7241434631453865
11+
845912 1 0.760362403162658
12+
845914 1 0.7906469542524504
13+
845886 1 0.8210553533900715
14+
845942 1 0.7648270773903464
15+
845961 1 0.7898808202748406
16+
845927 1 0.8554703698531129
17+
845911 1 0.8260557296068727
18+
845952 1 0.7909197242576946
19+
845947 1 0.745189039269425
20+
845881 1 0.8923258490097618
21+
845906 1 0.7713613851091139
22+
845951 1 0.7107897040991539
23+
845965 1 0.8836790956997183
24+
845909 1 0.7841416361976127
25+
845877 1 0.8312085378954573
26+
845873 1 0.8479340339816855
27+
845885 1 0.8342141695935631
28+
845964 1 0.7758777410908063
29+
845931 1 0.8019722949579748
30+
845943 1 0.7349543356666597
31+
845934 1 0.6927607420077571
32+
845903 1 0.7504125983619312
33+
845968 1 1.0457096624215527
34+
845897 1 0.7505071808100087
35+
845946 1 0.7914491556102325
36+
845878 1 0.8022683794108229
37+
845955 1 0.9267106713269081
38+
845892 1 0.7801618649150059
39+
845879 1 0.863676109978854
40+
845972 1 1.0233052205573614
41+
845944 1 0.7582878931071735
42+
845973 1 1.1463195441757028
43+
845974 1 1.0849054253663546
44+
845957 1 0.8198432397977333
45+
845929 1 0.7071718929286311
46+
845935 1 0.7416938267400375
47+
845939 1 0.7830697863200361
48+
845901 1 0.8236208020916591
49+
845971 1 1.118936873258683
50+
845967 1 0.9203690432834983
51+
845956 1 0.8416426776391887
52+
845930 1 0.8055879676715763
53+
845919 1 0.6858187074522015
54+
845922 1 0.65635994991735
55+
845915 1 0.7559742026692575
56+
845933 1 0.697464400049866
57+
845889 1 0.8459592619937504
58+
845958 1 0.800460368186266
59+
845905 1 0.8140212294475951
60+
845896 1 0.7531987840254901
61+
845872 1 0.706031498446247
62+
845954 1 0.8194866731267905
63+
845910 1 0.801576463051955
64+
845945 1 0.6771340281354917
65+
845948 1 0.7118150729867944
66+
845918 1 0.6573083136762025
67+
845880 1 0.8524498371417508
68+
845949 1 0.7670905584016283
69+
845969 1 0.877139297936217
70+
845908 1 0.839939892821283
71+
845907 1 0.7312158324648423
72+
845899 1 1.023553119835151
73+
845921 1 0.6184514685591653
74+
845890 1 0.8343744627297821
75+
845963 1 0.848173548823296
76+
845926 1 0.8300556105955365
77+
845891 1 0.7318345643547919
78+
845887 1 0.8756971452149791
79+
845937 1 0.8553613338007848
80+
845924 1 0.8568032756642712
81+
845874 1 0.9066470486621844
82+
845895 1 0.7542799663067324
83+
845920 1 0.6545287319323051
84+
845953 1 0.8276377261640571
85+
845893 1 0.7754524075168823
86+
845916 1 0.74298305524497
87+
845966 1 0.9942292347493235
88+
845928 1 0.7076044214718332
89+
845941 1 0.8222168208580091
90+
845970 1 0.9127602937105956
91+
845883 1 0.8515767615515136
92+
845875 1 0.8500067900348071
93+
845975 1 1.0780959253780682
94+
845904 1 0.8586011693516417
95+
845938 1 0.7768694356851563
96+
845884 1 0.8752237798426951
97+
845898 1 0.7962700995610575
98+
845962 1 0.8113377959186666
99+
845900 1 0.9019618350087325
100+
845913 1 0.8088175245126269
101+
845932 1 0.7945575274641654
102+
845936 1 0.7755872347468737
103+
845925 1 0.773005927544498
104+
845917 1 0.7468363099994051
105+
845876 1 0.9134437952305713
106+
845960 1 0.7823628881753061
107+
845950 1 0.7253930724759099
108+
845888 1 0.8562996354954766
109+
845923 1 0.8308415491094654
110+
845882 1 0.982702405888112
111+
845940 1 0.7439804149756054
112+
845894 1 0.7684574259406746

docs/notebooks/search.ipynb

Lines changed: 431 additions & 0 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
[build-system]
2+
requires = ["setuptools>=80", "setuptools-scm>=8"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "find-asteroids"
7+
license = {file = "LICENSE"}
8+
readme = "README.md"
9+
authors = [
10+
{ name = "Steven Stetzler", email = "[email protected]" }
11+
]
12+
classifiers = [
13+
"Development Status :: 4 - Beta",
14+
"License :: OSI Approved :: MIT License",
15+
"Intended Audience :: Developers",
16+
"Intended Audience :: Science/Research",
17+
"Operating System :: OS Independent",
18+
"Programming Language :: Python",
19+
]
20+
dynamic = ["version"]
21+
requires-python = ">=3.9"
22+
dependencies = [
23+
"astropy",
24+
"numba",
25+
"mcd-regression"
26+
]
27+
description = "Find moving objects in detection catalogs."
28+
29+
[project.urls]
30+
"Source Code" = "https://github.com/stevenstetzler/find_asteroids"
31+
32+
[project.scripts]
33+
find_asteroids = "find_asteroids.search:main"
34+
35+
[tool.setuptools_scm]
36+
write_to = "src/find_asteroids/_version.py"
37+
version_scheme = "guess-next-dev"
38+
local_scheme = "no-local-version"
39+
40+
[project.optional-dependencies]
41+
dev = [
42+
"matplotlib" # Used for examples
43+
]

src/find_asteroids/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .search import main

src/find_asteroids/_version.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# file generated by setuptools-scm
2+
# don't change, don't track in version control
3+
4+
__all__ = [
5+
"__version__",
6+
"__version_tuple__",
7+
"version",
8+
"version_tuple",
9+
"__commit_id__",
10+
"commit_id",
11+
]
12+
13+
TYPE_CHECKING = False
14+
if TYPE_CHECKING:
15+
from typing import Tuple
16+
from typing import Union
17+
18+
VERSION_TUPLE = Tuple[Union[int, str], ...]
19+
COMMIT_ID = Union[str, None]
20+
else:
21+
VERSION_TUPLE = object
22+
COMMIT_ID = object
23+
24+
version: str
25+
__version__: str
26+
__version_tuple__: VERSION_TUPLE
27+
version_tuple: VERSION_TUPLE
28+
commit_id: COMMIT_ID
29+
__commit_id__: COMMIT_ID
30+
31+
__version__ = version = '0.1.dev0+d20250916'
32+
__version_tuple__ = version_tuple = (0, 1, 'dev0', 'd20250916')
33+
34+
__commit_id__ = commit_id = None

0 commit comments

Comments
 (0)