Skip to content
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

Import error for voxelwise_correlation #84

Open
PKhush opened this issue Jul 8, 2024 · 3 comments
Open

Import error for voxelwise_correlation #84

PKhush opened this issue Jul 8, 2024 · 3 comments

Comments

@PKhush
Copy link

PKhush commented Jul 8, 2024

Hi, I'm trying to run this example tutorial and I get ImportError: cannot import name 'voxelwise_correlation' from 'fmralign._utils'. Has this function been removed/moved/renamed? I couldn't find it in the package code.

Thanks for your help.

@bthirion
Copy link
Contributor

bthirion commented Jul 8, 2024

Hi,
Thx for reporting.
Running the code locally, I don't get the error (I use the version from the Github repo). Which version are you using ?
Best,

@pbarbarant
Copy link
Collaborator

It appears that the deployed doc on github pages is outdated, in the meantime, @PKhush you can run locally /examples/plot_pairwise_alignment.py which seems up-to-date with our latest changes.

@bthirion our .github/workflows/doc-build.yml does not contain a deployment action, maybe appending the following job might do the trick (I'll have to check exactly)

      - name: Deploy to GitHub Pages
        uses: peaceiris/actions-gh-pages@v3
        if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
        with:
          publish_branch: gh-pages
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: _build/
          force_orphan: true

@PKhush
Copy link
Author

PKhush commented Jul 9, 2024

At first I had installed the package with a simple pip install, which installed version v0.0.2a. Re-installing it with git clone installs v0.1.dev498+g63ae44. After re-installing, everything runs correctly.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants