Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias identifier ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr ListComp NameLoad comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Print BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr With AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareNotIn NameLoad TupleLoad Str Str body Return Str Expr Call AttributeLoad NameLoad attr With AttributeLoad NameLoad attr body With AttributeLoad NameLoad attr body If CompareEq NameLoad Str body For NameStore AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad orelse Return BinOpMod Str AttributeLoad NameLoad attr If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str TryExcept body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad SubscriptLoad NameLoad Slice Call NameLoad Str orelse Assign NameStore Num handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Assign NameStore Num With AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad TryExcept body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Str attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Return BinOpMod Str NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return BinOpMod Str Call NameLoad BinOpSub Call AttributeLoad NameLoad attr Num TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Return BinOpMod Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Return BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad Str attr NameLoad handlers ExceptHandler body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Dict For NameStore AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad ListLoad Return NameLoad Assign NameStore Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore ListLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args TupleStore NameStore NameStore TupleStore NameStore NameStore defaults Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return Expr Call AttributeLoad NameLoad attr Str While NameLoad body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpSub Num AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse Assign NameStore BinOpAdd BinOpMult Num BinOpSub Num AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Dict Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIsNot NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index BinOpMod Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Call NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index BinOpMod Str NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index BinOpMod Str NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index BinOpMod Str NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list Call NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Call AttributeLoad NameLoad attr NameLoad NameLoad If AttributeLoad NameLoad attr body Print Str NameLoad Return NameLoad decorator_list Call NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Return Str decorator_list Call NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body If Call AttributeLoad NameLoad attr Str body Return Call AttributeLoad AttributeLoad NameLoad attr attr If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Return BinOpMod Str NameLoad orelse If AttributeLoad NameLoad attr body Print BinOpMod Str TupleLoad NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad AttributeLoad NameLoad attr attr If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Return Str decorator_list Call NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return Str decorator_list Call NameLoad AttributeLoad NameLoad attr decorator_list
N/A N/A os N/A re N/A sys N/A json N/A random N/A urllib2 N/A datetime N/A threading N/A traceback N/A time N/A weblab.experiment.concurrent_experiment ConcurrentExperiment voodoo.override Override N/A WEBCAMS_INFO webcams_info N/A CONTROLLER_ADDRESS controller_address N/A HISTORIC_DIRECTORY historic_directory N/A LIGHT_BOOTSTRAPPING_TIME light_bootstrapping_time N/A PUBLIC_PATH public_path N/A FAKE_CONTROLLER fake_controller N/A VERBOSE_CONTROLLER verbose_controller N/A FAKE_NEXT_HOUR fake_next_hour StatusManager N/A N/A threading Thread N/A N/A  StatusManager interacts with the Controller. Duties:
    - Validate and process requests (turn_light)
    - Every fixed time, take a picture of the eggs and store it.
     __init__ N/A N/A self cfg_manager webcams_urls N/A N/A N/A 
        Initialize the StatusManager. webcams_urls is a dictionary such as:
        [ ('1', 'http://.../image.jpg'), ('2', 'http://.../image.jpg') ... ]
         N/A N/A N/A N/A threading Thread __init__ self N/A N/A N/A self setDaemon True N/A N/A N/A self setName IncubatorStatusManager N/A N/A self _address N/A N/A cfg_manager get_value CONTROLLER_ADDRESS N/A N/A self _light_time N/A N/A cfg_manager get_value LIGHT_BOOTSTRAPPING_TIME 3 N/A N/A self _dir N/A N/A cfg_manager get_value HISTORIC_DIRECTORY None N/A N/A self _public_path N/A N/A cfg_manager get_value PUBLIC_PATH http://localhost/incubator_historic/ N/A N/A self _fake N/A N/A cfg_manager get_value FAKE_CONTROLLER False N/A N/A self _verbose N/A N/A cfg_manager get_value VERBOSE_CONTROLLER False N/A N/A self _fake_next_hour N/A N/A cfg_manager get_value FAKE_NEXT_HOUR False N/A N/A self _webcams_urls webcams_urls N/A N/A self _lights N/A len webcams_urls N/A N/A self _opener N/A N/A urllib2 build_opener N/A N/A urllib2 ProxyHandler N/A N/A N/A self _status N/A N/A N/A self _all_lights N/A light N/A N/A light webcam_url N/A self _webcams_urls N/A light N/A self _all_lights N/A N/A N/A N/A self _status N/A light off N/A N/A self _file_regex N/A N/A re compile \d\d*_\d\d* N/A N/A N/A self _status N/A temp -100.0 N/A N/A self _status_lock N/A N/A threading Lock N/A N/A self _operations_lock N/A N/A threading Lock N/A N/A N/A self turn_light all off N/A N/A N/A self dbg StatusManager initialized N/A dbg N/A N/A self msg N/A N/A N/A N/A self _verbose N/A N/A N/A [incubator] %s msg N/A N/A N/A N/A sys stdout flush N/A get_status_str N/A N/A self N/A N/A N/A N/A N/A self update_temperature N/A N/A self _status_lock N/A N/A N/A N/A json dumps N/A self _status N/A turn_light N/A N/A self number new_status N/A N/A N/A 
        Turn a particular light (number = '1') or all the lights (number = 'all') on or off.
        If a string is returned, an error has ocurred and the error message may be logged and
        even returned. If None is returned, everything was fine.
         N/A N/A new_status N/A on off N/A N/A Wrong status! N/A N/A N/A self update_temperature N/A N/A self _operations_lock N/A N/A N/A self _status_lock N/A N/A N/A number all N/A N/A light N/A self _all_lights N/A N/A N/A N/A self _status N/A light new_status N/A N/A N/A number N/A self _all_lights N/A N/A N/A N/A self _status N/A number new_status N/A N/A N/A Wrong number! (use "all" or 1-%s N/A self _lights N/A N/A number all N/A N/A N/A N/A self _perform_post_request N/A /EGGS%s N/A N/A new_status upper N/A N/A N/A N/A self _perform_post_request N/A /EGG/%s/value/%s N/A number new_status N/A update_temperature N/A N/A self N/A N/A N/A temperature_str N/A N/A self _perform_get_request /TEMP N/A N/A N/A N/A N/A temperature_str startswith OK: N/A N/A temperature N/A float N/A temperature_str N/A N/A len OK: N/A N/A temperature -500 N/A N/A N/A N/A N/A N/A traceback print_exc N/A temperature -1000 N/A N/A self _status_lock N/A N/A N/A N/A self _status N/A temp temperature N/A _perform_post_request N/A N/A self location N/A N/A N/A 
        Encapsulate the communication with the raspberry. Make fakes possible.
         N/A url N/A http://%s%s N/A N/A self _address location N/A N/A N/A self dbg N/A %s: Performing POST request to: %s N/A N/A N/A N/A N/A N/A datetime datetime now strftime %d-%m-%Y %H:%M:%S.%f url N/A N/A self _fake N/A N/A N/A N/A self dbg N/A Request to %s faked location N/A None N/A N/A N/A N/A N/A N/A N/A N/A self _opener open url data read N/A N/A N/A Exception N/A e N/A N/A N/A N/A traceback print_exc N/A N/A Error: %s e N/A N/A None N/A _perform_get_request N/A N/A self location N/A N/A N/A 
        Encapsulate the communication with the raspberry. Make fakes possible.
         N/A url N/A http://%s%s N/A N/A self _address location N/A N/A N/A self dbg N/A %s: Performing GET request to: %s N/A N/A N/A N/A N/A N/A datetime datetime now strftime %d-%m-%Y %H:%M:%S.%f url N/A N/A self _fake N/A N/A N/A N/A self dbg N/A Request to %s faked location N/A N/A OK:%s N/A str N/A N/A N/A random random 100 N/A N/A N/A response N/A N/A N/A N/A N/A self _opener open url read N/A N/A OK:%s response N/A N/A N/A Exception N/A e N/A N/A N/A N/A traceback print_exc N/A N/A Error: %s e N/A _store_picture N/A N/A self N/A N/A N/A now N/A N/A N/A datetime datetime now N/A year_dir N/A N/A N/A os path join N/A self _dir N/A str N/A now year N/A N/A N/A N/A N/A os path exists year_dir N/A N/A N/A N/A os mkdir year_dir N/A month_dir N/A N/A N/A os path join year_dir N/A str N/A now month N/A N/A N/A N/A N/A os path exists month_dir N/A N/A N/A N/A os mkdir month_dir N/A day_dir N/A N/A N/A os path join month_dir N/A str N/A now day N/A N/A N/A N/A N/A os path exists day_dir N/A N/A N/A N/A os mkdir day_dir N/A N/A light webcam_url N/A self _webcams_urls N/A N/A N/A N/A image N/A N/A N/A N/A N/A self _opener open webcam_url read N/A webcam_dir N/A N/A N/A os path join day_dir light N/A N/A N/A N/A N/A os path exists webcam_dir N/A N/A N/A N/A os mkdir webcam_dir N/A image_file_path N/A N/A N/A os path join webcam_dir N/A %s_%s N/A N/A now hour N/A now minute N/A N/A N/A N/A open image_file_path wb write image N/A N/A N/A N/A N/A self _verbose N/A N/A N/A N/A traceback print_exc N/A N/A retrieve_historic N/A N/A self year month day N/A N/A N/A  
        Retrieve a dictionary such as:
        {
            '1' : [ '00:30', '01:00', '01:30', '02:00' ...],
            '2' : [ '00:30', '01:30', '02:00' ...],
            '3' : [ '00:30', '01:00', '01:30', '02:00' ...],
        }

        Where camera number 2 does not have any measurement at 01:00 (due to a 
        webcam error, or network error, etc.)
         N/A N/A N/A self _dir None N/A N/A data N/A N/A light N/A self _all_lights N/A N/A N/A data N/A light N/A N/A data N/A data N/A N/A day_dir N/A N/A N/A os path join N/A self _dir N/A str year N/A str month N/A str day N/A light N/A self _all_lights N/A N/A webcam_dir N/A N/A N/A os path join day_dir light N/A current_data N/A N/A N/A data N/A light current_data N/A N/A N/A N/A N/A os path exists webcam_dir N/A N/A N/A os path isdir webcam_dir N/A N/A f N/A N/A os listdir webcam_dir N/A N/A full_path N/A N/A N/A os path join webcam_dir f N/A N/A N/A N/A N/A os path isfile full_path N/A N/A N/A self _file_regex match f N/A N/A N/A hours minutes N/A N/A f split _ N/A formatted N/A %s:%s N/A N/A N/A hours zfill 2 N/A N/A minutes zfill 2 N/A public_path N/A %s/%s/%s/%s/%s/%s N/A N/A self _public_path year month day light f N/A N/A N/A current_data append N/A formatted public_path N/A N/A N/A current_data sort N/A N/A N/A N/A x1 x2 N/A y1 y2 N/A N/A cmp x1 y1 N/A data N/A _take_historic N/A N/A self N/A N/A N/A N/A N/A self turn_light all on N/A N/A N/A time sleep N/A self _light_time N/A N/A N/A self dbg Storing picture N/A N/A N/A self _store_picture N/A N/A N/A self turn_light all off N/A run N/A N/A self N/A N/A N/A N/A N/A self _dir None N/A N/A N/A N/A self dbg N/A %s is None HISTORIC_DIRECTORY N/A N/A N/A N/A self dbg Historic thread started N/A True N/A N/A N/A N/A now N/A N/A N/A datetime datetime now N/A next_minute N/A 61 N/A now second N/A N/A self _fake_next_hour N/A N/A next_hour next_minute N/A N/A next_hour N/A N/A 60 N/A 59 N/A now minute next_minute N/A N/A N/A self dbg N/A Sleeping %s seconds next_hour N/A N/A N/A time sleep next_hour N/A N/A N/A self dbg Awake! taking historic data N/A N/A N/A self _take_historic N/A N/A N/A Exception N/A e N/A N/A N/A N/A self dbg N/A There was an error: %s e N/A N/A N/A traceback print_exc N/A N/A IncubatorExperiment N/A N/A ConcurrentExperiment ConcurrentExperiment N/A N/A 
    Incubator experiment. It's a concurrent experiment, so it supports multiple
    students running the laboratory at the very same time. It relies on the 
    StatusManager class for interacting with the raspberry.
     __init__ N/A N/A self coord_address locator cfg_manager N/A args kwargs N/A N/A N/A N/A N/A super IncubatorExperiment self __init__ args kwargs N/A webcams_info N/A N/A cfg_manager get_value WEBCAMS_INFO N/A N/A N/A self _verbose N/A N/A cfg_manager get_value VERBOSE_CONTROLLER False N/A N/A self initial_configuration N/A N/A webcams_urls N/A N/A N/A pos webcam_config N/A enumerate webcams_info N/A N/A num N/A pos 1 N/A webcam_url N/A N/A webcam_config get webcam_url N/A mjpeg_url N/A N/A webcam_config get mjpeg_url N/A mjpeg_width N/A N/A webcam_config get mjpeg_width N/A mjpeg_height N/A N/A webcam_config get mjpeg_height N/A N/A webcam_url None N/A N/A N/A N/A self initial_configuration N/A N/A webcam%s num webcam_url N/A N/A N/A webcams_urls append N/A N/A str num webcam_url N/A N/A mjpeg_url None N/A N/A N/A N/A self initial_configuration N/A N/A mjpeg%s num mjpeg_url N/A N/A mjpeg_width None N/A N/A N/A N/A self initial_configuration N/A N/A mjpegWidth%s num mjpeg_width N/A N/A mjpeg_height None N/A N/A N/A N/A self initial_configuration N/A N/A mjpegHeight%s num mjpeg_height N/A N/A N/A self initial_configuration N/A webcams N/A len webcams_info N/A N/A self _status_manager N/A StatusManager cfg_manager webcams_urls N/A N/A N/A N/A self _status_manager start N/A do_get_api N/A N/A self N/A N/A N/A 2_concurrent N/A N/A Override N/A ConcurrentExperiment ConcurrentExperiment do_start_experiment N/A N/A self lab_session_id serialized_client_initial_data serialized_server_initial_data N/A N/A N/A status_str N/A N/A N/A self _status_manager get_status_str N/A config N/A status N/A N/A json loads status_str N/A N/A N/A config update N/A self initial_configuration N/A config_sent N/A N/A json dumps N/A initial_configuration batch N/A N/A json dumps config False N/A N/A self _verbose N/A N/A Returning configuration: config_sent N/A config_sent N/A N/A Override N/A ConcurrentExperiment ConcurrentExperiment do_dispose N/A N/A self lab_session_id N/A N/A N/A ok N/A N/A Override N/A ConcurrentExperiment ConcurrentExperiment do_send_command_to_device N/A N/A self lab_session_id command N/A N/A N/A N/A N/A command startswith get_status N/A N/A N/A N/A N/A self _status_manager get_status_str N/A N/A N/A command startswith turn: N/A N/A remainder N/A command N/A N/A len turn: N/A regex N/A N/A re compile ([^:]*):(on|off) N/A obj N/A N/A regex match remainder N/A N/A obj None N/A N/A error:Malformed turn: command N/A N/A number new_state N/A N/A obj groups N/A message N/A N/A N/A self _status_manager turn_light number new_state N/A N/A message None N/A N/A N/A error:%s message N/A N/A N/A self _verbose N/A N/A N/A Turning light %s %s succeeded. New status: %s N/A number new_state N/A N/A N/A self _status_manager get_status_str N/A N/A N/A N/A self _status_manager get_status_str N/A N/A N/A command startswith get_historic: N/A N/A remainder N/A command N/A N/A len get_historic: N/A regex N/A N/A re compile (\d*)/(\d*)/(\d*) N/A obj N/A N/A regex match remainder N/A N/A obj None N/A N/A error:Malformed get_historic command N/A N/A year month day N/A N/A obj groups N/A N/A N/A json dumps N/A N/A N/A self _status_manager retrieve_historic year month day N/A Command not found N/A N/A Override N/A ConcurrentExperiment ConcurrentExperiment do_send_file_to_device N/A N/A self lab_session_id content file_info N/A N/A N/A Not implemented N/A N/A Override N/A ConcurrentExperiment ConcurrentExperiment N/A