Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77933883
make_delay.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Aug 17, 07:46
Size
432 B
Mime Type
text/x-python
Expires
Mon, Aug 19, 07:46 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19951626
Attached To
rPYPULSEQ pypulseq
make_delay.py
View Options
from
pulseq.core.holder
import
Holder
def
make_delay
(
d
):
"""
Makes a Holder object for an delay Event.
Parameters
----------
d : float
Delay time, in seconds.
Returns
-------
delay : Holder
Delay Event.
"""
delay
=
Holder
()
if
d
<
0
:
raise
ValueError
(
'Delay {:.2f} ms is invalid'
.
format
(
d
*
1e3
))
delay
.
type
=
'delay'
delay
.
delay
=
d
return
delay
Event Timeline
Log In to Comment