example_fgen_basic.error_v.creation#
Wrappers of m_error_v_creation
At the moment, all written by hand. We will auto-generate this in future.
Functions:
| Name | Description |
|---|---|
create_error |
Create an error |
create_errors |
Create a number of errors |
create_error #
Create an error
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
inv
|
int
|
Input value If odd, the error code is NO_ERROR_CODE. If even, the error code is 1. If a negative number is supplied, the error code is 2. |
required |
Returns:
| Type | Description |
|---|---|
ErrorV
|
Created error |
Source code in src/example_fgen_basic/error_v/creation.py
create_errors #
create_errors(invs: NP_ARRAY_OF_INT) -> tuple[ErrorV, ...]
Create a number of errors
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
invs
|
NP_ARRAY_OF_INT
|
Input values from which to create errors For each value in |
required |
Returns:
| Type | Description |
|---|---|
tuple[ErrorV, ...]
|
Created errors |