-
Notifications
You must be signed in to change notification settings - Fork 22
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
Issues with running the tests for this code #198
Comments
Hello, to fix the issue with L2 and L1 you can add Could you link me the example or paste the exact code that causes the issue with L2Regularization? The example I found doesn't seem to have any user-defined regularization. It is possible to configure Julia to always load certain packages when starting, this is usually done by adding them in the MRIReco.jl itself does not require the user to add PyPlot, HTTP and co., all dependencies it needs are already included. It's just when the examples need to plot something, this is the package that was used to do that |
Thanks for your answer. However, when I run the very example you're suggesting, julia tells me that shepp_logan is not defined, and once I add the package for the Shepp-Logan, it goes on to tell me that simulation is not defined, forcing me to add the next package, and so on. Clearly, I am missing something evident. |
I just linked the example to know where the L2 issue came from because I don't see it being used in the example. The example is outdated and not executable directly without adding those packages. The example isn't part of the tests for the package nor the documentation. Under docs/lit/examples you can see the code that created the examples shown in the documentation. Those are examplles that are actively run in the build process and produce documents pages. But they are also executable Julia scripts |
I apologize, but I still don't get it. The examples in \docs\src\examples are outdated? Is that why, after installing the packages manually for exampleIO and trying to use it to open a Bruker scan it tells me "ArgumentError: input string is empty or only contains whitespace", or is that a different problem altogether? Are you saying the examples in \docs\lit\examples are up to date? Because I have the same problem running those (well, almost, the missing package is "CairoMakie" in those). As I said before, I'm a beginner here, so this might be all on me, a 3D UTE scan was dropped on me, I have no idea where to start with the reconstruction, and I hoped this package would help. Thank you for taking the time to answer! |
For your error it seems the path is wrong. Some of the example are outdated it is better to take a look at the test. You can find the one for the bruker 3DUTE here : MRIReco.jl/MRIFiles/test/testBrukerFile.jl Line 119 in a37d0ac
@nHackel is finalizing an important PR, after that I will take a look to update the documentation. |
Okay, so when I say outdated, I mean that they haven't been manually looked at and run for a while, unlike the example in the /lit/ folder. Those were run to produce for example this page in the documentation. I've linked to the section detailing the reproducability information of that specific example. The other examples should still work, when started in the proper Julia session, i.e. in a session where also PyPlot, RegularizedLeastSquares and co. are loaded. Whatever packages are needed depend on the example in question. It is a bit difficult to help you, because we can't reproduce the code that you are running, which is why I asked about which example you ran where you had the L2Regularization error. The only version of ExamplesRadial.jl that I found didn't include an L2Regularization term from what I could see. Ideally, you tell us exactly the example you ran and then post the errors with stacktraces, otherwise we can neither reproduce nor make an educated guess what the issue. For example the /lit/examples all have If you mean that you had to add CairoMakie before running that example, then that is normal and outside of the scope of the script. Usually, newer Julia versions just ask you if you want to install a packge that you are trying to use, but haven't installed yet. |
Ah @aTrotier also replied. That's good because I'm not super versed in MRI itselfs and mostly focused on the optimization backend of the package (which is where the L2Regularization is relevant). The important PR has actually been released @aTrotier, we now have GPU support 🎉 Maybe in a seperate issue we can discuss how we want to update the documentation and leave this for helping @ppetrecca |
Thank you both for your answers. I will try to be clearer in the following. I also tried running "testBrukerFile.jl". I also ONLY added "using xxx" for the packages that seemes useful and include("testBrukerFile.jl"). That one also wants L1Regularization: I don't even know whether I need the parts of the code that require L1 and L2 regularization, since I only need to interpret a 3D UTE Bruker file, but I can't seem to get these tests to work. Thank you for your patience. |
Sorry I am on parental leave right now and can't completely debug your issue. One remark, I think the way to use the literal example is to activate the environment in the docs folder and then you can run the literate example from their. If you don't need the advanced parallel or compressed sensing reconstruction (which causes issue with L1 /L2 régularisation term. And use the "direct" reconstruction. I did not had time to change the literate example. |
I understand. Thank you for the attempt, however, running the exaples from the docs folder changed nothing. I wish you a relaxing parental leave. |
@ppetrecca we still have a conflict when Pkg.instantiate() is called for the docs/folder but if you activate the docs environment and |
@ppetrecca now it should works :) |
Greetings. I am not an expert in matters julia, and this is the first code I've tried ever tried to use. I have found several problems.
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: