Skip to content

Commit

Permalink
fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
smehringer committed Nov 27, 2024
1 parent 49d2896 commit 1cae4a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chopper_layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ void validate_configuration(sharg::parser & parser,
config.k = sketch_config.k; // make sure default is overwritten
}

if (parser.is_option_set("window") && config.window != sketch_config.window)
if (parser.is_option_set("window") && config.window_size != sketch_config.window_size)
{
throw sharg::parser_error{"You are using a sketch file as input but want to use a --window size that differs "
"from the one used for sketching. This will result in a layout (and subsequently "
"an index that does not represent your data correctly."};
}
else
{
config.window = sketch_config.window; // make sure default is overwritten
config.window_size = sketch_config.window_size; // make sure default is overwritten
}
}

Expand Down

0 comments on commit 1cae4a8

Please sign in to comment.