Exemplo n.º 1
0
 def load(self):
     camerainterface.load()
     camerainterface.getInterfaceNames()
     self.persFacade.loadcameraconfigurations()
     self.persFacade.loadAdapters()
     self.persFacade.loadTelescopes()
     self.persFacade.loadopticalsystems()
     self.persFacade.loadprojects()
     for cameraconfiguration in self.persFacade.configdict.values():
         self.cameraconfigurations.append(cameraconfiguration)
     for project in self.persFacade.projectdict.values():
         self.projectList.append(project)
     for adapter in self.persFacade.adapterdict.values():
         self.adapterList.append(adapter)
     for telescope in self.persFacade.telescopedict.values():
         self.telescopeList.append(telescope)
Exemplo n.º 2
0
from astrophoto import workflow
from astrophoto import camerainterface

filelist = glob.glob("*.db")
for f in filelist:
    os.remove(f)

shutil.rmtree('jupiter')

pf = workflow.PersistenceFacade()

project = workflow.Project('jupiter')
pf.persistproject(project)


camerainterface.getInterfaceNames()
cam = camerainterface.Camera()
cam.formats = ['RGB Bayer']
config = workflow.CameraConfiguration('the imaging source 2012', cam)
config.interface = 'The Imaging Source'
config.initImageTypes()
project.cameraconfiguration = config

pf.persistcameraconfiguration(config, project)

nrOfShots = 3
duration = 3
shotdesc = workflow.createShotdescription(nrOfShots, duration, project, 'RAW Bayer')
pf.persistshotdescription(shotdesc, project)

pf.configdict = {}
Exemplo n.º 3
0
 def getInterfaceNames(self):
     return camerainterface.getInterfaceNames()