We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 402259f commit bda3172Copy full SHA for bda3172
R/read_Spectrum.R
@@ -82,8 +82,8 @@ read_Spectrum <- function(file, ...) {
82
center_field <- as.numeric(par[par==cf, 2])
83
if (is.na(sweep_width))
84
sweep_width <- as.numeric(par[par==sw, 2]) / div
85
- start <- center_field - sweep_width[1] # DSC can contain duplicate entries
86
- end <- center_field + sweep_width[1]
+ start <- center_field - sweep_width[1] / 2 # DSC can contain duplicate entries
+ end <- center_field + sweep_width[1] / 2
87
88
if (length(sweep_width) == 0)
89
stop("Couldn't find information on sweep width, importing file cancelled.", call. = FALSE)
0 commit comments