Skip to content

Commit

Permalink
Merge pull request #234 from tryolabs/drop-python-36
Browse files Browse the repository at this point in the history
Drop support for Python 3.6.
  • Loading branch information
javiber authored Jan 3, 2023
2 parents 603a607 + 6e88b62 commit 322c884
Show file tree
Hide file tree
Showing 5 changed files with 533 additions and 652 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
unit-tests:
runs-on: ubuntu-20.04
strategy:
max-parallel: 5
max-parallel: 4
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3

Expand All @@ -37,16 +37,9 @@ jobs:
pip install --upgrade tox
- name: Install Poetry
if: "matrix.python-version != '3.6'"
uses: snok/install-poetry@v1

- name: Run tests under Python 3.6
if: "matrix.python-version == '3.6'"
run: |
tox -e py36
- name: Run tests
if: "matrix.python-version != '3.6'"
run: |
tox -e py
Expand Down Expand Up @@ -103,9 +96,9 @@ jobs:
needs: [build]
runs-on: ubuntu-20.04
strategy:
max-parallel: 5
max-parallel: 4
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10"]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand Down
2 changes: 1 addition & 1 deletion norfair/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def __init__(self, input_path, information_file=None):
self.sorted_by_frame.append(self.get_dets_from_frame(frame_number))

def get_dets_from_frame(self, frame_number):
""" this function returns a list of norfair Detections class, corresponding to frame=frame_number """
"""this function returns a list of norfair Detections class, corresponding to frame=frame_number"""

indexes = np.argwhere(self.matrix_detections[:, 0] == frame_number)
detections = []
Expand Down
Loading

0 comments on commit 322c884

Please sign in to comment.