From bbc2cfe4603a0eff1e2dd8de70dd1f2d3baee6be Mon Sep 17 00:00:00 2001 From: Marcel Nijenhof Date: Mon, 10 Feb 2020 22:40:06 +0100 Subject: [PATCH] location_quantities --> locationQuantities --- DD-API-Oper demo.ipynb | 2 +- ddapioper.py | 4 ++-- test-ddapi | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DD-API-Oper demo.ipynb b/DD-API-Oper demo.ipynb index daca8bc..4423679 100644 --- a/DD-API-Oper demo.ipynb +++ b/DD-API-Oper demo.ipynb @@ -117,7 +117,7 @@ "metadata": {}, "outputs": [], "source": [ - "quantities_hoek = rws.location_quantities(\"hoekvanholland\")" + "quantities_hoek = rws.locationQuantities(\"hoekvanholland\")" ] }, { diff --git a/ddapioper.py b/ddapioper.py index 0737311..bcd0236 100644 --- a/ddapioper.py +++ b/ddapioper.py @@ -79,8 +79,8 @@ Request the list of quantities and return a ddApiQuntitie object. """ return(ddApiQuantitie(self.get(self.url + "/quantities")["results"])) - def location_quantities(self, location): - """location_quantities(location) + def locationQuantities(self, location): + """locationQuantities(location) location: A dd-api location (e.g. hoekvanholland) diff --git a/test-ddapi b/test-ddapi index b52a651..e445892 100755 --- a/test-ddapi +++ b/test-ddapi @@ -17,7 +17,7 @@ def quantities(rws): print(f) def quantitiesHoekvanHolland(rws): - q = rws.location_quantities("hoekvanholland") + q = rws.locationQuantities("hoekvanholland") print(type(q)) for f in q.quantities(): print(f)