Skip to content

Commit

Permalink
updated mr.checkTiming() to catch the negative delay error
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Zaitsev committed Mar 2, 2021
1 parent 71aa176 commit 4235753
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions matlab/+mr/checkTiming.m
Expand Up @@ -30,6 +30,9 @@
raster=system.gradRasterTime;
end
if isfield(e, 'delay')
if e.delay<-eps
ok=false;
end
if ~div_check(e.delay,raster)
ok=false;
end
Expand Down

0 comments on commit 4235753

Please sign in to comment.