Skip to content

Commit 917770b

Browse files
joemasieroJoe Masieroannie444
authored
add support for MPC extended packed provisional (#192)
* add support for MPC extended packed provisional * clarify variables * quiet errors * warn is not a thing? * one more time * clarify fork status * Revert "one more time" This reverts commit 95b61b6. * skip chunks with plotting errors for now * try adding back in bsp files * Fix the errors * Update the workflows to install a stable version of rust * Update the workflow orders * Update the download location for the wise kernel * maintain wise kernel * capture plotting errors * black * fine --------- Co-authored-by: Joe Masiero <[email protected]> Co-authored-by: Annie Ehler <[email protected]>
1 parent 492abab commit 917770b

File tree

11 files changed

+222
-120
lines changed

11 files changed

+222
-120
lines changed

.github/workflows/release-wheels.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ name: Release-Wheels
55

66
on:
77
release:
8-
types:
8+
types:
99
- published
1010
push:
11-
tags: 'v[0-9]+.[0-9]+.[0-9]+'
11+
tags: "v[0-9]+.[0-9]+.[0-9]+"
1212
workflow_dispatch:
13-
13+
1414
concurrency:
1515
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1616
cancel-in-progress: true
@@ -40,9 +40,19 @@ jobs:
4040
platform_id: macosx_arm64
4141
steps:
4242
- uses: actions/checkout@v4
43+
- name: Cache downloaded files
44+
id: cache-kete
45+
uses: actions/cache@v4
46+
env:
47+
cache-name: cache-kete
48+
with:
49+
# kete stores all files in `~/.kete/` by default
50+
path: ~/.kete
51+
# These files are valid long term, and are not expected to change
52+
# between runs. So there is no need to a changing name.
53+
key: kete-cache
4354
- name: Set up Rust
4455
uses: dtolnay/rust-toolchain@stable
45-
- run: cargo test --all-features
4656
- name: Set up Python
4757
uses: actions/setup-python@v5
4858
with:

.github/workflows/test-lint.yml

Lines changed: 85 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ name: Tests and Lint
55

66
on:
77
push:
8-
branches: [ "main" ]
8+
branches: ["main"]
99
pull_request:
10-
branches: [ "main" ]
10+
branches: ["main"]
1111

1212
env:
13-
KETE_CACHE_DIR: ${{ github.workspace }}/docs/data
1413
RUSTFLAGS: "-D warnings"
1514
RUSTDOCFLAGS: "-D warnings"
1615

@@ -24,72 +23,96 @@ jobs:
2423
runs-on: ubuntu-latest
2524
strategy:
2625
fail-fast: false
26+
2727
steps:
28-
- uses: actions/checkout@v4
29-
with:
30-
lfs: true
31-
- name: Set up Python
32-
uses: actions/setup-python@v5
33-
with:
34-
python-version: "3.11"
35-
- name: Test with cargo
36-
run: |
37-
cargo test
38-
- name: Cargo Docs
39-
run: |
40-
cargo doc
41-
- name: Install dependencies
42-
run: |
43-
python3 -m pip install --upgrade pip setuptools black mypy types-requests numpy
44-
- name: Black Formatting
45-
run: |
46-
python3 -m black . --check
47-
- name: Lint with mypy
48-
run: |
49-
python3 -m mypy src/kete/
50-
51-
# Build and run pytest
52-
- name: Build kete
53-
run: |
54-
python3 -m pip install '.[dev]' -v
55-
- name: Test with pytest
56-
run: |
57-
python3 -m pytest --cov-report term-missing --cov=kete
58-
59-
# Build documentation and push artifact
60-
- name: Build Docs
61-
run: |
62-
cd docs
63-
make clean
64-
make doctest
65-
make html
66-
- name: Fix permissions
67-
run: |
68-
chmod -c -R +rX "docs/" | while read line; do
69-
echo "::warning title=Invalid file permissions automatically fixed::$line"
70-
done
71-
- name: Upload Docs artifact
72-
uses: actions/upload-artifact@v4
73-
with:
74-
name: "docs"
75-
path:
76-
docs/html/
77-
- name: Upload Pages artifact
78-
uses: actions/upload-pages-artifact@v3
79-
with:
80-
name: "github-pages"
81-
path:
82-
docs/html/
83-
84-
28+
- uses: actions/checkout@v4
29+
30+
- name: Cache downloaded files
31+
id: cache-kete
32+
uses: actions/cache@v4
33+
env:
34+
cache-name: cache-kete
35+
with:
36+
# kete stores all files in `~/.kete/` by default
37+
path: ~/.kete
38+
# These files are valid long term, and are not expected to change
39+
# between runs. So there is no need to a changing name.
40+
key: kete-cache
41+
42+
- name: Setup Rust
43+
uses: actions-rust-lang/setup-rust-toolchain@v1
44+
with:
45+
toolchain: stable
46+
cache-key: ${{ runner.os }}-stable
47+
48+
- name: Set up Python
49+
uses: actions/setup-python@v5
50+
with:
51+
python-version: "3.11"
52+
53+
- name: Install dependencies
54+
run: |
55+
python3 -m pip install --upgrade pip setuptools ruff mypy types-requests numpy
56+
57+
- name: Ruff Formatting
58+
run: |
59+
python3 -m ruff check
60+
61+
- name: Lint with mypy
62+
run: |
63+
python3 -m mypy src/kete/
64+
65+
# Build and run pytest
66+
- name: Build kete
67+
run: |
68+
python3 -m pip install '.[dev]' -v
69+
70+
- name: Test with pytest
71+
run: |
72+
python3 -m pytest --cov-report term-missing --cov=kete
73+
74+
- name: Test with cargo
75+
run: |
76+
cargo test
77+
78+
- name: Cargo Docs
79+
run: |
80+
cargo doc
81+
82+
# Build documentation and push artifact
83+
- name: Build Docs
84+
run: |
85+
cd docs
86+
make clean
87+
make doctest
88+
make html
89+
90+
- name: Fix permissions
91+
run: |
92+
chmod -c -R +rX "docs/" | while read line; do
93+
echo "::warning title=Invalid file permissions automatically fixed::$line"
94+
done
95+
96+
- name: Upload Docs artifact
97+
uses: actions/upload-artifact@v4
98+
with:
99+
name: "docs"
100+
path: docs/html/
101+
102+
- name: Upload Pages artifact
103+
uses: actions/upload-pages-artifact@v3
104+
with:
105+
name: "github-pages"
106+
path: docs/html/
107+
85108
deploy:
86109
needs: build
87110
if: success() && github.ref == 'refs/heads/main'
88111

89112
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
90113
permissions:
91-
pages: write # to deploy to Pages
92-
id-token: write # to verify the deployment originates from an appropriate source
114+
pages: write # to deploy to Pages
115+
id-token: write # to verify the deployment originates from an appropriate source
93116

94117
# Deploy to the github-pages environment
95118
environment:

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ 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.1]
9+
10+
### Added
11+
- Add in support for MPC Extended Packed format
12+
813
## [v1.1.0]
914

