From 239f81d277a6b4a760c54f4c7ea11c6440856750 Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Wed, 10 Apr 2024 17:05:36 +0200 Subject: Improving docstrings. --- src/argaze/DataFeatures.py | 12 ++++++------ src/argaze/__init__.py | 22 +++++++++++----------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/argaze/DataFeatures.py b/src/argaze/DataFeatures.py index c89fdea..a608540 100644 --- a/src/argaze/DataFeatures.py +++ b/src/argaze/DataFeatures.py @@ -111,14 +111,14 @@ def properties(cls) -> list: def from_json(filepath: str) -> any: """ - Load object instance from .json file. + Load object from json file. - !!! note - The directory where configuration file is will be the global working directory. + !!! note + The directory where json file is will be used as global working directory. - Parameters: - filepath: path to json configuration file - """ + Parameters: + filepath: path to json file + """ logging.debug('DataFeatures.from_json') diff --git a/src/argaze/__init__.py b/src/argaze/__init__.py index 7224a85..2e004f1 100644 --- a/src/argaze/__init__.py +++ b/src/argaze/__init__.py @@ -1,20 +1,20 @@ """ ArGaze is divided in submodules dedicated to various specifics features. """ -__all__ = ['ArUcoMarkers', 'AreaOfInterest', 'ArFeatures', 'GazeFeatures', 'GazeAnalysis', 'PupilFeatures', - 'PupilAnalysis', 'DataFeatures', 'utils'] +__all__ = ['ArUcoMarkers', 'AreaOfInterest', 'ArFeatures', 'GazeFeatures', 'GazeAnalysis', 'PupilFeatures', 'PupilAnalysis', 'DataFeatures', 'utils'] def load(filepath: str) -> any: - """ - Load object instance from .json file. + """ + Load object from json file. - !!! note - The directory where configuration file is will be the global working directory. + !!! note + The directory where json file is will be used as global working directory. - Parameters: - filepath: path to json configuration file - """ + Parameters: + filepath: path to json file + """ - from argaze import DataFeatures + from argaze import DataFeatures - return DataFeatures.from_json(filepath) \ No newline at end of file + return DataFeatures.from_json(filepath) + \ No newline at end of file -- cgit v1.1