-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from LaboratoireMecaniqueLille/feature/add_dep…
…recation_errors_from_1.5.11 Add deprecation errors for objects renamed between v1.5 and v2.0
- Loading branch information
Showing
11 changed files
with
281 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# coding: utf-8 | ||
|
||
deprecated_actuators = {'CM_drive': 'SchneiderMDrive23', | ||
'Fake_motor': 'FakeDCMotor', | ||
'Motorkit_pump': 'DCMotorHat', | ||
'Oriental': 'OrientalARDK', | ||
'Pololu_tic': 'PololuTic', | ||
'Servostar': 'ServoStar300', | ||
'Tra6ppd': 'NewportTRA6PPD'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,205 @@ | ||
# coding: utf-8 | ||
|
||
from .meta_block import Block | ||
|
||
|
||
class AutoDrive(Block): | ||
"""Empty class for signaling an object of version 1.5 whose name changed in | ||
version 2.0 and is now deprecated. | ||
The new name of the correct object to use is given. | ||
""" | ||
|
||
def __init__(self, *_, **__) -> None: | ||
"""Simply raises the exception when instantiating the object.""" | ||
|
||
super().__init__() | ||
|
||
raise NotImplementedError(f"The {type(self).__name__} Block was renamed " | ||
f"to AutoDriveVideoExtenso in version 2.0.0 ! " | ||
f"Check the documentation for more information.") | ||
|
||
|
||
class Client_server(Block): | ||
"""Empty class for signaling an object of version 1.5 whose name changed in | ||
version 2.0 and is now deprecated. | ||
The new name of the correct object to use is given. | ||
""" | ||
|
||
def __init__(self, *_, **__) -> None: | ||
"""Simply raises the exception when instantiating the object.""" | ||
|
||
super().__init__() | ||
|
||
raise NotImplementedError(f"The {type(self).__name__} Block was renamed " | ||
f"to ClientServer in version 2.0.0 ! " | ||
f"Check the documentation for more information.") | ||
|
||
|
||
class Displayer(Block): | ||
"""Empty class for signaling an object of version 1.5 that wa removed in | ||
version 2.0.O.""" | ||
|
||
def __init__(self, *_, **__) -> None: | ||
"""Simply raises the exception when instantiating the object.""" | ||
|
||
super().__init__() | ||
|
||
raise NotImplementedError(f"The {type(self).__name__} Block was removed " | ||
f"in version 2.0.0 ! It is now contained " | ||
f"directly in the Camera Block. " | ||
f"Check the documentation for more information.") | ||
|
||
|
||
class DISVE(Block): | ||
"""Empty class for signaling an object of version 1.5 whose name changed in | ||
version 2.0 and is now deprecated. | ||
The new name of the correct object to use is given. | ||
""" | ||
|
||
def __init__(self, *_, **__) -> None: | ||
"""Simply raises the exception when instantiating the object.""" | ||
|
||
super().__init__() | ||
|
||
raise NotImplementedError(f"The {type(self).__name__} Block was renamed " | ||
f"to DICVE in version 2.0.0 ! " | ||
f"Check the documentation for more information.") | ||
|
||
|
||
class Drawing(Block): | ||
"""Empty class for signaling an object of version 1.5 whose name changed in | ||
version 2.0 and is now deprecated. | ||
The new name of the correct object to use is given. | ||
""" | ||
|
||
def __init__(self, *_, **__) -> None: | ||
"""Simply raises the exception when instantiating the object.""" | ||
|
||
super().__init__() | ||
|
||
raise NotImplementedError(f"The {type(self).__name__} Block was renamed " | ||
f"to Canvas in version 2.0.0 ! " | ||
f"Check the documentation for more information.") | ||
|
||
|
||
class Fake_machine(Block): | ||
"""Empty class for signaling an object of version 1.5 whose name changed in | ||
version 2.0 and is now deprecated. | ||
The new name of the correct object to use is given. | ||
""" | ||
|
||
def __init__(self, *_, **__) -> None: | ||
"""Simply raises the exception when instantiating the object.""" | ||
|
||
super().__init__() | ||
|
||
raise NotImplementedError(f"The {type(self).__name__} Block was renamed " | ||
f"to FakeMachine in version 2.0.0 ! " | ||
f"Check the documentation for more information.") | ||
|
||
|
||
class GUI(Block): | ||
"""Empty class for signaling an object of version 1.5 whose name changed in | ||
version 2.0 and is now deprecated. | ||
The new name of the correct object to use is given. | ||
""" | ||
|
||
def __init__(self, *_, **__) -> None: | ||
"""Simply raises the exception when instantiating the object.""" | ||
|
||
super().__init__() | ||
|
||
raise NotImplementedError(f"The {type(self).__name__} Block was renamed " | ||
f"to Button in version 2.0.0 ! " | ||
f"Check the documentation for more information.") | ||
|
||
|
||
class Hdf_recorder(Block): | ||
"""Empty class for signaling an object of version 1.5 whose name changed in | ||
version 2.0 and is now deprecated. | ||
The new name of the correct object to use is given. | ||
""" | ||
|
||
def __init__(self, *_, **__) -> None: | ||
"""Simply raises the exception when instantiating the object.""" | ||
|
||
super().__init__() | ||
|
||
raise NotImplementedError(f"The {type(self).__name__} Block was renamed " | ||
f"to HDFRecorder in version 2.0.0 ! " | ||
f"Check the documentation for more information.") | ||
|
||
|
||
class Mean_block(Block): | ||
"""Empty class for signaling an object of version 1.5 whose name changed in | ||
version 2.0 and is now deprecated. | ||
The new name of the correct object to use is given. | ||
""" | ||
|
||
def __init__(self, *_, **__) -> None: | ||
"""Simply raises the exception when instantiating the object.""" | ||
|
||
super().__init__() | ||
|
||
raise NotImplementedError(f"The {type(self).__name__} Block was renamed " | ||
f"to MeanBlock in version 2.0.0 ! " | ||
f"Check the documentation for more information.") | ||
|
||
|
||
class Multiplex(Block): | ||
"""Empty class for signaling an object of version 1.5 whose name changed in | ||
version 2.0 and is now deprecated. | ||
The new name of the correct object to use is given. | ||
""" | ||
|
||
def __init__(self, *_, **__) -> None: | ||
"""Simply raises the exception when instantiating the object.""" | ||
|
||
super().__init__() | ||
|
||
raise NotImplementedError(f"The {type(self).__name__} Block was renamed " | ||
f"to Multiplexer in version 2.0.0 ! " | ||
f"Check the documentation for more information.") | ||
|
||
|
||
class Reader(Block): | ||
"""Empty class for signaling an object of version 1.5 whose name changed in | ||
version 2.0 and is now deprecated. | ||
The new name of the correct object to use is given. | ||
""" | ||
|
||
def __init__(self, *_, **__) -> None: | ||
"""Simply raises the exception when instantiating the object.""" | ||
|
||
super().__init__() | ||
|
||
raise NotImplementedError(f"The {type(self).__name__} Block was renamed " | ||
f"to LinkReader in version 2.0.0 ! " | ||
f"Check the documentation for more information.") | ||
|
||
|
||
class Video_extenso(Block): | ||
"""Empty class for signaling an object of version 1.5 whose name changed in | ||
version 2.0 and is now deprecated. | ||
The new name of the correct object to use is given. | ||
""" | ||
|
||
def __init__(self, *_, **__) -> None: | ||
"""Simply raises the exception when instantiating the object.""" | ||
|
||
super().__init__() | ||
|
||
raise NotImplementedError(f"The {type(self).__name__} Block was renamed " | ||
f"to VideoExtenso in version 2.0.0 ! " | ||
f"Check the documentation for more information.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# coding: utf-8 | ||
|
||
deprecated_cameras = {'Bispectral': 'BiSpectral', | ||
'Cl_camera': 'BaslerIronmanCameraLink', | ||
'Fake_camera': 'FakeCamera', | ||
'File_reader': 'FileReader', | ||
'Camera_gstreamer': 'CameraGstreamer', | ||
'Jai8': 'JaiGO5000CPMCL8Bits', | ||
'Jai': 'JaiGO5000CPMCL', | ||
'Camera_opencv': 'CameraOpencv', | ||
'Picamera': 'RaspberryPiCamera', | ||
'Seek_thermal_pro': 'SeekThermalPro', | ||
'Xiapi': 'XiAPI'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# coding: utf-8 | ||
|
||
deprecated_inouts = {'Ads1115': 'ADS1115', | ||
'Daqmx': 'DAQmx', | ||
'Fake_inout': 'FakeInOut', | ||
'Gpio_pwm': 'GPIOPWM', | ||
'Gpio_switch': 'GPIOSwitch', | ||
'Gsm': 'Sim868', | ||
'Koll': 'KollmorgenAKDPDMM', | ||
'Labjack_t7': 'LabjackT7', | ||
'Labjack_ue9': 'LabjackUE9', | ||
'Mcp9600': 'MCP9600', | ||
'Mprls': 'MPRLS', | ||
'Nau7802': 'NAU7802', | ||
'Nidaqmx': 'NIDAQmx', | ||
'Opsens': 'HandySens', | ||
'Pijuice': 'PiJuice', | ||
'Spectrum': 'SpectrumM2I4711', | ||
'T7_streamer': 'T7Streamer', | ||
'Waveshare_ad_da': 'WaveshareADDA', | ||
'Waveshare_high_precision': 'WaveshareHighPrecision'} |