Esempio n. 1
0
def _get_bestbeam(request, locations):
    try:
        beams_file = os.path.join(settings.PROJECT_ROOT, 'tests', 'pseudobeams.csv')
        beamsfile = open(beams_file)
        return best_beams(locations, beamsfile)
    except Exception:
        messages.add_message(request, messages.ERROR, str("Core Exception"))
        return HttpResponse(status=500)          
Esempio n. 2
0
def _get_bestbeam(request, locations):
    try:
        beams_file = os.path.join(settings.PROJECT_ROOT, 'tests',
                                  'pseudobeams.csv')
        beamsfile = open(beams_file)
        return best_beams(locations, beamsfile)
    except Exception:
        messages.add_message(request, messages.ERROR, str("Core Exception"))
        return HttpResponse(status=500)
Esempio n. 3
0
 def test_best_beam(self):
     beamsfile = open("pseudobeams.csv", "r")
     ret = best_beams("10.0, 12.3, 2013-01-01", beamsfile)
     print(ret)
     self.assertTrue(True, "Error loading tle")
Esempio n. 4
0
 def test_best_beam(self):
     beamsfile = open('pseudobeams.csv', 'r')
     ret = best_beams("10.0, 12.3, 2013-01-01", beamsfile)
     print(ret)
     self.assertTrue(True, "Error loading tle")