From 887eeba6ecb21a1ea5002e2a195a2920188b6dfd Mon Sep 17 00:00:00 2001 From: Darius Arnold Date: Wed, 25 Oct 2017 21:55:19 +0200 Subject: [PATCH] [minor] small docstring changes --- pylot/core/pick/autopick.py | 2 +- pylot/core/util/connection.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pylot/core/pick/autopick.py b/pylot/core/pick/autopick.py index 693d017b..c1a5704c 100644 --- a/pylot/core/pick/autopick.py +++ b/pylot/core/pick/autopick.py @@ -155,7 +155,7 @@ def autopickstation(wfstream, pickparam, verbose=False, :type metadata: tuple (str, ~obspy.io.xseed.parser.Parser) :param origin: list containing origin objects representing origins for all events :type origin: list(~obspy.core.event.origin) - :return: :dictionary containing P pick, S pick and station name + :return: dictionary containing P pick, S pick and station name :rtype: dict """ diff --git a/pylot/core/util/connection.py b/pylot/core/util/connection.py index 71b3eb12..4a6e11f0 100644 --- a/pylot/core/util/connection.py +++ b/pylot/core/util/connection.py @@ -8,6 +8,13 @@ except: def checkurl(url='https://ariadne.geophysik.ruhr-uni-bochum.de/trac/PyLoT/'): + """ + check if URL is available + :param url: url + :type url: str + :return: available: True/False + :rtype: bool + """ try: urlopen(url, timeout=1) return True