1015
Announcement: Author of Kete (Dar Dahlen) has left IPAC Caltech to begin a PhD at

CODE_OF_CONDUCT.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
1717
Examples of behavior that contributes to a positive environment for our
1818
community include:
1919

20-
* Demonstrating empathy and kindness toward other people
21-
* Being respectful of differing opinions, viewpoints, and experiences
22-
* Giving and gracefully accepting constructive feedback
23-
* Accepting responsibility and apologizing to those affected by our mistakes,
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
2424
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the
25+
- Focusing on what is best not just for us as individuals, but for the
2626
overall community
2727

2828
Examples of unacceptable behavior include:
2929

30-
* The use of sexualized language or imagery, and sexual attention or
30+
- The use of sexualized language or imagery, and sexual attention or
3131
advances of any kind
32-
* Trolling, insulting or derogatory comments, and personal or political attacks
33-
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email
3535
address, without their explicit permission
36-
* Other conduct which could reasonably be considered inappropriate in a
36+
- Other conduct which could reasonably be considered inappropriate in a
3737
professional setting
3838

3939
## Enforcement Responsibilities
@@ -60,7 +60,7 @@ representative at an online or offline event.
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
6262
reported to the community leaders responsible for enforcement at
63-
ddahlen@ipac.caltech.edu.
63+
aehler@ipac.caltech.edu.
6464
All complaints will be reviewed and investigated promptly and fairly.
6565

6666
All community leaders are obligated to respect the privacy and security of the
@@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
106106
### 4. Permanent Ban
107107

108108
**Community Impact**: Demonstrating a pattern of violation of community
109-
standards, including sustained inappropriate behavior, harassment of an
109+
standards, including sustained inappropriate behavior, harassment of an
110110
individual, or aggression toward or disparagement of classes of individuals.
111111

112112
**Consequence**: A permanent ban from any sort of public interaction within

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ for Cetaceans (Whales).
99

1010
## Note:
1111

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.
12+
The original version of this repo was developed at Caltech IPAC. This
13+
version includes additions made on a fork of this repo that was
14+
continued as a personal project by the original author D. Dahlen. Work
15+
done while at IPAC is of course owned by Caltech, but that additional
16+
work will be marked as owned by Dar Dahlen & future contributors.
1517
License will remain as BSD-3 Clause to simplify things.
1618

1719
## Introduction

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ readme = "README.md"
66
authors = [
77
{ name = "Dar Dahlen", email = "[email protected]" },
88
{ name = "Joe Masiero", email = "[email protected]" },
9+
{ name = "Annie Ehler", email = "[email protected]" },
910
]
1011
license = { text = "BSD" }
1112
requires-python = ">=3.9"

0 commit comments

Comments
 (0)