Skip to content

Commit 650bd68

Browse files
committed
constrained numpy version depending on python version
1 parent a5d26c8 commit 650bd68

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ jobs:
5353
python-version: ${{ matrix.python-version }}
5454
activate-environment: pose2sim
5555

56+
- name: Install OpenSim with conda
57+
shell: bash -l {0}
58+
run: |
59+
conda install -n pose2sim -c conda-forge -c defaults pip
60+
conda install -n pose2sim opensim-org::opensim -y
61+
5662
- name: Cache pip dependencies
5763
uses: actions/cache@v4
5864
with:
@@ -68,12 +74,6 @@ jobs:
6874
conda run -n pose2sim python -m pip install flake8 pytest
6975
conda run -n pose2sim python -m pip install git+https://github.com/${{ github.repository }}.git@${{ github.sha }}
7076
71-
- name: Install OpenSim with conda
72-
shell: bash -l {0}
73-
run: |
74-
conda install -n pose2sim -c conda-forge -c defaults pip
75-
conda install -n pose2sim opensim-org::opensim -y
76-
7777
- name: Lint with flake8
7878
shell: bash -l {0}
7979
run: |

Pose2Sim/markerAugmentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def augment_markers_all(config_dict):
166166
large_hip_knee_angles=large_hip_knee_angles,
167167
trimmed_extrema_percent=trimmed_extrema_percent
168168
)
169-
if not np.isfinite(height):
169+
if np.isfinite(height):
170170
logging.info(f"Subject height automatically calculated for {os.path.basename(trc_file)}: {round(height,2)} m\n")
171171
else:
172172
logging.warning(f"Could not compute height from {os.path.basename(trc_file)}. Using default height of {default_height}m.")

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ classifiers = [
3434
urls = {Homepage = "https://github.com/perfanalytics/pose2sim", "Bug Tracker" = "https://github.com/perfanalytics/pose2sim/issues"}
3535
dependencies = [
3636
"toml",
37-
"numpy",
37+
"numpy<2.0; python_version<'3.12'",
38+
"numpy>=2.0,<2.3; python_version>='3.12'",
3839
"lxml",
3940
"matplotlib",
4041
"mpl_interactions",

0 commit comments

Comments
 (0)