@@ -47,33 +47,33 @@ LegendDataManagement provides an extension for SolidStateDetectors, a
47
47
methods above.
48
48
"""
49
49
function SolidStateDetectors. SolidStateDetector (data:: LegendData , detector:: DetectorIdLike ; kwargs... )
50
- SolidStateDetectors. SolidStateDetector {_SSDDefaultNumtype} (data, detector, kwargs... )
50
+ SolidStateDetectors. SolidStateDetector {_SSDDefaultNumtype} (data, detector; kwargs... )
51
51
end
52
52
53
53
function SolidStateDetectors. SolidStateDetector {T} (data:: LegendData , detector:: DetectorIdLike ; kwargs... ) where {T<: AbstractFloat }
54
54
detector_props = getproperty (data. metadata. hardware. detectors. germanium. diodes, Symbol (detector))
55
55
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... )
57
57
end
58
58
59
59
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... )
61
61
end
62
62
63
63
function SolidStateDetectors. SolidStateDetector (:: Type{LegendData} , filename:: String ; kwargs... )
64
- SolidStateDetector {_SSDDefaultNumtype} (LegendData, filename, kwargs... )
64
+ SolidStateDetector {_SSDDefaultNumtype} (LegendData, filename; kwargs... )
65
65
end
66
66
67
67
function SolidStateDetectors. SolidStateDetector (:: Type{LegendData} , meta:: AbstractDict ; kwargs... )
68
- SolidStateDetectors. SolidStateDetector {_SSDDefaultNumtype} (LegendData, meta, kwargs... )
68
+ SolidStateDetectors. SolidStateDetector {_SSDDefaultNumtype} (LegendData, meta; kwargs... )
69
69
end
70
70
71
71
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... )
73
73
end
74
74
75
75
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... )
77
77
return SolidStateDetector {T} (config_dict, SolidStateDetectors. construct_units (config_dict))
78
78
end
79
79
@@ -87,33 +87,33 @@ LegendDataManagement provides an extension for SolidStateDetectors, a
87
87
methods above.
88
88
"""
89
89
function SolidStateDetectors. Simulation (data:: LegendData , detector:: DetectorIdLike ; kwargs... )
90
- SolidStateDetectors. Simulation {_SSDDefaultNumtype} (data, detector, kwargs... )
90
+ SolidStateDetectors. Simulation {_SSDDefaultNumtype} (data, detector; kwargs... )
91
91
end
92
92
93
93
function SolidStateDetectors. Simulation {T} (data:: LegendData , detector:: DetectorIdLike ; kwargs... ) where {T<: AbstractFloat }
94
94
detector_props = getproperty (data. metadata. hardware. detectors. germanium. diodes, Symbol (detector))
95
95
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... )
97
97
end
98
98
99
99
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... )
101
101
end
102
102
103
103
function SolidStateDetectors. Simulation (:: Type{LegendData} , filename:: String ; kwargs... )
104
- Simulation {_SSDDefaultNumtype} (LegendData, filename, kwargs... )
104
+ Simulation {_SSDDefaultNumtype} (LegendData, filename; kwargs... )
105
105
end
106
106
107
107
function SolidStateDetectors. Simulation (:: Type{LegendData} , meta:: AbstractDict ; kwargs... )
108
- SolidStateDetectors. Simulation {_SSDDefaultNumtype} (LegendData, meta, kwargs... )
108
+ SolidStateDetectors. Simulation {_SSDDefaultNumtype} (LegendData, meta; kwargs... )
109
109
end
110
110
111
111
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... )
113
113
end
114
114
115
115
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... )
117
117
return Simulation {T} (config_dict)
118
118
end
119
119
0 commit comments