Module Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Call AttributeLoad Call NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Str Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Slice Num Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad Call NameLoad attr attr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults BinOpMult Num AttributeLoad NameLoad attr NameLoad kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpMult NameLoad AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Str Str Call AttributeLoad Str attr Call NameLoad AttributeLoad NameLoad attr Str Str Str Call AttributeLoad Str attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list decorator_list
N/A N/A os astropy units u camera AbstractGPhotoCamera utils error utils current_time Camera N/A AbstractGPhotoCamera N/A __init__ N/A N/A self config N/A kwargs N/A N/A N/A N/A N/A super __init__ config kwargs N/A N/A N/A N/A self logger debug Initializing GPhoto2 camera N/A connect N/A N/A self N/A N/A N/A 
        For Canon DSLRs using gphoto2, this just means confirming that there is
        a camera on that port and that we can communicate with it.
         N/A N/A N/A N/A self logger debug Connecting to camera N/A N/A N/A self set_property /main/actions/viewfinder 0 N/A N/A N/A self set_property /main/settings/autopoweroff 0 N/A N/A N/A self set_property /main/settings/reviewtime 0 N/A N/A N/A self set_property /main/settings/capturetarget 0 N/A N/A N/A self set_property /main/settings/artist "Project PANOPTES" N/A N/A N/A self set_property /main/settings/ownername "Project PANOPTES" N/A N/A N/A self set_property /main/settings/copyright "Project PANOPTES 2016" N/A N/A N/A self set_property /main/imgsettings/imageformat 9 N/A N/A N/A self set_property /main/imgsettings/imageformatsd 9 N/A N/A N/A self set_property /main/imgsettings/imageformatcf 9 N/A N/A N/A self set_property /main/imgsettings/iso 1 N/A N/A N/A self set_property /main/capturesettings/focusmode 0 N/A N/A N/A self set_property /main/capturesettings/continuousaf 0 N/A N/A N/A self set_property /main/capturesettings/autoexposuremode 3 N/A N/A N/A self set_property /main/capturesettings/drivemode 0 N/A N/A N/A self set_property /main/capturesettings/shutterspeed 0 N/A N/A N/A self set_property /main/actions/syncdatetime 1 N/A N/A N/A self set_property /main/actions/uilock 1 N/A N/A self _serial_number N/A N/A self get_property serialnumber N/A N/A self _connected True N/A uid N/A N/A self N/A N/A N/A N/A N/A self _serial_number N/A 0 6 N/A property construct_filename N/A N/A self N/A N/A N/A 
        Use the filename_pattern from the camera config file to construct the
        filename for an image from this camera

        Returns:
            str:    Filename format
         N/A now N/A N/A N/A N/A current_time datetime strftime %Y/%m/%dT%H%M%S N/A N/A date time N/A N/A now split T N/A filename N/A N/A N/A os path join N/A self _image_dir N/A self _serial_number date N/A N/A {}.cr2 format time N/A filename N/A is_connected N/A N/A self N/A N/A N/A  Is the camera available vai gphoto2  N/A N/A self _connected N/A property take_exposure N/A N/A self seconds filename N/A N/A 1.0 N/A u second None kwargs N/A N/A  Take an exposure for given number of seconds


        Note:
            `gphoto2 --wait-event=2s
                --set-config eosremoterelease=2
                --wait-event=10s
                --set-config eosremoterelease=4
                --wait-event-and-download=5s`

            Tested With:
                * Canon EOS 100D

        Args:
            seconds(float):     Exposure time, defaults to 0.05 seconds
         N/A N/A N/A N/A self logger debug N/A N/A Taking {} second exposure on {} format seconds N/A self name N/A N/A N/A isinstance seconds N/A u Quantity N/A N/A seconds N/A seconds N/A u second N/A N/A filename None N/A N/A filename N/A N/A self construct_filename N/A cmd N/A --set-config eosremoterelease=Immediate N/A N/A --wait-event={:d}s format N/A int N/A seconds value --set-config eosremoterelease=4 --wait-event-and-download=1s N/A N/A --filename={:s} format filename N/A N/A N/A N/A N/A self command cmd N/A N/A N/A N/A error InvalidCommand N/A e N/A N/A N/A N/A N/A self logger warning e N/A filename N/A N/A