ramanbase.py 2.13 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
# -*- coding: utf-8 -*-
"""
GEPARD - Gepard-Enabled PARticle Detection
Copyright (C) 2018  Lars Bittrich and Josef Brandt, Leibniz-Institut für 
Polymerforschung Dresden e. V. <bittrich-lars@ipfdd.de>    

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program, see COPYING.  
If not, see <https://www.gnu.org/licenses/>.
"""

class RamanBase(object): 
    def __init__(self):
        self.connected = False
        self.timeseries = False
       
    def getRamanPositionShift(self):
        """ Compute the shift between laser spot and image center"""
        raise NotImplementedError
        
    def connect(self):
        self.connected = True
        return True
    
    def disconnect(self):
        self.connected = False
    
    def getPosition(self):
        raise NotImplementedError
    
    def getSoftwareZ(self):
        raise NotImplementedError
    
    def getUserZ(self):
        raise NotImplementedError
        
    def moveToAbsolutePosition(self, x, y, z=None, epsxy=0.11, epsz=0.011):
        raise NotImplementedError
        
    def moveZto(self, z, epsz=0.011):
        raise NotImplementedError
        
    def saveImage(self, fname):
        raise NotImplementedError
        
    def getImageDimensions(self):
        """ Get the image width and height in um and the orientation angle in degrees.
        """
        raise NotImplementedError
    
    def startSinglePointScan(self):
        raise NotImplementedError
        
    def initiateTimeSeriesScan(self, label, numberofscans, accumulations, integrtime):
        raise NotImplementedError
        
    def nextTimeSeriesScan(self, num):
        raise NotImplementedError