AgentImagesProcessor_tnc_up1.py 768 Bytes
import sys

sys.path.append("..")
sys.path.append("../../../..")


from src.core.pyros_django.observation_manager.AgentImagesProcessor import AgentImagesProcessor
from src.core.pyros_django.agent.Agent import build_agent
class AgentImagesProcessor_tnc_up1(AgentImagesProcessor):

    def bias_correction(self):

        # - Search the bias
        log.info("TOTO")
        path_bias = os.path.join( self._paths['ima_bias'], self._date_night )
        fitsbiasfiles = glob.glob(f"{path_bias}/*.fit")
        log.info(f"fitsbiasfiles = {fitsbiasfiles}")
        if len(fitsbiasfiles) > 0:
        
            # - Select the bias
            pass

if __name__ == "__main__":

    agent = build_agent(AgentImagesProcessor_tnc_up1)
    agent.run()