Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/conf_master.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ following message next time they want to perform a HIT from this group:
````
* `allowed_max_hit_in_project:60`: Number of assignments that one worker can perform from this project.
* `hit_base_payment:0.5`: Base payment for an accepted assignment from this HIT. This value will be used as information.
* `quantity_hits_more_than: 30`: Defines the necessary hits required for quantity bonus.
* `quantity_hits_more_than: 30`: Defines the necessary hits required for quantity bonus. This should typically be about half of the total number of HITs in the study.
* `quantity_bonus: 0.1`: The amount of the quantity bonus to be payed for each accepted assignment.
* `quality_top_percentage: 20`: Defines when quality bonus should be applied (in addition, participant should be
eligible for quantity bonus).
Expand All @@ -56,7 +56,7 @@ following message next time they want to perform a HIT from this group:
````
* `allowed_max_hit_in_project:60`: Number of assignments that one worker can perform from this project.
* `hit_base_payment:0.5`: Base payment for an accepted assignment from this HIT. This value will be used as information.
* `quantity_hits_more_than: 30`: Defines the necessary hits required for quantity bonus.
* `quantity_hits_more_than: 30`: Defines the necessary hits required for quantity bonus. This should typically be about half of the total number of HITs in the study.
* `quantity_bonus: 0.1`: The amount of the quantity bonus to be payed for each accepted assignment.
* `quality_top_percentage: 20`: Defines when quality bonus should be applied (in addition, participant should be
eligible for quantity bonus).
Expand All @@ -75,7 +75,7 @@ following message next time they want to perform a HIT from this group:
````
* `allowed_max_hit_in_project:60`: Number of assignments that one worker can perform from this project.
* `hit_base_payment:0.5`: Base payment for an accepted assignment from this HIT. This value will be used as information.
* `quantity_hits_more_than: 30`: Defines when quantity bonus requirement.
* `quantity_hits_more_than: 30`: Defines when quantity bonus requirement. This should typically be about half of the total number of HITs in the study.
* `quantity_bonus: 0.1`: the amount of the quantity bonus to be payed for each accepted assignment.
* `quality_top_percentage: 20`: Defines when quality bonus should be applied (in addition, participant should be
eligible for quantity bonus).
Expand Down
15 changes: 11 additions & 4 deletions src/master_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,10 +838,17 @@ async def main(cfg, test_method, args):
cfg["create_input"], df, test_method, output_csv_file
)

# check settings of quantity bonus
if not (int(cfg_hit_app["quantity_hits_more_than"]) in range(int(n_HITs/2), int(n_HITs*2/3)+1)):
print("\nWARNING: it seems that 'quantity_hits_more_than' not set properly. Consider to use a number in"
f" the range of [{int(n_HITs/2)}, {int(n_HITs*2/3)}].\n")
# check settings of quantity bonus
if not (int(cfg_hit_app["quantity_hits_more_than"]) in range(int(n_HITs/2), int(n_HITs*2/3)+1)):
print("\nWARNING: it seems that 'quantity_hits_more_than' not set properly. Consider to use a number in"
f" the range of [{int(n_HITs/2)}, {int(n_HITs*2/3)}].\n")

# check settings of allowed hits
allowed_hits = int(cfg_hit_app["allowed_max_hit_in_project"])
if allowed_hits > n_HITs:
print(f"\nWARNING: 'allowed_max_hit_in_project' ({allowed_hits}) is greater than the total number of HITs ({n_HITs}).\n")
if allowed_hits < int(cfg_hit_app["quantity_hits_more_than"]):
print(f"\nWARNING: 'allowed_max_hit_in_project' ({allowed_hits}) is less than 'quantity_hits_more_than' ({cfg_hit_app['quantity_hits_more_than']}). Workers will not reach the quantity bonus.\n")

# create general config
general_cfg = prepare_basic_cfg(df)
Expand Down