@@ -28,7 +28,7 @@ def _job_trajectories(
2828 dataset : mrd .Dataset ,
2929 hdr : mrd .xsd .ismrmrdHeader ,
3030 sim_conf : SimConfig ,
31- shot_idx : Sequence [int ],
31+ shot_idx : Sequence [int ] | int ,
3232 ) -> NDArray :
3333 """Get Non Cartesian trajectories from the dataset.
3434
@@ -72,10 +72,12 @@ def _init_model_nufft(
7272 if slice_2d :
7373 shape_ = sim_conf .shape [:- 1 ]
7474 if smaps is not None :
75- smaps_ = smaps [..., 0 ]
75+ smaps_ = np .ascontiguousarray (
76+ smaps [..., 0 ]
77+ ) # will be updated in the loop
7678
7779 nufft = get_operator (backend )(
78- samples , # dummy samples locs
80+ samples , # will be updated in the loop
7981 shape = shape_ ,
8082 n_coils = n_coils ,
8183 smaps = smaps_ ,
@@ -121,7 +123,7 @@ def _job_model_T2s(
121123 slice_loc = round ((traj [0 , - 1 ] + 0.5 ) * sim_conf .shape [- 1 ])
122124 nufft .samples = traj [:, :2 ]
123125 if phantom .smaps is not None :
124- nufft .smaps = phantom .smaps [..., slice_loc ]
126+ nufft .smaps = np . ascontiguousarray ( phantom .smaps [..., slice_loc ])
125127 phantom_state = phantom_state [:, None , ..., slice_loc ]
126128 else :
127129 phantom_state = phantom_state [:, None , ...]
0 commit comments