Skip to content
Snippets Groups Projects

Remove verbose stuff

Merged Tamas Gal requested to merge cleanup into main
3 files
+ 8
17
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 0
8
@@ -470,7 +470,6 @@ function read_detx(io::IO)
# a counter to work around the floor == -1 bug in some older DETX files
floor_counter = 1
last_string = -1
floorminusone_warning_has_been_shown = false
for mod 1:n_modules
elements = split(lines[idx])
@@ -479,10 +478,6 @@ function read_detx(io::IO)
# floor == -1 bug. We determine the floor position by assuming an ascending order
# of modules in the DETX file
if floor == -1
if !floorminusone_warning_has_been_shown
@warn "'Floor == -1' found in the detector file. The actual floor number will be inferred, assuming that modules and lines are sorted."
floorminusone_warning_has_been_shown = true
end
if last_string == -1
last_string = string
elseif last_string != string
@@ -618,10 +613,7 @@ information will be lost.
function write(io::IO, d::Detector; version=:same)
if version == :same
version = d.version
else
version != d.version && println("Converting detector from format version $(d.version) to $(version).")
end
version > d.version && @warn "Target version is higher, missing parameters will be filled with reasonable default values."
if version >= 3
for comment in d.comments
Loading