Skip to content

Commit 9c0063c

Browse files
Ian Dobbiemickp
authored andcommitted
Fixed cycle time function and removed redundent import time
1 parent 1cf0fbf commit 9c0063c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

microscope/cameras/ximea.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
## You should have received a copy of the GNU General Public License
2020
## along with Microscope. If not, see <http://www.gnu.org/licenses/>.
2121

22-
import time
23-
2422
import Pyro4
2523
import numpy as np
2624

@@ -116,7 +114,7 @@ def get_exposure_time(self):
116114
return (self.handle.get_exposure()*1.0E-6)
117115

118116
def get_cycle_time(self):
119-
return (self.handle.get_exposure()*1.0E-6)
117+
return (1.0/self.handle.get_framerate())
120118

121119
def _get_sensor_shape(self):
122120
return (self.img.width,self.image.height)

0 commit comments

Comments
 (0)