Skip to content

Commit

Permalink
trying to setup context manager
Browse files Browse the repository at this point in the history
  • Loading branch information
duguyue100 committed Mar 16, 2024
1 parent 9f010e1 commit 319c05c
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 291 deletions.
7 changes: 6 additions & 1 deletion pyaer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@
LOG_LEVEL = log.DEBUG

try:
from pyaer import libcaer_wrap as libcaer # noqa
from pyaer import libcaer_wrap as libcaer
except ImportError:
raise ImportError(
"libcaer might not be in the LD_LIBRARY_PATH "
"or your numpy might not be the required version. "
"Try to load _libcaer_wrap.so from the package "
"directory, this will provide more information."
)

from pyaer.event_camera import EventCamera # noqa # noreorder


__all__ = ["libcaer", "EventCamera"]
Loading

0 comments on commit 319c05c

Please sign in to comment.