From e22daa7d3901f2dbea1755392039f3a655457af0 Mon Sep 17 00:00:00 2001 From: acs-ws Date: Tue, 19 Jul 2022 08:58:58 -0700 Subject: [PATCH 1/2] initial commit --- copylot/hardware/laser/__init__.py | 0 copylot/hardware/laser/laser.py | 26 ++++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 copylot/hardware/laser/__init__.py create mode 100644 copylot/hardware/laser/laser.py diff --git a/copylot/hardware/laser/__init__.py b/copylot/hardware/laser/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/copylot/hardware/laser/laser.py b/copylot/hardware/laser/laser.py new file mode 100644 index 00000000..83c74434 --- /dev/null +++ b/copylot/hardware/laser/laser.py @@ -0,0 +1,26 @@ + + +class Laser: + def __init__(self, wavelength: int = 488, power: int = 0.15): + self._wavelength = wavelength + self._power = power + + @property + def wavelength(self): + return self._wavelength + + @wavelength.setter + def wavelength(self, wavelength: int): + raise NotImplementedError + + @property + def power(self): + return self._power + + @power.setter + def power(self, power: int): + self._power = power + + @property + def timelapse_array(self): + return None From 4b9109e72f947f78212440cf640ae0272a2cc94c Mon Sep 17 00:00:00 2001 From: acs-ws Date: Tue, 19 Jul 2022 08:59:40 -0700 Subject: [PATCH 2/2] initial commit --- copylot/hardware/laser/laser.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/copylot/hardware/laser/laser.py b/copylot/hardware/laser/laser.py index 83c74434..4ecc36d4 100644 --- a/copylot/hardware/laser/laser.py +++ b/copylot/hardware/laser/laser.py @@ -1,5 +1,3 @@ - - class Laser: def __init__(self, wavelength: int = 488, power: int = 0.15): self._wavelength = wavelength