Skip to content

Commit

Permalink
removed unexecutable code fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
Fersoil authored and Fersoil committed Dec 19, 2024
1 parent dc976ca commit 15625f4
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions R/classes-plate_builder.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,7 @@ PlateBuilder <- R6::R6Class(

dilutions <- dilutions[all_locations %in% self$sample_locations]

if (length(dilutions) > length(self$sample_names)) {
dilutions <- dilutions[1:length(self$sample_names)]
verbose_cat(
"(",
color_codes$red_start,
"WARNING",
color_codes$red_end,
")",
"\nNumber of layout fields is higher than the number of samples. Please check the layout file. Using only first ", length(self$sample_names), " dilutions from the layout file. \n",
verbose = private$verbose
)
} else if (length(dilutions) < length(self$sample_names)) {
if (length(dilutions) != length(self$sample_names)) {
stop("Number of layout fields is lower than the number of samples. Can't extract the dilution values")
}
} else {
Expand Down

0 comments on commit 15625f4

Please sign in to comment.