Skip to content

Commit

Permalink
make active volume of type measurement
Browse files Browse the repository at this point in the history
  • Loading branch information
apearsonn committed Dec 3, 2024
1 parent e7f8793 commit 82fd6a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/legend_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ function channelinfo(data::LegendData, sel::AnyValiditySelection; system::Symbol
else
fccd = measurement(fccds[first(keys(fccds))].value, maximum(values(fccds[first(keys(fccds))].uncertainty.corr)))
end
active_volume::Unitful.Volume{<:Number} = if haskey(diodmap, k) get_active_volume(diodmap[k], fccd) else Float64(NaN) * u"cm^3" end
active_volume::Unitful.Volume{<:Number} = if haskey(diodmap, k) get_active_volume(diodmap[k], fccd) else measurement(NaN, NaN) * u"cm^3" end
c = merge(c, (; cc4, cc4ch, daqcrate, daqcard, hvcard, hvch, enrichment, mass, total_volume, active_volume, fccd = fccd * u"mm"))
end

Expand Down

0 comments on commit 82fd6a1

Please sign in to comment.