-
Notifications
You must be signed in to change notification settings - Fork 68
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
Sigpy==0.1.23 incompatible with numpy>1.20 #119
Comments
It looks like there is already some progress on this with sigpy mikgroup/sigpy#123 and mikgroup/sigpy#126 |
@wtclarke Thanks for reporting this. We can update the sigpy version as soon as they merge the fix and release it. I agree with your suggestion. I have never used CI, would you be willing to open a PR for a .yml file for this project? Is that even how it works? 😄 |
Is there a reason why we ask for sigpy==0.1.23 and not >= 0.1.23 ? We should at least push a fix for the imcompatibility problem to the dev branch, but I could imagine that a lot of users that are not on GitHub get frustrated due to this issue and maybe even stop using PyPulseq... So imo we should fix this and release v1.40.post1 as soon as possible!!! |
@schuenke We can do that. Or, we can remove the sigpy dependency, as we are only using a couple of functions from a single file. With appropriate copyright notice of course. How about it? |
I am currently preparing a pypulseq hands-on session for this friday and installing PyPulseq is really a pain in the a** Can we please push a hotfix to master and release a version 1.40.post1? EDIT: A temporary option would be to change the dependency to |
This is fixed with the merge of #148 |
Hi,
I tried installing this package by cloning and then running
pip install .
, but when running one of the demo scriptspython pypulseq/seq_examples/scripts/write_epi_se_rs.py
the following error was returned:The sigpy utils.Dirac function has
np.float
as a default kwarg which is depreciated as of numpy 1.20. This remains the case in the most recent sigpy version https://github.com/mikgroup/sigpy/blob/master/sigpy/util.py#L236.I think you either need to pin the numpy version to <1.20 or see if the sigpy devs will update their code. Pinning to an old version of numpy will likely also limit the compatible python versions to <= 3.8. I was able to get everything to run by creating an environment using
conda create -n pps -c conda-forge python=3.8
, modifying thesetup.py
file to"numpy==1.19.5"
and runningpip install .
.To Reproduce
Expected behavior
The example script should run.
Screenshots
N/A
Desktop (please complete the following information):
pypulseq
version: Github dev branch - reports as 1.4.0Additional context
I would highly recommend trying out the Github Actions CI to catch these types of issues. I've found it very useful for my open tools.
The text was updated successfully, but these errors were encountered: