<commit_before># -*- coding: utf-8 -*-

import unittest
import Orbitcalc
import radio

class testmain(unittest.TestCase):

    def testradioIC910(self):
        IC910 = radio.Radio("IC910","Sub","CW")
        IC910.connect("0")
        #print radio.getfreq()
        #radio.getmode()
        IC910.chengefreq(437.4801)
        #print "Sub FM"
        #radio.chengemode("Sub","FM")
        #print "Sub CW"
        #radio.chengemode("Sub","CW")
        #print "Main FM"
        #radio.chengemode("Main","FM")
        #print "Main CW"
        #radio.chengemode("Main","CW")
        IC910.close()

    def testorbit(self):
        orbitinfo = Orbitcalc.Orbitcalc(gslat='43', gslon='141', gselev='50')
        orbitinfo.SatInfo('iss',
                      '1 99999U          13323.51230604  .00000000  00000-0  00000-0 0 00001',
                      '2 99999 051.5826 058.9447 0003029 020.0291 190.6000 15.51011028000098',
                      '437.234', 'FM')
        satlat, satlon, satfreq = orbitinfo.CalcObserve()
        print satlat
        print satlon
        print satfreq

unittest.main()<commit_msg>bugfix Radio.py<commit_after># -*- coding: utf-8 -*-

import unittest
import Orbitcalc
import Radio

class testmain(unittest.TestCase):

    def testorbit(self):
        orbitinfo = Orbitcalc.Orbitcalc(gslat='43', gslon='141', gselev='50')
        orbitinfo.SatInfo('iss',
                      '1 99999U          13323.51230604  .00000000  00000-0  00000-0 0 00001',
                      '2 99999 051.5826 058.9447 0003029 020.0291 190.6000 15.51011028000098',
                      '437.234', 'FM')
        satlat, satlon, satfreq = orbitinfo.CalcObserve()
        print satlat
        print satlon
        print satfreq

    def testradioIC910(self):
        radio = Radio.Radio("IC910","Sub","CW")
        radio.connect("0")
        #print radio.getfreq()
        #radio.getmode()
        radio.chengefreq(437.4801)
        #print "Sub FM"
        #radio.chengemode("Sub","FM")
        #print "Sub CW"
        #radio.chengemode("Sub","CW")
        #print "Main FM"
        #radio.chengemode("Main","FM")
        #print "Main CW"
        #radio.chengemode("Main","CW")
        radio.close()
unittest.main()
{'fraction_non_alphanumeric': 0.13835060838215413, 'fraction_numerical': 0.12257773771969356, 'mean_word_length': 2.0833333333333335, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '384499', 'n_tokens_mistral': 926, 'n_tokens_neox': 723, 'n_words': 146}