-
Notifications
You must be signed in to change notification settings - Fork 2
Update numpy #18
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
Comments
Corrected in #19, awaiting review |
@Mahieu-Williame il faut changer les arguments que tu passes à Spyrit de numpy.ndarray dans les scripts que tu utilises. Par exemple:
au lieu de
|
correcting numpy issue (spas: Update numpy #18)
Je fais des tests à partir du script fig8_recon.py de ce repo Est-ce vis à vis de numpy que l'on impose
Dans les 2 cas, je peux charger spas et mon code tourne. |
@Mahieu-Williame |
%runcell -n 'Neural Network setup (executed it just one time)' D:/hspc/scripts/main_seq_2arms.py
Device: cpu
Traceback (most recent call last):
File ~\Anaconda3\envs\without_dll\Lib\site-packages\spyder_kernels\customize\utils.py:209 in exec_encapsulate_locals
exec_fun(compile(code_ast, filename, "exec"), globals)
File d:\hspc\scripts\main_seq_2arms.py:166
model, device = setup_reconstruction(cov_path, model_folder, network_param)
File c:\openspyrit\spas\spas\reconstruction_nn.py:102 in setup_reconstruction
Forward = HadamSplit(network_params.M,
File ~\Anaconda3\envs\without_dll\Lib\site-packages\spyrit\core\meas.py:861 in init
super().init(F, pinv=False, Ord=Ord, meas_shape=(h, h))
File ~\Anaconda3\envs\without_dll\Lib\site-packages\spyrit\core\meas.py:699 in init
super().init(H, pinv, rtol, Ord, meas_shape)
File ~\Anaconda3\envs\without_dll\Lib\site-packages\spyrit\core\meas.py:482 in init
super().init(H, Ord, meas_shape)
File ~\Anaconda3\envs\without_dll\Lib\site-packages\spyrit\core\meas.py:62 in init
H_static, ind = spytorch.sort_by_significance(
File ~\Anaconda3\envs\without_dll\Lib\site-packages\spyrit\core\torch.py:586 in sort_by_significance
indices = torch.argsort(-sig.flatten(), stable=True).to(torch.int32)
TypeError: argsort() received an invalid combination of arguments - got (numpy.ndarray, stable=bool), but expected one of:
The text was updated successfully, but these errors were encountered: