From f50ed80e2a6e02f650c7f906e8b3ea05d137ca46 Mon Sep 17 00:00:00 2001 From: SilviuEmil <113130900+SilviuEmil@users.noreply.github.com> Date: Thu, 8 Sep 2022 19:23:29 +0200 Subject: [PATCH 1/2] Update Datatypes.py Solving the metar/Datatypes.py:443: SyntaxWarning: 'float' object is not callable (on Python 3.9.13) --- metar/Datatypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metar/Datatypes.py b/metar/Datatypes.py index b7500507..11776fc1 100644 --- a/metar/Datatypes.py +++ b/metar/Datatypes.py @@ -440,7 +440,7 @@ def getdistance( self, position2 ): long1 = self.longitude lat2 = position2.latitude long2 = position2.longitude - a = sin(0.5(lat2-lat1)) + cos(lat1)*cos(lat2)*sin(0.5*(long2-long1)**2) + a = sin(0.5*(lat2-lat1)) + cos(lat1)*cos(lat2)*sin(0.5*(long2-long1)**2) c = 2.0*atan(sqrt(a)*sqrt(1.0-a)) d = distance(earth_radius*c,"M") return d From 3940fc5e79ad5c692ef0e9352aa3a5fcc82dcdf2 Mon Sep 17 00:00:00 2001 From: Tom Pollard Date: Sat, 10 Sep 2022 10:58:38 -0400 Subject: [PATCH 2/2] Update README --- README | 3 --- 1 file changed, 3 deletions(-) diff --git a/README b/README index 308a6f4e..a8978871 100644 --- a/README +++ b/README @@ -1,6 +1,3 @@ -[![Build Status](https://travis-ci.org/python-metar/python-metar.png?branch=master)](https://travis-ci.org/python-metar/python-metar) -[![Coverage Status](https://img.shields.io/coveralls/python-metar/python-metar.svg)](https://coveralls.io/r/python-metar/python-metar?branch=master) - ======================================================================== The metar library ========================================================================