Code Duplication    Length = 10-10 lines in 2 locations

aacgmv2/tests/test_py_aacgmv2.py 2 locations

@@ 346-355 (lines=10) @@
343
        np.testing.assert_allclose(self.lon_out, [83.30272053], rtol=1e-4)
344
        np.testing.assert_allclose(self.r_out, [1.46944431], rtol=1e-4)
345
346
    def test_convert_latlon_arr_badidea_trace(self):
347
        """Test array latlon conversion for BADIDEA with trace"""
348
        code = "G2A | BADIDEA | TRACE"
349
        (self.lat_out, self.lon_out,
350
         self.r_out) = aacgmv2.convert_latlon_arr([60], [0], [7000],
351
                                                  self.dtime, code)
352
353
        np.testing.assert_allclose(self.lat_out, [69.317391], rtol=1e-4)
354
        np.testing.assert_allclose(self.lon_out, [85.099499], rtol=1e-4)
355
        np.testing.assert_allclose(self.r_out, [2.09726], rtol=1e-4)
356
357
    def test_convert_latlon_arr_location_failure(self):
358
        """Test array latlon conversion with a bad location"""
@@ 335-344 (lines=10) @@
332
                                    [1.04551548, 1.04546847, 1.04542272]],
333
                                   rtol=1e-4)
334
335
    def test_convert_latlon_arr_badidea(self):
336
        """Test array latlon conversion for BADIDEA"""
337
        code = "G2A | BADIDEA"
338
        (self.lat_out, self.lon_out,
339
         self.r_out) = aacgmv2.convert_latlon_arr([60], [0], [3000],
340
                                                  self.dtime, code)
341
342
        np.testing.assert_allclose(self.lat_out, [64.35677791], rtol=1e-4)
343
        np.testing.assert_allclose(self.lon_out, [83.30272053], rtol=1e-4)
344
        np.testing.assert_allclose(self.r_out, [1.46944431], rtol=1e-4)
345
346
    def test_convert_latlon_arr_badidea_trace(self):
347
        """Test array latlon conversion for BADIDEA with trace"""