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)