-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include M1 runners in CI and update install instructions accordingly #125
Conversation
@neuroinformatics-unit/behaviour I think our fears have been confirmed, installation specifically fails on The relevant error: × Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
/var/folders/1k/qq3pcbf12vb6vyblh81736p40000gn/T/H5close02d79slb.c:1:10: fatal error: 'H5public.h' file not found
#include "H5public.h"
^~~~~~~~~~~~
1 error generated.
cpuinfo failed, assuming no CPU features: 'flags'
* Using Python 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 [202](https://github.com/neuroinformatics-unit/movement/actions/runs/8021671030/job/21915041655?pr=125#step:3:215)3, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)]
* Found cython 3.0.8
* USE_PKGCONFIG: True
.. ERROR:: Could not find a local HDF5 installation.
You may need to explicitly state where your local HDF5 headers and
library can be found by setting the ``HDF5_DIR`` environment
variable or by using the ``--hdf5`` command-line option.
[end of output] This doesn't occur on Linux, Windows and Intel MacOS ( I'm considering to revert #104. @willGraham01 if the same hack is also implemented for some BrainGlobe packages, we should also test on M1 runners there. |
This is a problem with M1 macs in general, not just GitHub runners. A brew-installed version of HDF5 goes into
will allow the HDF5 headers to be found by the C++ compiler. (Also, not wanting to be too pedantic, but it looks like the source code is |
😞 so we can forget about a one-line installation. So we either instruct people to |
If we do go back to non-oneline, why not (Recipe: https://github.com/conda-forge/hdf5-feedstock/blob/d2771a298d3d3efe279422aad7533cefbafae8c1/recipe/build.sh#L4 - looks like it will put the header files wherever the system library directory is, which should be the correct place) |
True, I might try that instead. |
Quality Gate passedIssues Measures |
Alright, |
@sfmig I've tagged you as reviewer because you've also encountered the hdf5 problem on your M2 Mac. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works for me! ✨
You may want to add a quick check after installation, to make sure everything works (like running Python and importing movement for example?).
…atics-unit#125) * also test on macOS 14 M1 runner * conda install hdf5
* Added `filtering.py` module, w/ draft `interp_pose()` & `filter_confidence()` fxns * Fix logging for operations in place * Renamed fxns to `interpolate_over_time()` and `filter_by_confidence` * Cleaned up code + corrected docstrings * Refactored `filtering.py` to movement base folder * Improved logging logic, fixed diagnostic report, removed in-place * Removed printing of diagnostic report * Updated dependency from `xarray` to `xarray[accel]` * Added testing for `filtering.py` * Minor fixes and clean-up * Reorganise Accessor (#122) * Check for expected `dims` and `data_vars` in dataset * Fix `missing_dim_dataset` fixture * Rename `poses` accessor to `move` * Rename `PoseAccessor` class to `MoveAccessor` * Rename `poses_accessor.py` to `move_accessor.py` * Move `move_accessor.py` to the top level * Fix accessor docstring formatting * Compute locomotion features (#106) * Draft compute velocity * Add test for displacement * Fix confidence values in `valid_pose_dataset` fixture * Refactor kinematics test and functions * Vectorise kinematic functions * Refactor repeated calls to compute magnitude + direction * Displacement to return 0 instead of NaN * Return x y components in kinematic functions * Refactor kinematics tests * Remove unnecessary instantiations * Improve time diff calculation * Prefix kinematics methods with `compute_` * Add kinematic properties to `PosesAccessor` * Update `test_property` docstring * Refactor `_vector` methods and kinematics tests * Update `expected_dataset` docstring * Rename `poses` to `move` in `PosesAccessor` * Refactor properties in `PosesAccessor` * Remove vector util functions and tests * Update `not_a_dataset` fixture description * Validate dataset upon accessor property access * Update `poses_accessor` test description * Validate input data in kinematic functions * Remove unused fixture * Parametrise kinematics tests * Set `compute_derivative` as internal function * Update `kinematics.py` docstrings * Add new modules to API docs * Update `move_accessor` docstrings * Rename `test_move_accessor` filename * Include M1 runners in CI and update install instructions (#125) * also test on macOS 14 M1 runner * conda install hdf5 * Add dependabot config (#128) * Bump actions/cache from 3 to 4 (#130) Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](actions/cache@v3...v4) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * [pre-commit.ci] pre-commit autoupdate (#131) updates: - [github.com/astral-sh/ruff-pre-commit: v0.2.0 → v0.3.0](astral-sh/ruff-pre-commit@v0.2.0...v0.3.0) - [github.com/psf/black: 24.1.1 → 24.2.0](psf/black@24.1.1...24.2.0) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * Add codecov token to test_and_deploy.yml (#129) * Add codecov token to test_and_deploy.yml * use test action from main branch * switch back to using v2 of the test action * tweaked phrasing in docstrings * added filtering functions to API index * add note about default confidence threshold * rename and reorganise filter_diagnostics as report_nan_values * use xarray's copy method * max_gaps is in seconds and also works at edges * use xarray's built-in isnull method * added sphinx-gallery example for filtering and interpolation --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Chang Huan Lo <[email protected]> Co-authored-by: Niko Sirmpilatze <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Description
What is this PR
Why is this PR needed?
References
closes #123
How has this PR been tested?
The real test are the CI checks in this PR.
Is this a breaking change?
No
Does this PR require an update to the documentation?
No
Checklist:
EDIT 2024-02-26
The CI tests were failing on M1 runners, because the hdf5 binaries could not be found (see discussion below). Therefore, this PR has been amended to also change
movement
's installation procedure, which should now be:The above should work cross-platform.
I've renamed the PR from "Include CI tests on macOS 14 M1 runner" to "Include M1 runners in CI and update install instructions accordingly".