Fix raster plot handling of segment times where t_start is not zero.
#9569
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Testing deepinterpolation | |
| on: | |
| pull_request: | |
| types: [synchronize, opened, reopened] | |
| branches: | |
| - main | |
| concurrency: # Cancel previous workflows on the same pull request | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-test: | |
| name: Test on ${{ matrix.os }} OS | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ["ubuntu-latest"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.10" | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: "3.10" | |
| enable-cache: false | |
| - name: Get changed files | |
| id: changed-files | |
| uses: tj-actions/changed-files@v46.0.1 | |
| - name: Deepinteprolation changes | |
| id: modules-changed | |
| run: | | |
| for file in ${{ steps.changed-files.outputs.all_changed_files }}; do | |
| if [[ $file == *"/deepinterpolation/"* ]]; then | |
| echo "DeepInterpolation changed" | |
| echo "DEEPINTERPOLATION_CHANGED=true" >> $GITHUB_OUTPUT | |
| fi | |
| done | |
| - name: Install dependencies | |
| if: ${{ steps.modules-changed.outputs.DEEPINTERPOLATION_CHANGED == 'true' }} | |
| run: | | |
| # install deepinteprolation | |
| uv pip install --system tensorflow==2.8.4 | |
| uv pip install --system deepinterpolation@git+https://github.com/AllenInstitute/deepinterpolation.git | |
| uv pip install --system -e .[full] --group test-core | |
| # spikeinterface requires numpy>=2.0.0; reinstall older numpy for deepinterpolation | |
| uv pip install --system numpy==1.26.4 | |
| - name: Pip list | |
| if: ${{ steps.modules-changed.outputs.DEEPINTERPOLATION_CHANGED == 'true' }} | |
| run: | | |
| uv pip list --system | |
| - name: Test DeepInterpolation with pytest | |
| if: ${{ steps.modules-changed.outputs.DEEPINTERPOLATION_CHANGED == 'true' }} | |
| run: | | |
| pytest -v src/spikeinterface/preprocessing/deepinterpolation | |
| shell: bash # Necessary for pipeline to work on windows |