You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I switched to KomaMRI 0.9 and observed some performance improvements with simulations, which is great 👍
Yet, I had some troubles (see below) with the way I define Float32 or empty phantoms with the new version.
I am not sure if this is a bug or just the new expected behavior since 0.9, as for both situations, I found a (imo, less esthetic) way to define it as I want.
Note that, if this is not a bug, there might be parts of the documentation to modify, like in the $T_2^*$ section of this page, where the following empty phantom definition does not work anymore (at least for me)
# (3.1.1) Create an empty phantom
obj_t2star =Phantom{Float64}(x=[])
Issue 1: Float32 vs Float64 phantom
Creating a phantom encoded in Float32 like this leads to an error
Phantom{Float32}(x=[1.0])
→ ERROR: MethodError: Cannot `convert` an object of type NoMotion{Float64} to an object of type KomaMRIBase.AbstractMotion{Float32}
but this works fine and produces a phantom encoded in Float32 (including the motion!)
What happened?
Hi,
I switched to KomaMRI 0.9 and observed some performance improvements with simulations, which is great 👍
Yet, I had some troubles (see below) with the way I define Float32 or empty phantoms with the new version.
I am not sure if this is a bug or just the new expected behavior since 0.9, as for both situations, I found a (imo, less esthetic) way to define it as I want.
Note that, if this is not a bug, there might be parts of the documentation to modify, like in the$T_2^*$ section of this page, where the following empty phantom definition does not work anymore (at least for me)
Issue 1: Float32 vs Float64 phantom
Creating a phantom encoded in Float32 like this leads to an error
but this works fine and produces a phantom encoded in Float32 (including the motion!)
Issue 2: Empty phantom
Those commands do not work anymore
But this works fine:
Environment
The text was updated successfully, but these errors were encountered: