From 75b80f73bb7104149d20426769f7c4a7db21f1c1 Mon Sep 17 00:00:00 2001 From: Enrico Seiler Date: Thu, 30 Jan 2025 14:54:44 +0100 Subject: [PATCH] [FEATURE] Add empty-bin-fraction to options --- src/set_up_parser.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/set_up_parser.cpp b/src/set_up_parser.cpp index dc3f7307..08c36b4f 100644 --- a/src/set_up_parser.cpp +++ b/src/set_up_parser.cpp @@ -103,6 +103,17 @@ void set_up_parser(sharg::parser & parser, configuration & config) .default_message = "≈sqrt(#samples)", .advanced = true}); + parser.add_option( + config.hibf_config.empty_bin_fraction, + sharg::config{ + .short_id = '\0', + .long_id = "empty-bin-fraction", + .description = + "Sets the percentage of empty bins in the layout. Certain applications, e.g., dynamic indices, require " + "empty technical bins in the layout. This option allows you to specify the fraction of tmax that " + "should be empty bins. The empty bins will be present in each IBF of the generated layout.", + .advanced = true}); + parser.add_option( config.hibf_config.number_of_hash_functions, sharg::config{.short_id = '\0',