Skip to content

Commit 492abab

Browse files
authored
Merge the upstream changes (v1.0.8 -> v1.1.0) (#193)
1 parent 9c36038 commit 492abab

28 files changed

+365
-230
lines changed

CHANGELOG.md

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [v1.1.0]
9+
10+
Announcement: Author of Kete (Dar Dahlen) has left IPAC Caltech to begin a PhD at
11+
TU Braunschweig in Germany. Kete has been forked from the public copy maintained by
12+
Caltech, and future development of this fork will occur as a personal project.
13+
14+
### Changed
15+
16+
- SPICE kernels were removed for the respository, and now automatically download on
17+
first use.
818

919
## [v1.0.8]
1020

@@ -24,7 +34,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2434
kernel. This section has been re-added to the WISE kernel, which should now contain
2535
all phases of operation with the best orbit knowledge available.
2636

27-
2837
## [v1.0.7]
2938

3039
### Added
@@ -42,7 +51,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4251
- WGS84 conversion between ECEF and Lat/Lon/Alt was missing a square-root causing a
4352
small offset (typically 10s to 100s of meters). This has been fixed.
4453

45-
4654
## [v1.0.6]
4755

4856
### Added
@@ -64,7 +72,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6472
- Updated the WISE spice kernels, which improves accuracy significantly for the final 2
6573
years of WISE/NEOWISE.
6674

67-
6875
## [v1.0.5]
6976

7077
### Added
@@ -84,7 +91,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8491
- Fixed a text case-sensitivity but on Horizons parameter parsing.
8592
- Thermal model example had function arguments out of order.
8693

87-
8894
## [v1.0.4]
8995

9096
### Added
@@ -102,7 +108,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
102108
- NEOS FOV rotation was being calculated in the ecliptic frame, whereas images will be
103109
in the equatorial frame. Rotation is now defaulting to the equatorial frame.
104110

105-
106111
## [v1.0.3]
107112

108113
### Added
@@ -133,7 +138,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
133138
equivalent variations of latitude/longitude conversions. Nothing in the Python was
134139
impacted.
135140

136-
137141
## [v1.0.2]
138142

139143
### Added
@@ -157,7 +161,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
157161
- Epoch and Perihelion time conversion when loading JPL Horizons covariance matrices was
158162
not being done for UTC to TDB, leading to small residuals in covariance sampling.
159163

160-
161164
## [v1.0.0]
162165

163166
### Added
@@ -201,7 +204,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
201204
- Removed `plot_frame` from ZTF, as a better version of this is available in kete.irsa.
202205
- Removed `cache_WISE_frame` and `fetch_WISE_frame` deprecated functions in WISE.
203206

204-
205207
## [0.3.0] - 2024 - 8 - 28
206208

207209
### Added
@@ -223,7 +225,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
223225
- Fixed incompatibility with older versions of the rust compiler, working back to
224226
at least v1.75.0
225227

226-
227228
## [0.2.5] - 2024 - 8 - 12
228229

229230
### Added
@@ -258,14 +259,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
258259

259260
- `cached_zip_download` was deprecated, this was automatically unzipping folders.
260261

261-
262262
## [0.2.4] - 2024 - 7 - 15
263263

264264
### Added
265265

266266
- Add `J2` non-spherical terms for the gravitational models of Earth and Jupiter.
267267
- Add non-gravitational force model for dust particles which includes the
268-
Poynting-Roberterson effect.
268+
Poynting-Roberterson effect.
269269
- Added `Time.year_float` which converts the `Time` object to the Year as a float.
270270
- Added `SimultaneousState.obs_vecs` which creates vectors from the observer to the
271271
objects contained within the state.
@@ -311,7 +311,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
311311
however I do not have access to a file of type 3 for testing. Because it cannot be
312312
validated at the moment, the code has been removed.
313313

314-
315314
## [0.2.3] - 2024 - 6 - 12
316315

317316
### Added
@@ -339,7 +338,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
339338

340339
- Astropy will no longer warning about deprecated WCS header values for NEOWISE images.
341340

342-
343341
## [0.2.2] - 2024 - 5 - 20
344342

345343
### Added
@@ -372,8 +370,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
372370
level of the package.
373371
- Removed PDS related tools.
374372

375-
376-
## [0.2.1] - 2024 - 5 - 13
373+
## [0.2.1] - 2024 - 5 - 13
377374

378375
### Added
379376

@@ -394,18 +391,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
394391
- Removed main belt construction tools, out of scope and not accurate enough.
395392
- Removed redundant MPC name resolver function.
396393

397-
398-
## [0.2.0] - 2024-3-16
394+
## [0.2.0] - 2024-3-16
399395

400396
Initial Release
401397

402398
- Initial version release of kete!
403-
- kete's primary goal is to enable simulations of NEOs, however it also supports any
399+
- kete's primary goal is to enable simulations of NEOs, however it also supports any
404400
asteroid or comet. Included are n-body orbit propagation tools, thermal and optical
405401
modeling, tools for computing what minor planets can be seen by an observer.
406402
Along with many helpful interfaces to web tools such as JPL Horizons or IPAC's IRSA.
407403

408-
409404
[Unreleased]: https://github.com/IPAC-SW/kete/tree/main
410405
[1.0.7]: https://github.com/IPAC-SW/kete/releases/tag/v1.0.7
411406
[1.0.6]: https://github.com/IPAC-SW/kete/releases/tag/v1.0.6

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11

22
[package]
33
name = "_core"
4-
version = "1.0.7"
4+
version = "1.1.0"
55
edition = "2021"
66
readme = "README.md"
77
license = "BSD-3-Clause"
88
keywords = ["physics", "simulation", "astronomy"]
99

1010
[dependencies]
1111
kete_core = { version = "*", path = "src/kete_core", features=["pyo3", "polars"]}
12-
pyo3 = { version = "^0.23.4", features = ["extension-module"] }
12+
pyo3 = { version = "^0.24.1", features = ["extension-module"] }
1313
serde = { version = "^1.0.203", features = ["derive"] }
1414
nalgebra = {version = "^0.33.0"}
1515
itertools = "^0.14.0"

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Kete
22

3-
![Github Actions](https://github.com/IPAC-SW/kete/actions/workflows/test-lint.yml/badge.svg?branch=main)
3+
![Github Actions](https://github.com/Caltech-IPAC/kete/actions/workflows/test-lint.yml/badge.svg?branch=main)
44
[![DOI](https://zenodo.org/badge/787588564.svg)](https://zenodo.org/badge/latestdoi/787588564)
55

66
The repository for Kete, Solar System Survey Simulation Software.
@@ -9,8 +9,10 @@ for Cetaceans (Whales).
99

1010
## Note:
1111

12-
Original maintainer (Dar Dahlen) is beginning a PhD and will no longer be performing
13-
maintenance, as he is no longer affiliated with CalTech.
12+
The original version of this repo was developed at Caltech IPAC. This is a fork of that repo
13+
where the work will continue as a personal project. Work done while at IPAC is of course owned
14+
by Caltech, but all future work will have well marked as owned by Dar Dahlen & future contributors.
15+
License will remain as BSD-3 Clause to simplify things.
1416

1517
## Introduction
1618

pyproject.toml

Lines changed: 39 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,75 @@
11
[project]
22
name = "kete"
3-
version = "1.0.8"
3+
version = "1.1.0"
44
description = "Kete Asteroid Survey Tools"
55
readme = "README.md"
6-
authors = [{name = "Dar Dahlen", email = "[email protected]"},
7-
{name = "Joe Masiero", email = "[email protected]"},
8-
]
9-
license = {text = "BSD"}
6+
authors = [
7+
{ name = "Dar Dahlen", email = "[email protected]" },
8+
{ name = "Joe Masiero", email = "[email protected]" },
9+
]
10+
license = { text = "BSD" }
1011
requires-python = ">=3.9"
11-
classifiers=["Programming Language :: Python :: 3"]
12-
dependencies = ["astropy>=5.3.4",
13-
"matplotlib",
14-
"matplotlib-label-lines",
15-
"numpy>=1.24",
16-
"pandas",
17-
"requests",
18-
"scipy",
19-
]
12+
classifiers = ["Programming Language :: Python :: 3"]
13+
dependencies = [
14+
"astropy>=5.3.4",
15+
"matplotlib",
16+
"matplotlib-label-lines",
17+
"numpy>=1.24",
18+
"pandas",
19+
"requests",
20+
"scipy",
21+
]
2022

2123
[project.urls]
22-
homepage = "https://github.com/IPAC-SW/kete"
24+
homepage = "https://github.com/Caltech-IPAC/kete"
2325

2426
[build-system]
25-
requires = ["maturin>=1.0",
26-
"wheel",
27-
]
27+
requires = ["maturin>=1.0", "wheel"]
2828
build-backend = "maturin"
2929

3030
[tool.maturin]
3131
python-source = "src"
3232
module-name = "kete._core"
3333

3434
[project.optional-dependencies]
35-
dev = ["black>=23.1.0",
36-
"pytest",
37-
"pytest-cov",
38-
"sphinx",
39-
"autodoc",
40-
"sphinx-gallery",
41-
"mypy",
42-
"types-requests",
43-
"sphinx_rtd_theme",
35+
dev = [
36+
"black>=23.1.0",
37+
"pytest",
38+
"pytest-cov",
39+
"sphinx",
40+
"autodoc",
41+
"sphinx-gallery",
42+
"mypy",
43+
"types-requests",
44+
"sphinx_rtd_theme",
4445
"click",
45-
]
46-
docs = ["sphinx",
46+
]
47+
docs = [
48+
"sphinx",
4749
"autodoc",
4850
"sphinx-gallery",
4951
"sphinx_rtd_theme",
5052
"click",
5153
"pytz",
52-
]
54+
]
5355

5456
# Options for pytest
5557
[tool.pytest.ini_options]
5658
testpaths = ["src/tests"]
57-
markers = [
58-
"horizons: run JPL Horizons tests, requires an internet connection.",
59-
]
59+
markers = ["horizons: run JPL Horizons tests, requires an internet connection."]
6060
# filterwarnings = "error"
6161

6262
# Options for the coverage report.
6363
[tool.coverage.run]
64-
omit = ["*/kete/mpc.py",
64+
omit = [
65+
"*/kete/mpc.py",
6566
"*/kete/irsa.py",
6667
"*/kete/wise.py",
6768
"*/kete/ztf.py",
6869
"*/kete/horizons.py",
6970
"*/kete/data/*",
70-
"*/examples/*",]
71+
"*/examples/*",
72+
]
7173

7274
# See https://github.com/psf/black/blob/main/pyproject.toml for more details
7375
[tool.black]
@@ -83,8 +85,8 @@ exclude = '''
8385
'''
8486

8587
[tool.pylint.imports]
86-
ignored-modules=["_core", "kete._core"]
88+
ignored-modules = ["_core", "kete._core"]
8789

8890
[tool.mypy]
8991
plugins = "numpy.typing.mypy_plugin"
90-
ignore_missing_imports = true
92+
ignore_missing_imports = true

src/examples/plot_comet.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ def plot_syndyne(wcs, state, fov, beta, back_days=90, day_step=1, **kwargs):
125125
shape = wcs.array_shape
126126
pix = []
127127
for x, y in zip(*wcs.world_to_pixel_values(ras, decs)):
128-
if not np.isfinite(x) or not np.isfinite(y):
129-
continue
130128
pix.append([x, y])
131129
plt.xlim(0, shape[0])
132130
plt.ylim(0, shape[1])
@@ -161,8 +159,6 @@ def plot_synchrone(
161159
shape = wcs.array_shape
162160
pix = []
163161
for x, y in zip(*wcs.world_to_pixel_values(ras, decs)):
164-
if not np.isfinite(x) or not np.isfinite(y):
165-
continue
166162
pix.append([x, y])
167163
plt.xlim(0, shape[0])
168164
plt.ylim(0, shape[1])
@@ -203,7 +199,16 @@ def plot_synchrone(
203199
# plot synchrones
204200
for days in [-10, -15, -20, -25]:
205201
plot_synchrone(
206-
wcs, vis[0], fov, days, 0.1, ls="--", c=(0, 0.5, 1), lw=0.6, label=str(days)
202+
wcs,
203+
vis[0],
204+
fov,
205+
days,
206+
0.2,
207+
ls="--",
208+
c=(0, 0.5, 1),
209+
lw=0.6,
210+
label=str(days),
211+
beta_steps=2000,
207212
)
208213
plot_synchrone(wcs, vis[0], fov, -5, 0.8, ls="--", c=(0, 0.5, 1), lw=0.6, label=-5)
209214

@@ -251,7 +256,7 @@ def plot_synchrone(
251256
label_pos = [line._x[idx], 0 - offset]
252257
ha = "center"
253258
va = "bottom"
254-
elif edge == 3:
259+
else:
255260
label_pos = [line._x[idx], shape[0] + offset]
256261
ha = "center"
257262
va = "top"

0 commit comments

Comments
 (0)