コード例 #1
0
ファイル: control.py プロジェクト: jmccormack200/SDR
    def __init__(self, options, title="Hydra Control GUI", **kwargs):
        # check for default options before continuing with constructor
        default_control_setup.check_options(options)
        self.verbose = options.verbose
        self.options = options

        self.phy = None
        self.mpif = None
        self.constellation = None
        self.channel = None
        window.__init__(self, title=title, **kwargs)
コード例 #2
0
    def __init__(self, center, width, ref_center=None, ref_width=None, time=None, periodic_length = None, max_list_size=100, initial_conditions=[], initial_conditions_probability=0.0, a=0.0):
        """
        Create and instance of the pyramid at a center, given a width in each dimension.
        """

        # call parent constructor
        window.__init__(self, center, width, ref_center=ref_center, ref_width=ref_width, time=time, periodic_length = periodic_length, max_list_size=max_list_size, initial_conditions=initial_conditions, initial_conditions_probability=initial_conditions_probability, a=a)

        # We calculate the slope of the pyramid.
        self.slopes = 1.0/self.width

        return None
コード例 #3
0
ファイル: constellation.py プロジェクト: jmccormack200/SDR
 def __init__(self, title="Hydra Constellation", **kwargs):
     self.nplot = 0
     self.plot = []  # contains pointer to plot
     window.__init__(self, title=title, **kwargs)
コード例 #4
0
ファイル: address.py プロジェクト: jmccormack200/SDR
 def __init__(self, client, title="Address Client GUI", **kwargs):
     self.client = client
     self.addrlist = []
     window.__init__(self, title=title, **kwargs)