alogos._utilities.argument_processing
¶
Functions¶
|
Check an argument by inspecting its type and value. |
|
Check a string argument. |
|
Check an integer argument. |
|
Check a numerical argument. |
|
Check a boolean argument. |
|
Check a callable argument. |
|
Compute logical XOR between two inputs. |
|
Ensure a filepath ends with a certain extension. |
|
Ensure a filepath ends without a certain extension. |
Detailed object descriptions¶
- alogos._utilities.argument_processing.check_arg(arg_name, arg_val, types=None, vals=None, conv=None)[source]¶
Check an argument by inspecting its type and value.
- alogos._utilities.argument_processing.str_arg(arg_name, arg_val, default=None, vals=None, to_lower=False)[source]¶
Check a string argument.
- alogos._utilities.argument_processing.int_arg(arg_name, arg_val, default=None, vals=None, min_incl=None, max_incl=None, allow_none=False)[source]¶
Check an integer argument.
- alogos._utilities.argument_processing.num_arg(arg_name, arg_val, default=None, vals=None, min_incl=None, max_incl=None)[source]¶
Check a numerical argument.
- alogos._utilities.argument_processing.bool_arg(arg_name, arg_val, default=None, vals=None)[source]¶
Check a boolean argument.
- alogos._utilities.argument_processing.callable_arg(arg_name, arg_val, default=None, vals=None)[source]¶
Check a callable argument.
- alogos._utilities.argument_processing.logical_xor(var1, var2)[source]¶
Compute logical XOR between two inputs.