Skip to content

Commit

Permalink
updated installation and added github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasFrey96 committed Mar 1, 2024
1 parent 1040969 commit 19769c9
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 2 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/formatting.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Formatting
on: [push, pull_request]
jobs:
check-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Black Code Formatter
uses: lgeiger/black-action@master
with:
args: "--line-length 120 . --check"
name: black-action

auto-formatting:
name: runner / black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check files using the black formatter
uses: rickstaa/action-black@v1
id: action_black
with:
black_args: "--line-length 120 ."
15 changes: 15 additions & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ./
pip3 install torch torchvision torchaudio
pip install pytest
- name: Test with pytest
run: |
pytest ./
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Code for ICML 2024: <a href="some_ariv_link" target="_blank">"Position Paper: Le
```shell
git clone git@github.com:martius-lab/hitchhiking-rotations.git
pip3 install -e ./
pip3 install torch torchvision torchaudio
```

# Experiments
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import find_packages
from distutils.core import setup

INSTALL_REQUIRES = ["numpy", "pip", "scipy", "scikit-learn", "matplotlib", "seaborn", "pytictac", "roma", "black"]
INSTALL_REQUIRES = ["numpy", "pip", "scipy", "scikit-learn", "matplotlib", "seaborn", "pytictac", "roma", "black", "pyyaml", "hydra", "omegaconf", "tqdm", "hydra-core"]

setup(
name="hitchhiking_rotations",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import roma
import numpy as np
from scipy.spatial.transform import Rotation as R
from pose_estimation import euler_angles_to_matrix
from hitchhiking_rotations.utils import euler_angles_to_matrix


def test_roma_quaternion():
Expand Down

0 comments on commit 19769c9

Please sign in to comment.