ask_user_config
This module contains functions to prompt the user for various job configuration settings.
Functions:
| Name | Description |
|---|---|
ask_and_set_gpu |
dict[str, Any]) -> None: |
ask_and_set_htc_flavour |
dict[str, Any]) -> None: |
ask_and_set_run_on |
dict[str, Any]) -> None: |
ask_keep_setting |
str) -> bool: |
ask_skip_configured_jobs |
|
ask_and_set_gpu(dic_gen)
Prompts the user if a GPU must be used for the job and sets it in the provided dictionary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dic_gen
|
dict[str, Any]
|
The dictionary containing job configuration. |
required |
Source code in study_da/submit/ask_user_config.py
ask_and_set_htc_flavour(dic_gen)
Prompts the user to select an HTCondor job flavor and sets it in the provided dictionary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dic_gen
|
dict[str, Any]
|
The dictionary containing job configuration. |
required |
Source code in study_da/submit/ask_user_config.py
ask_and_set_run_on(dic_gen)
Prompts the user to select a submission type and sets it in the provided dictionary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dic_gen
|
dict[str, Any]
|
The dictionary containing job configuration. |
required |
Source code in study_da/submit/ask_user_config.py
ask_keep_setting(job_name)
Prompts the user to decide whether to keep the same settings for identical jobs.
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if the user wants to keep the same settings, False otherwise. |
Source code in study_da/submit/ask_user_config.py
ask_skip_configured_jobs()
Prompts the user to decide whether to skip already configured jobs.
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if the user wants to skip already configured jobs, False otherwise. |