diff --git a/src/revpimodio2/__about__.py b/src/revpimodio2/__about__.py index cc03ee0..15aaeef 100644 --- a/src/revpimodio2/__about__.py +++ b/src/revpimodio2/__about__.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- """Metadata of package.""" + __author__ = "Sven Sager " __copyright__ = "Copyright (C) 2023 Sven Sager" __license__ = "LGPLv2" diff --git a/src/revpimodio2/__init__.py b/src/revpimodio2/__init__.py index 656c4a4..ff6f8fe 100644 --- a/src/revpimodio2/__init__.py +++ b/src/revpimodio2/__init__.py @@ -12,6 +12,7 @@ With the defined names, the desired data is accessed directly. The user can register functions as events for all IOs. The module executes these when data changes. """ + __all__ = [ "IOEvent", "RevPiModIO", diff --git a/src/revpimodio2/_internal.py b/src/revpimodio2/_internal.py index afb2b82..d14ddc3 100644 --- a/src/revpimodio2/_internal.py +++ b/src/revpimodio2/_internal.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- """Internal functions and values for this package.""" + __author__ = "Sven Sager" __copyright__ = "Copyright (C) 2023 Sven Sager" __license__ = "LGPLv2" diff --git a/src/revpimodio2/app.py b/src/revpimodio2/app.py index 446e9c7..b7234ed 100644 --- a/src/revpimodio2/app.py +++ b/src/revpimodio2/app.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- """Maps the App section from piCtory.""" + __author__ = "Sven Sager" __copyright__ = "Copyright (C) 2023 Sven Sager" __license__ = "LGPLv2" diff --git a/src/revpimodio2/device.py b/src/revpimodio2/device.py index 347024a..15d34e7 100644 --- a/src/revpimodio2/device.py +++ b/src/revpimodio2/device.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- """Module for managing devices.""" + __author__ = "Sven Sager" __copyright__ = "Copyright (C) 2023 Sven Sager" __license__ = "LGPLv2" diff --git a/src/revpimodio2/errors.py b/src/revpimodio2/errors.py index 121ab3e..da225a3 100644 --- a/src/revpimodio2/errors.py +++ b/src/revpimodio2/errors.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- """Error classes of RevPiModIO.""" + __author__ = "Sven Sager" __copyright__ = "Copyright (C) 2023 Sven Sager" __license__ = "LGPLv2" diff --git a/src/revpimodio2/helper.py b/src/revpimodio2/helper.py index ba415a5..9f5a1e7 100644 --- a/src/revpimodio2/helper.py +++ b/src/revpimodio2/helper.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- """RevPiModIO helper classes and tools.""" + __author__ = "Sven Sager" __copyright__ = "Copyright (C) 2023 Sven Sager" __license__ = "LGPLv2" diff --git a/src/revpimodio2/io.py b/src/revpimodio2/io.py index 130e9f6..e7ca912 100644 --- a/src/revpimodio2/io.py +++ b/src/revpimodio2/io.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- """RevPiModIO module for managing IOs.""" + __author__ = "Sven Sager" __copyright__ = "Copyright (C) 2023 Sven Sager" __license__ = "LGPLv2" diff --git a/src/revpimodio2/modio.py b/src/revpimodio2/modio.py index a34f0de..0683759 100644 --- a/src/revpimodio2/modio.py +++ b/src/revpimodio2/modio.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- """RevPiModIO main class for piControl0 access.""" + __author__ = "Sven Sager" __copyright__ = "Copyright (C) 2023 Sven Sager" __license__ = "LGPLv2" @@ -1533,7 +1534,15 @@ class RevPiModIODriver(RevPiModIOSelected): ) -def run_plc(func, cycletime=50, replace_io_file=None, debug=True, procimg=None, configrsc=None, shared_procimg=False): +def run_plc( + func, + cycletime=50, + replace_io_file=None, + debug=True, + procimg=None, + configrsc=None, + shared_procimg=False, +): """ Run Revoluton Pi as real plc with cycle loop and exclusive IO access. @@ -1560,7 +1569,7 @@ def run_plc(func, cycletime=50, replace_io_file=None, debug=True, procimg=None, debug=debug, procimg=procimg, configrsc=configrsc, - shared_procimg=shared_procimg + shared_procimg=shared_procimg, ) rpi.handlesignalend() return rpi.cycleloop(func, cycletime) diff --git a/src/revpimodio2/netio.py b/src/revpimodio2/netio.py index 0d56db9..422d8c5 100644 --- a/src/revpimodio2/netio.py +++ b/src/revpimodio2/netio.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- """RevPiModIO main class for network access.""" + __author__ = "Sven Sager" __copyright__ = "Copyright (C) 2023 Sven Sager" __license__ = "LGPLv2" diff --git a/src/revpimodio2/pictory.py b/src/revpimodio2/pictory.py index b8d1839..e746753 100644 --- a/src/revpimodio2/pictory.py +++ b/src/revpimodio2/pictory.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- """Pictory aliases for IO values.""" + __author__ = "Théo Rozier" __copyright__ = "Copyright (C) 2023 Sven Sager" __license__ = "LGPLv2" diff --git a/src/revpimodio2/summary.py b/src/revpimodio2/summary.py index 51e34da..ad8c1dd 100644 --- a/src/revpimodio2/summary.py +++ b/src/revpimodio2/summary.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- """Maps the Summary section from piCtory.""" + __author__ = "Sven Sager" __copyright__ = "Copyright (C) 2023 Sven Sager" __license__ = "LGPLv2"