nightly_util
get_apphub_source_dir_path
¶
Get the absolute path to the apphub folder containing the files to be tested by the working_file
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
working_file |
str
|
The absolute path to a test file. |
required |
Returns:
Type | Description |
---|---|
str
|
The absolute path to the corresponding apphub directory. |
Source code in fastestimator/fastestimator/test/nightly_util.py
get_relative_path
¶
Convert an absolute path into a relative path within the parent folder.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
parent_dir |
str
|
A parent folder |
required |
working_file |
str
|
The absolute path to a test file. |
required |
Returns:
Type | Description |
---|---|
str
|
The relative path to the test file within the parent_dir folder. |
Raises:
Type | Description |
---|---|
OSError
|
If the |
Source code in fastestimator/fastestimator/test/nightly_util.py
get_uncle_path
¶
Find the path to the uncle folder of working_file
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
uncle_dir |
str
|
A target uncle folder |
required |
working_file |
str
|
A file within the same FastEstimator repository as apphub examples. |
required |
Returns:
Type | Description |
---|---|
str
|
The root path to the apphub folder. |
Raises:
Type | Description |
---|---|
OSError
|
If the |