Skip to content

Commit

Permalink
Test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTov committed Mar 22, 2023
1 parent 9da4753 commit 2385b02
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 59 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/black.yaml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/flake8.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/isort.yaml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Linting

on:
push:

jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Black Check
uses: psf/black@stable

isort:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install isort
run: |
pip install isort
- name: run isort
run: |
isort --check-only --quiet .
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install flake8
run: |
pip install flake8
- name: run flake8
run: |
flake8 . --count --show-source --statistics
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
open3d
numpy
pytest
rich
4 changes: 2 additions & 2 deletions znvis/visualizer/visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,11 @@ def _draw_particles(self, visualizer=None, initial: bool = False):
visualizer = self.vis
if initial:
for i, item in enumerate(self.particles):
visualizer.add_geometry(str(i), item.mesh_dict[self.counter])
visualizer.add_geometry(item.name, item.mesh_dict[self.counter])
else:
for i, item in enumerate(self.particles):
visualizer.remove_geometry(str(i))
visualizer.add_geometry(str(i), item.mesh_dict[self.counter])
visualizer.add_geometry(item.name, item.mesh_dict[self.counter])

def _continuous_trajectory(self, vis):
"""
Expand Down

0 comments on commit 2385b02

Please sign in to comment.