Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MRIBuilder.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michiel Cottaar
MRIBuilder.jl
Commits
70f1379a
Verified
Commit
70f1379a
authored
1 year ago
by
Michiel Cottaar
Browse files
Options
Downloads
Patches
Plain Diff
Export get_<functions>
parent
fd5095b0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/MRIBuilder.jl
+2
-2
2 additions, 2 deletions
src/MRIBuilder.jl
src/variables.jl
+9
-1
9 additions, 1 deletion
src/variables.jl
with
11 additions
and
3 deletions
src/MRIBuilder.jl
+
2
−
2
View file @
70f1379a
...
@@ -18,8 +18,8 @@ export build_sequence, global_model, global_scanner
...
@@ -18,8 +18,8 @@ export build_sequence, global_model, global_scanner
import
.
Scanners
:
Scanner
,
B0
,
Siemens_Connectom
,
Siemens_Prisma
,
Siemens_Terra
import
.
Scanners
:
Scanner
,
B0
,
Siemens_Connectom
,
Siemens_Prisma
,
Siemens_Terra
export
Scanner
,
B0
,
Siemens_Connectom
,
Siemens_Prisma
,
Siemens_Terra
export
Scanner
,
B0
,
Siemens_Connectom
,
Siemens_Prisma
,
Siemens_Terra
import
.
Variables
:
variables
,
duration
,
effective_time
,
flip_angle
,
amplitude
,
phase
,
frequency
,
bandwidth
,
N_left
,
N_right
,
qval
,
δ
,
rise_time
,
flat_time
,
slew_rate
,
gradient_strength
,
qvec
,
qval_square
,
slice_thickness
,
inverse_slice_thickness
,
fov
,
inverse_fov
,
voxel_size
,
inverse_voxel_size
,
resolution
,
nsamples
,
oversample
,
dwell_time
,
ramp_overlap
,
spoiler_scale
,
TR
,
Δ
import
.
Variables
:
variables
,
duration
,
effective_time
,
flip_angle
,
amplitude
,
phase
,
frequency
,
bandwidth
,
N_left
,
N_right
,
qval
,
δ
,
rise_time
,
flat_time
,
slew_rate
,
gradient_strength
,
qvec
,
qval_square
,
slice_thickness
,
inverse_slice_thickness
,
fov
,
inverse_fov
,
voxel_size
,
inverse_voxel_size
,
resolution
,
nsamples
,
oversample
,
dwell_time
,
ramp_overlap
,
spoiler_scale
,
TR
,
Δ
,
get_gradient
,
get_pulse
,
get_readout
export
variables
,
duration
,
effective_time
,
flip_angle
,
amplitude
,
phase
,
frequency
,
bandwidth
,
N_left
,
N_right
,
qval
,
δ
,
rise_time
,
flat_time
,
slew_rate
,
gradient_strength
,
qvec
,
qval_square
,
slice_thickness
,
inversne_slice_thickness
,
fov
,
inverse_fov
,
voxel_size
,
inverse_voxel_size
,
resolution
,
nsamples
,
oversample
,
dwell_time
,
ramp_overlap
,
spoiler_scale
,
TR
,
Δ
export
variables
,
duration
,
effective_time
,
flip_angle
,
amplitude
,
phase
,
frequency
,
bandwidth
,
N_left
,
N_right
,
qval
,
δ
,
rise_time
,
flat_time
,
slew_rate
,
gradient_strength
,
qvec
,
qval_square
,
slice_thickness
,
inversne_slice_thickness
,
fov
,
inverse_fov
,
voxel_size
,
inverse_voxel_size
,
resolution
,
nsamples
,
oversample
,
dwell_time
,
ramp_overlap
,
spoiler_scale
,
TR
,
Δ
,
get_gradient
,
get_pulse
,
get_readout
import
.
Components
:
InstantPulse
,
ConstantPulse
,
SincPulse
,
GenericPulse
,
InstantGradient
,
SingleReadout
,
ADC
import
.
Components
:
InstantPulse
,
ConstantPulse
,
SincPulse
,
GenericPulse
,
InstantGradient
,
SingleReadout
,
ADC
export
InstantPulse
,
ConstantPulse
,
SincPulse
,
GenericPulse
,
InstantGradient
,
SingleReadout
,
ADC
export
InstantPulse
,
ConstantPulse
,
SincPulse
,
GenericPulse
,
InstantGradient
,
SingleReadout
,
ADC
...
...
This diff is collapsed.
Click to expand it.
src/variables.jl
+
9
−
1
View file @
70f1379a
...
@@ -249,7 +249,15 @@ for (target_name, all_vars) in all_variables_symbols
...
@@ -249,7 +249,15 @@ for (target_name, all_vars) in all_variables_symbols
throw
(
VariableNotAvailable
(
typeof
(
bb
),
Variables
.$
variable_func
))
throw
(
VariableNotAvailable
(
typeof
(
bb
),
Variables
.$
variable_func
))
catch
e
catch
e
if
$
use_get_func
&&
e
isa
VariableNotAvailable
&&
hasmethod
(
$
get_func
,
tuple
(
typeof
(
bb
)))
if
$
use_get_func
&&
e
isa
VariableNotAvailable
&&
hasmethod
(
$
get_func
,
tuple
(
typeof
(
bb
)))
return
Variables
.$
variable_func
(
$
get_func
(
bb
))
apply_to
=
$
(
get_func
)(
bb
)
if
apply_to
isa
AbstractBlock
return
Variables
.$
variable_func
(
apply_to
)
elseif
apply_to
isa
NamedTuple
return
NamedTuple
(
k
=>
Variables
.$
variable_func
(
v
)
for
(
k
,
v
)
in
pairs
(
apply_to
))
elseif
apply_to
isa
AbstractVector
{
<:
AbstractBlock
}
||
apply_to
isa
Tuple
return
Variables
.$
variable_func
.
(
apply_to
)
end
error
(
"
$
(
$(use_get_func)
) returned an unexpected type for
$(bb)
."
)
end
end
rethrow
()
rethrow
()
end
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment