diff --git a/pyaer/__about__.py b/pyaer/__about__.py index bd96a42..87498d8 100644 --- a/pyaer/__about__.py +++ b/pyaer/__about__.py @@ -1,5 +1,3 @@ -"""About page.""" - __all__ = ["__version__", "__author__", "__author_email__", "__url__"] __version__ = "0.2.7a0" diff --git a/pyaer/__init__.py b/pyaer/__init__.py index 38ae5ce..1b8b2cb 100644 --- a/pyaer/__init__.py +++ b/pyaer/__init__.py @@ -1,9 +1,3 @@ -"""Properly init the package. - -Author: Yuhuang Hu -Email : duguyue100@gmail.com -""" - from __future__ import absolute_import from __future__ import print_function diff --git a/pyaer/comm.py b/pyaer/comm.py index be7cc08..448008e 100644 --- a/pyaer/comm.py +++ b/pyaer/comm.py @@ -1,17 +1,12 @@ """Communication Module. -This script includes class definitions for communication -between processes. Example usage is to have a process for -fetching data from the event cameras and other processes for -processing the data. -The communication protocol is implemented through zeromq package. - -The design principle is similar to ROS where there is a hub for -central scheduling, a group of publishers for sending data, and -a group of subscribers to get/process data. - -Author: Yuhuang Hu -Email : yuhuang.hu@ini.uzh.ch +This script includes class definitions for communication between processes. Example +usage is to have a process for fetching data from the event cameras and other processes +for processing the data. The communication protocol is implemented through zeromq +package. + +The design principle is similar to ROS where there is a hub for central scheduling, a +group of publishers for sending data, and a group of subscribers to get/process data. """ import json @@ -612,9 +607,8 @@ def __init__( This is a shell implementation. - Intend to use as a processing unit. - First subscribe on a topic, process it, and then publish to - a topic + Intend to use as a processing unit. First subscribe on a topic, process it, and + then publish to a topic """ self.__dict__.update(kwargs) diff --git a/pyaer/container.py b/pyaer/container.py index 6a486d4..5932ac8 100644 --- a/pyaer/container.py +++ b/pyaer/container.py @@ -1,13 +1,4 @@ -"""Event Container. - -Motivation: After the events are read from the event packet, -it's difficult to use and less informative to return them -as single variables, therefore, I decide to introduce a -container that can manage all the returned Python variables. - -Author: Yuhuang Hu -Email : duguyue100@gmail.com -""" +from __future__ import annotations from typing import Optional diff --git a/pyaer/davis.py b/pyaer/davis.py index 5180592..1e76df6 100644 --- a/pyaer/davis.py +++ b/pyaer/davis.py @@ -1,8 +1,4 @@ -"""DAVIS Camera. - -Author: Yuhuang Hu -Email : duguyue100@gmail.com -""" +from __future__ import annotations import numpy as np diff --git a/pyaer/device.py b/pyaer/device.py index 9d8e6a7..7a1d80a 100644 --- a/pyaer/device.py +++ b/pyaer/device.py @@ -1,8 +1,4 @@ -"""Generic Device. - -Author: Yuhuang Hu -Email : duguyue100@gmail.com -""" +from __future__ import annotations import abc diff --git a/pyaer/dvs128.py b/pyaer/dvs128.py index 1be6f0a..fa4b8ff 100644 --- a/pyaer/dvs128.py +++ b/pyaer/dvs128.py @@ -1,8 +1,4 @@ -"""DVS128. - -Author: Yuhuang Hu -Email : duguyue100@gmail.com -""" +from __future__ import annotations import numpy as np diff --git a/pyaer/dvxplorer.py b/pyaer/dvxplorer.py index 8268158..a8731fd 100644 --- a/pyaer/dvxplorer.py +++ b/pyaer/dvxplorer.py @@ -1,8 +1,4 @@ -"""DVXPLORER Camera. - -Author: Yuhuang Hu -Email : duguyue100@gmail.com -""" +from __future__ import annotations import numpy as np diff --git a/pyaer/dynapse.py b/pyaer/dynapse.py index 2d058ce..531f6c6 100644 --- a/pyaer/dynapse.py +++ b/pyaer/dynapse.py @@ -1,8 +1,4 @@ -"""DYNAPSE. - -Author: Yuhuang Hu -Email : duguyue100@gmail.com -""" +from __future__ import annotations import time diff --git a/pyaer/edvs.py b/pyaer/edvs.py index a7174bb..6820293 100644 --- a/pyaer/edvs.py +++ b/pyaer/edvs.py @@ -1,8 +1,4 @@ -"""eDVS. - -Author: Yuhuang Hu -Email : duguyue100@gmail.com -""" +from __future__ import annotations import numpy as np diff --git a/pyaer/evk.py b/pyaer/evk.py index 8ee1c2b..2d35bb4 100644 --- a/pyaer/evk.py +++ b/pyaer/evk.py @@ -1,8 +1,4 @@ -"""Samsung EVK Camera. - -Author: Yuhuang Hu -Email : duguyue100@gmail.com -""" +from __future__ import annotations import numpy as np diff --git a/pyaer/filters.py b/pyaer/filters.py index 22f2da1..065ddcf 100644 --- a/pyaer/filters.py +++ b/pyaer/filters.py @@ -1,8 +1,4 @@ -"""Implementation of software filters in libcaer. - -Author: Yuhuang Hu -Email : duguyue100@gmail.com -""" +from __future__ import annotations from typing import Any from typing import Dict diff --git a/pyaer/log.py b/pyaer/log.py index b88c71c..033442b 100644 --- a/pyaer/log.py +++ b/pyaer/log.py @@ -1,10 +1,4 @@ -"""Logger for PyAER. - -NOTE: this is different from libcaer's logger. - -Author: Yuhuang Hu -Email : duguyue100@gmail.com -""" +from __future__ import annotations import logging from logging import Logger diff --git a/pyaer/utils.py b/pyaer/utils.py index eeb0d31..c64615a 100644 --- a/pyaer/utils.py +++ b/pyaer/utils.py @@ -1,8 +1,4 @@ -"""Utilities Functions. - -Author: Yuhuang Hu -Email : duguyue100@gmail.com -""" +from __future__ import annotations import importlib.util as imutil import json diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..b0a6e9e --- /dev/null +++ b/setup.cfg @@ -0,0 +1,10 @@ +[mypy] + +[mypy-h5py.*] +ignore_missing_imports = True + +[mypy-zarr.*] +ignore_missing_imports = True + +[mypy-yaml.*] +ignore_missing_imports = True diff --git a/setup.py b/setup.py index 6c6b63a..e169017 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,4 @@ -"""Setup script for the pyaer package. - -Author: Yuhuang Hu -Email : duguyue100@gmail.com -""" - -from __future__ import absolute_import -from __future__ import print_function +from __future__ import annotations import os from sys import platform