Skip to content

Commit

Permalink
Merge pull request #99 from B612-Asteroid-Institute/nt/adam-core-inte…
Browse files Browse the repository at this point in the history
…rnals

Add parallel precovery_db implementation that uses adam_core orbits/propagation
  • Loading branch information
ntellis authored Sep 25, 2024
2 parents 88e3d97 + 399f267 commit 636e075
Show file tree
Hide file tree
Showing 43 changed files with 13,688 additions and 13,992 deletions.
4 changes: 0 additions & 4 deletions .dockerignore

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/dev-deploy.yml

This file was deleted.

50 changes: 35 additions & 15 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,48 @@ name: Lint and Test

on:
push:
branches: [ main ]
branches: [ main, "v*"]
pull_request:
branches: [ main ]
branches: [ main, "v*"]

jobs:
build-lint-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
env:
IMAGE_TAG: ${{ github.sha }}
steps:
- name: Checkout git repo
uses: actions/checkout@v2
- uses: jpribyl/[email protected]
# Ignore the failure of a step and avoid terminating the job.
continue-on-error: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: actions/checkout@v3
- name: Get git tags
run: git fetch --prune --unshallow --tags
- uses: actions/setup-python@v4
with:
install: true
- name: Build Precovery in Docker
run: docker build --load -t precovery:$IMAGE_TAG .
- name: lint
run: docker run -i precovery:$IMAGE_TAG pre-commit run --all-files
- name: lint tests
run: docker run -i precovery:$IMAGE_TAG pytest --exitfirst .
python-version: ${{ matrix.python-version }}
cache: "pip"
# Use pip to install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[dev]"
# Run linter
- name: Run linter
run: |
pdm run check
# Get JPL ephemeris files
- name: Get JPL ephemeris files
run: |
python scripts/set_up_assist.py
- name: Set JPL ephemeris environment variable
run: |
export ASSIST_DATA_DIR=~/.adam_assist_data
# Run tests
- name: Run tests
run: |
pdm run coverage
- name: Coveralls
uses: coverallsapp/[email protected]
with:
path-to-lcov: coverage.xml
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@ pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

Expand Down Expand Up @@ -116,5 +118,5 @@ volume/
^data/
out/
database/
precovery/version.py
.docker_bash_history.txt
*.DS_Store
82 changes: 0 additions & 82 deletions Dockerfile

This file was deleted.

12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@

## Installation

### Docker
You can build and use precovery using the Dockerfile and docker-compose.yml
`docker compose build`
`docker compose run -it precovery bash`

### Conda

To get the latest released version and install it into a conda environment:
Expand All @@ -27,13 +22,6 @@ To install the bleeding edge source code, clone this repository and then:

`pip install .`


#### openorb

Note that, `openorb` is not available on the Python Package Index and so you wil need
to install it via source or conda. See the `Dockerfile` for example of how to build on Ubuntu linux.


#### healpy

`healpy` is available on PyPI, but as of version 1.16.2, only x86_64 wheels are published.
Expand Down
5 changes: 0 additions & 5 deletions doc/examples/load_data.py

This file was deleted.

27 changes: 0 additions & 27 deletions doc/examples/mpc_orbits.csv

This file was deleted.

27 changes: 0 additions & 27 deletions doc/examples/precovery_search.py

This file was deleted.

10 changes: 0 additions & 10 deletions docker-compose.yml

This file was deleted.

Loading

0 comments on commit 636e075

Please sign in to comment.