Skip to content

Commit

Permalink
allow missing technology fields
Browse files Browse the repository at this point in the history
  • Loading branch information
orso82 committed Oct 24, 2024
1 parent 83afc68 commit 31ec312
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/imas_coils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ function GS_IMAS_pf_active__coil(
# type in GS_IMAS_pf_active__coil is defined at compile time
coil_tech = IMAS.build__pf_active__technology{T}()
for field in keys(oh_pf_coil_tech)
setproperty!(coil_tech, field, getproperty(oh_pf_coil_tech, field))
if !isempty(oh_pf_coil_tech, field)
setproperty!(coil_tech, field, getproperty(oh_pf_coil_tech, field))
end
end

coil = GS_IMAS_pf_active__coil{T,T,T,T}(
Expand Down

0 comments on commit 31ec312

Please sign in to comment.