Changeset 409

Show
Ignore:
Timestamp:
08/03/09 09:15:45 (15 years ago)
Author:
trnewman
Message:

Adding proper license and copyright info

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vtcross/trunk/src/cognitive_engines/DSA_CE/examples/gnuradio-examples/benchmark_dsa.py

    r408 r409  
    11#!/usr/bin/env python 
    2 #Transmission and reception, one ata a time on the same antena 
     2# 
     3# Copyright 2005,2006,2007,2009 Free Software Foundation, Inc. 
     4# 
     5# Copyright 2009 Virginia Polytechnic Institute and State University  
     6#  
     7# This file is part of GNU Radio 
     8#  
     9# GNU Radio is free software; you can redistribute it and/or modify 
     10# it under the terms of the GNU General Public License as published by 
     11# the Free Software Foundation; either version 3, or (at your option) 
     12# any later version. 
     13#  
     14# GNU Radio is distributed in the hope that it will be useful, 
     15# but WITHOUT ANY WARRANTY; without even the implied warranty of 
     16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     17# GNU General Public License for more details. 
     18#  
     19# You should have received a copy of the GNU General Public License 
     20# along with GNU Radio; see the file COPYING.  If not, write to 
     21# the Free Software Foundation, Inc., 51 Franklin Street, 
     22# Boston, MA 02110-1301, USA. 
     23#  
    324 
    425from gnuradio import gr, gru, modulation_utils 
     
    108129                        # If time == 0 then we are scanning and we dont want to  
    109130                        #  use this time in the averaging process. 
    110  
    111131                        if absent_time != 0: 
    112                                 UpdateParameterPerformance(currentParameters,1,o,1) 
    113  
     132                                try: 
     133                                        UpdateParameterPerformance(currentParameters,1,o,1) 
     134                                except: 
     135                                        print "fail" 
    114136                        else: 
    115137                                # Get the average communication time 
     
    117139                                o[1].value = average_time  
    118140                                o[1].name = "communication_time" 
    119                                 UpdateParameterPerformance(currentParameters,1,o,2) 
     141                                try: 
     142                                        UpdateParameterPerformance(currentParameters,1,o,2) 
     143                                except: 
     144                                        print "fail" 
    120145 
    121146                        p = Parameter(1)