Module Expr Str Assign NameStore Str ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Dict NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index Num keyword ListLoad Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Dict NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Dict AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Dict NameLoad NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list
N/A N/A 
   Copyright 2015 Ricardo Tubio-Pardavila

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 N/A __author__ rtubiopa@calpoly.edu django.forms.models model_to_dict services.configuration.jrpc.serializers channels channel_serializers services.configuration.jrpc.serializers segments segment_serializers N/A GS_OBJECT_K GroundStation N/A GS_CHANNEL_OBJECT_K GsChannel N/A SC_CHANNEL_OBJECT_K ScChannel N/A COMPATIBILITY_OBJECT_K Compatibility serialize_gs_ch_compatibility_tuples N/A N/A gs_ch_list N/A N/A N/A JSON serializer
    Serializes a list with the tuples of Ground Station and Ground Station
    channels.
    :param gs_ch_list: List with the tuples to be serialized
    :return: List with the tuples gs, gs_ch in JSON format
     N/A result N/A N/A t gs_ch_list N/A N/A N/A N/A result append N/A GS_OBJECT_K GS_CHANNEL_OBJECT_K N/A model_to_dict N/A t N/A 0 fields N/A identifier N/A N/A channel_serializers serialize_gs_channel N/A t N/A 1 N/A result N/A serialize_sc_ch_compatibility N/A N/A spacecraft_ch compatibility N/A N/A N/A JSON serializer
    Serializes the compatibility of all the spacecraft channels.
    :param spacecraft_ch: channel of the spacecraft to be serialized
    :param compatibility: compatibility tuples (gs, gs_ch)
    :return: object with the {sc_ch, [(gs, gs_ch)]}
     N/A N/A SC_CHANNEL_OBJECT_K COMPATIBILITY_OBJECT_K N/A N/A channel_serializers serialize_sc_channel spacecraft_ch compatibility N/A serialize_sc_compatibility N/A N/A spacecraft compatibility N/A N/A N/A JSON serializer
    Serializes the compatibility object for all the channels of a given
    spacecraft together with the configuration of the spacecraft itself.

    :param spacecraft: The spacecraft object
    :param compatibility: The compatibility object
    :return: Object with the spacecraft and the compatibility
     N/A N/A N/A segment_serializers SC_ID_K COMPATIBILITY_OBJECT_K N/A spacecraft identifier compatibility N/A serialize_segment_compatibility N/A N/A compatibility N/A N/A N/A JSON serializer
    Serializes the list of compatibility objects provided, returning the
    simple identifiers of the compatible channels.
    :param compatibility: List with the compatible channels.
    :return: List with the provided compatible channels
     N/A results N/A N/A c compatibility N/A N/A N/A N/A results append N/A SC_CHANNEL_OBJECT_K GS_CHANNEL_OBJECT_K N/A N/A channel_serializers serialize_sc_channel N/A c spacecraft_channel N/A N/A channel_serializers serialize_gs_channel N/A c groundstation_channel N/A results N/A