diff --git a/python/IRBEM/IRBEM.py b/python/IRBEM/IRBEM.py index a8e2aefe..1217c3f8 100644 --- a/python/IRBEM/IRBEM.py +++ b/python/IRBEM/IRBEM.py @@ -329,7 +329,7 @@ def find_mirror_point(self, X, maginput, alpha): Returns ------- dict - A dictionary with "blocal" and "bmin" scalars, and "POSIT" that contains the + A dictionary with "blocal" and "bmirr" scalars, as well as "POSIT" that contains the GEO coordinates of the mirror point. """ a = ctypes.c_double(alpha) @@ -338,7 +338,7 @@ def find_mirror_point(self, X, maginput, alpha): self._prepMagInput(maginput) iyear, idoy, ut, x1, x2, x3 = self._prepTimeLoc(X) - blocal, bmin = [ctypes.c_double(-9999) for i in range(2)] + blocal, bmirr = [ctypes.c_double(-9999) for i in range(2)] positType = (3 * ctypes.c_double) posit = positType() @@ -349,9 +349,9 @@ def find_mirror_point(self, X, maginput, alpha): ctypes.byref(iyear), ctypes.byref(idoy), ctypes.byref(ut), \ ctypes.byref(x1), ctypes.byref(x2), ctypes.byref(x3), \ ctypes.byref(a), ctypes.byref(self.maginput), \ - ctypes.byref(blocal), ctypes.byref(bmin), ctypes.byref(posit)) + ctypes.byref(blocal), ctypes.byref(bmirr), ctypes.byref(posit)) - self.find_mirror_point_output = {'blocal':blocal.value, 'bmin':bmin.value, \ + self.find_mirror_point_output = {'blocal':blocal.value, 'bmirr':bmirr.value, \ 'POSIT':posit[:]} return self.find_mirror_point_output diff --git a/python/IRBEM/test_IRBEM.py b/python/IRBEM/test_IRBEM.py index 335e3b87..ad196394 100644 --- a/python/IRBEM/test_IRBEM.py +++ b/python/IRBEM/test_IRBEM.py @@ -141,7 +141,7 @@ def test_find_mirror_point(self): """ Test find_mirror_point for locally-mirroring electrons. """ - find_mirror_point_true_dict = {'blocal': 42271.69731031445, 'bmin': 42271.69731031445, + find_mirror_point_true_dict = {'blocal': 42271.69731031445, 'bmirr': 42271.69731031445, 'POSIT': [0.35282136776620165, 0.4204761325793738, 0.9448914452448274]} self.model.find_mirror_point(self.X, self.maginput, 90) self.assertAlmostEqualDict(self.model.find_mirror_point_output,