Skip to content

Commit be0702a

Browse files
authored
Hotfix
1 parent d82cc1a commit be0702a

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

ext/LegendDataManagementSolidStateDetectorsExt.jl

+14-14
Original file line numberDiff line numberDiff line change
@@ -47,33 +47,33 @@ LegendDataManagement provides an extension for SolidStateDetectors, a
4747
methods above.
4848
"""
4949
function SolidStateDetectors.SolidStateDetector(data::LegendData, detector::DetectorIdLike; kwargs...)
50-
SolidStateDetectors.SolidStateDetector{_SSDDefaultNumtype}(data, detector, kwargs...)
50+
SolidStateDetectors.SolidStateDetector{_SSDDefaultNumtype}(data, detector; kwargs...)
5151
end
5252

5353
function SolidStateDetectors.SolidStateDetector{T}(data::LegendData, detector::DetectorIdLike; kwargs...) where {T<:AbstractFloat}
5454
detector_props = getproperty(data.metadata.hardware.detectors.germanium.diodes, Symbol(detector))
5555
xtal_props = getproperty(data.metadata.hardware.detectors.germanium.crystals, Symbol(string(detector)[1:end-1]))
56-
SolidStateDetector{T}(LegendData, detector_props, xtal_props, kwargs...)
56+
SolidStateDetector{T}(LegendData, detector_props, xtal_props; kwargs...)
5757
end
5858

5959
function SolidStateDetectors.SolidStateDetector{T}(::Type{LegendData}, filename::String; kwargs...) where {T<:AbstractFloat}
60-
SolidStateDetector{T}(LegendData, readprops(filename, subst_pathvar = false, subst_env = false, trim_null = false), kwargs...)
60+
SolidStateDetector{T}(LegendData, readprops(filename, subst_pathvar = false, subst_env = false, trim_null = false); kwargs...)
6161
end
6262

6363
function SolidStateDetectors.SolidStateDetector(::Type{LegendData}, filename::String; kwargs...)
64-
SolidStateDetector{_SSDDefaultNumtype}(LegendData, filename, kwargs...)
64+
SolidStateDetector{_SSDDefaultNumtype}(LegendData, filename; kwargs...)
6565
end
6666

6767
function SolidStateDetectors.SolidStateDetector(::Type{LegendData}, meta::AbstractDict; kwargs...)
68-
SolidStateDetectors.SolidStateDetector{_SSDDefaultNumtype}(LegendData, meta, kwargs...)
68+
SolidStateDetectors.SolidStateDetector{_SSDDefaultNumtype}(LegendData, meta; kwargs...)
6969
end
7070

7171
function SolidStateDetectors.SolidStateDetector{T}(::Type{LegendData}, meta::AbstractDict; kwargs...) where {T<:AbstractFloat}
72-
SolidStateDetectors.SolidStateDetector{T}(LegendData, convert(PropDict, meta), LegendDataManagement.NoSuchPropsDBEntry("",[]), kwargs...)
72+
SolidStateDetectors.SolidStateDetector{T}(LegendData, convert(PropDict, meta), LegendDataManagement.NoSuchPropsDBEntry("",[]); kwargs...)
7373
end
7474

7575
function SolidStateDetectors.SolidStateDetector{T}(::Type{LegendData}, meta::PropDict, xtal_meta::Union{PropDict, LegendDataManagement.NoSuchPropsDBEntry}; kwargs...) where {T<:AbstractFloat}
76-
config_dict = create_SSD_config_dict_from_LEGEND_metadata(meta, xtal_meta, kwargs...)
76+
config_dict = create_SSD_config_dict_from_LEGEND_metadata(meta, xtal_meta; kwargs...)
7777
return SolidStateDetector{T}(config_dict, SolidStateDetectors.construct_units(config_dict))
7878
end
7979

@@ -87,33 +87,33 @@ LegendDataManagement provides an extension for SolidStateDetectors, a
8787
methods above.
8888
"""
8989
function SolidStateDetectors.Simulation(data::LegendData, detector::DetectorIdLike; kwargs...)
90-
SolidStateDetectors.Simulation{_SSDDefaultNumtype}(data, detector, kwargs...)
90+
SolidStateDetectors.Simulation{_SSDDefaultNumtype}(data, detector; kwargs...)
9191
end
9292

9393
function SolidStateDetectors.Simulation{T}(data::LegendData, detector::DetectorIdLike; kwargs...) where {T<:AbstractFloat}
9494
detector_props = getproperty(data.metadata.hardware.detectors.germanium.diodes, Symbol(detector))
9595
xtal_props = getproperty(data.metadata.hardware.detectors.germanium.crystals, Symbol(string(detector)[1:end-1]))
96-
Simulation{T}(LegendData, detector_props, xtal_props, kwargs...)
96+
Simulation{T}(LegendData, detector_props, xtal_props; kwargs...)
9797
end
9898

9999
function SolidStateDetectors.Simulation{T}(::Type{LegendData}, filename::String; kwargs...) where {T<:AbstractFloat}
100-
Simulation{T}(LegendData, readprops(filename, subst_pathvar = false, subst_env = false, trim_null = false), kwargs...)
100+
Simulation{T}(LegendData, readprops(filename, subst_pathvar = false, subst_env = false, trim_null = false); kwargs...)
101101
end
102102

103103
function SolidStateDetectors.Simulation(::Type{LegendData}, filename::String; kwargs...)
104-
Simulation{_SSDDefaultNumtype}(LegendData, filename, kwargs...)
104+
Simulation{_SSDDefaultNumtype}(LegendData, filename; kwargs...)
105105
end
106106

107107
function SolidStateDetectors.Simulation(::Type{LegendData}, meta::AbstractDict; kwargs...)
108-
SolidStateDetectors.Simulation{_SSDDefaultNumtype}(LegendData, meta, kwargs...)
108+
SolidStateDetectors.Simulation{_SSDDefaultNumtype}(LegendData, meta; kwargs...)
109109
end
110110

111111
function SolidStateDetectors.Simulation{T}(::Type{LegendData}, meta::AbstractDict; kwargs...) where {T<:AbstractFloat}
112-
SolidStateDetectors.Simulation{T}(LegendData, convert(PropDict, meta), LegendDataManagement.NoSuchPropsDBEntry("", []), kwargs...)
112+
SolidStateDetectors.Simulation{T}(LegendData, convert(PropDict, meta), LegendDataManagement.NoSuchPropsDBEntry("", []); kwargs...)
113113
end
114114

115115
function SolidStateDetectors.Simulation{T}(::Type{LegendData}, meta::PropDict, xtal_meta::Union{PropDict, LegendDataManagement.NoSuchPropsDBEntry}; kwargs...) where {T<:AbstractFloat}
116-
config_dict = create_SSD_config_dict_from_LEGEND_metadata(meta, xtal_meta, kwargs...)
116+
config_dict = create_SSD_config_dict_from_LEGEND_metadata(meta, xtal_meta; kwargs...)
117117
return Simulation{T}(config_dict)
118118
end
119119

0 commit comments

Comments
 (0)