diff options
author | Théo de la Hogue | 2024-04-10 12:37:08 +0200 |
---|---|---|
committer | Théo de la Hogue | 2024-04-10 12:37:08 +0200 |
commit | c03097c7b8e9b3fbbe188c0c99908fae2b28ba37 (patch) | |
tree | c7a5d1db9d65e27db19c0f91d74c8cd3202ffc8a /src/argaze/__init__.py | |
parent | f3a09d79cafef66693c1792d21d722870ab53dc7 (diff) | |
download | argaze-c03097c7b8e9b3fbbe188c0c99908fae2b28ba37.zip argaze-c03097c7b8e9b3fbbe188c0c99908fae2b28ba37.tar.gz argaze-c03097c7b8e9b3fbbe188c0c99908fae2b28ba37.tar.bz2 argaze-c03097c7b8e9b3fbbe188c0c99908fae2b28ba37.tar.xz |
Adding new argaze.load package function to ease the access to DataFeatures.from_json function.
Diffstat (limited to 'src/argaze/__init__.py')
-rw-r--r-- | src/argaze/__init__.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/argaze/__init__.py b/src/argaze/__init__.py index 8c0068f..c492882 100644 --- a/src/argaze/__init__.py +++ b/src/argaze/__init__.py @@ -3,3 +3,18 @@ ArGaze is divided in submodules dedicated to various specifics features. """ __all__ = ['ArUcoMarkers', 'AreaOfInterest', 'ArFeatures', 'GazeFeatures', 'GazeAnalysis', 'PupilFeatures', 'PupilAnalysis', 'DataFeatures', 'utils'] + +def load(filepath: str) -> any: + """ + Load object instance from .json file. + + !!! note + The directory where configuration file is will be the global working directory. + + Parameters: + configuration_filepath: path to json configuration file + """ + + from argaze import DataFeatures + + return DataFeatures.from_json(filepath)
\ No newline at end of file |