Skip to content

Commit

Permalink
v2024.08.28 (#2)
Browse files Browse the repository at this point in the history
* Update to latest version (earth_200101_990827_predict.bpc) released on August 28, 2024
* Add daily build and test
* Update GH checkout and setup-python actions to the latest major versions
  • Loading branch information
moeyensj authored Aug 29, 2024
1 parent 64922fe commit 4156a4b
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 16 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ on:
branches: [ "main" ]
push:
branches: [ "main" ]
schedule:
- cron: "15 2 * * *" # 2:15am UTC every day

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Upgrade pip and install requests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_test_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Upgrade pip and install requests
Expand Down
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include naif_eop_predict/earth_200101_990825_predict.bpc
include naif_eop_predict/earth_200101_990825_predict.md5
include naif_eop_predict/earth_200101_990827_predict.bpc
include naif_eop_predict/earth_200101_990827_predict.md5
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
[![Build and Test](https://github.com/B612-Asteroid-Institute/naif_eop_predict/actions/workflows/build_test.yml/badge.svg)](https://github.com/B612-Asteroid-Institute/naif_eop_predict/actions/workflows/build_test.yml)
[![Build, Test, & Publish](https://github.com/B612-Asteroid-Institute/naif_eop_predict/actions/workflows/build_test_publish.yml/badge.svg)](https://github.com/B612-Asteroid-Institute/naif_eop_predict/actions/workflows/build_test_publish.yml)

This package ships the Navigation and Ancillary Information Facility's low accuracy, longterm prediction Earth orientation parameters (EOP) [kernel](https://naif.jpl.nasa.gov/pub/naif/generic_kernels/pck/earth_200101_990825_predict.bpc).
This package ships the Navigation and Ancillary Information Facility's low accuracy, longterm prediction Earth orientation parameters (EOP) [kernel](https://naif.jpl.nasa.gov/pub/naif/generic_kernels/pck/earth_200101_990827_predict.bpc).

**This is not an official NAIF package**. It is an automatically generated mirror of the file so that it is
installable via `pip`.

The current version of the file released on 2023 JUN 03 spans the following times: 2020 JAN 01 00:01:09.183 TDB - 2099 AUG 25 00:01:09.182 TDB
The current version of the file released on 2024 AUG 28 spans the following times: 2020 JAN 01 00:01:09.183 TDB - 2099 AUG 27 00:01:09.182 TDB

## Installation

The latest version of the file can be install via pip:
The latest version of the file can be installed via pip:
`pip install naif-eop-predict`

## Usage
Expand Down
4 changes: 2 additions & 2 deletions naif_eop_predict/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from importlib.resources import files

eop_predict = files("naif_eop_predict").joinpath("earth_200101_990825_predict.bpc").as_posix()
_eop_predict_md5 = files("naif_eop_predict").joinpath("earth_200101_990825_predict.md5").as_posix()
eop_predict = files("naif_eop_predict").joinpath("earth_200101_990827_predict.bpc").as_posix()
_eop_predict_md5 = files("naif_eop_predict").joinpath("earth_200101_990827_predict.md5").as_posix()
6 changes: 3 additions & 3 deletions naif_eop_predict/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

import requests

URL = "https://naif.jpl.nasa.gov/pub/naif/generic_kernels/pck/earth_200101_990825_predict.bpc"
FILE = os.path.join(os.path.dirname(__file__), "earth_200101_990825_predict.bpc")
MD5_FILE = os.path.join(os.path.dirname(__file__), "earth_200101_990825_predict.md5")
URL = "https://naif.jpl.nasa.gov/pub/naif/generic_kernels/pck/earth_200101_990827_predict.bpc"
FILE = os.path.join(os.path.dirname(__file__), "earth_200101_990827_predict.bpc")
MD5_FILE = os.path.join(os.path.dirname(__file__), "earth_200101_990827_predict.md5")


def fetch_file(url: str, output_file: str):
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "naif_eop_predict"
version = "2023.06.03"
version = "2024.08.28"
authors = [
{name = "B612 Asteroid Institute", email = "[email protected]"},
]
Expand All @@ -22,4 +22,4 @@ tests = [
include-package-data = true

[tool.setuptools.package-data]
naif_eop_predict = ["naif_eop_predict/earth_200101_990825_predict.bpc", "naif_eop_predict/earth_200101_990825_predict.md5"]
naif_eop_predict = ["naif_eop_predict/earth_200101_990827_predict.bpc", "naif_eop_predict/earth_200101_990827_predict.md5"]

0 comments on commit 4156a4b

Please sign in to comment.