diff --git a/README-edflib.md b/README-edflib.md index c0c9526..1f31351 100644 --- a/README-edflib.md +++ b/README-edflib.md @@ -40,7 +40,7 @@ sample frequency of 2048 Hz. `sweep_generator` creates a linear or logarithmic sweep through a range of frequencies in EDF+ or BDF+ format. -Use EDFbrowser to view these files: http://www.teuniz.net/edfbrowser/ +Use EDFbrowser to view these files: https://www.teuniz.net/edfbrowser/ `test_edflib ` will print the properties of the EDF/BDF header, the annotations, and the values of 200 samples of the chosen signal. For example, running diff --git a/README.rst b/README.rst index 025bee9..a115df1 100644 --- a/README.rst +++ b/README.rst @@ -8,7 +8,7 @@ pyEDFlib :alt: Test Coverage .. image:: https://readthedocs.org/projects/pyedflib/badge/?version=latest - :target: http://pyedflib.readthedocs.org/en/latest/?badge=latest + :target: https://pyedflib.readthedocs.io/en/latest/?badge=latest :alt: Docs Build .. image:: https://badge.fury.io/py/pyEDFlib.svg @@ -42,7 +42,7 @@ The EDFlib is able to read and write EDF/EDF+/BDF/BDF+ files. Documentation ------------- -Documentation is available online at http://pyedflib.readthedocs.org. +Documentation is available online at https://pyedflib.readthedocs.io. Installation ------------ @@ -118,18 +118,18 @@ Releases can be cited via Zenodo. .. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.5678481.svg :target: https://doi.org/10.5281/zenodo.5678481 -.. _Cython: http://cython.org/ -.. _Anaconda: https://www.continuum.io +.. _Cython: https://cython.org/ +.. _Anaconda: https://www.anaconda.com/ .. _GitHub: https://github.com/holgern/pyedflib .. _GitHub Issues: https://github.com/holgern/pyedflib/issues -.. _Numpy: http://www.numpy.org -.. _Python: http://python.org/ -.. _Python Package Index: http://pypi.python.org/pypi/pyEDFlib/ +.. _Numpy: https://numpy.org/ +.. _Python: https://www.python.org/ +.. _Python Package Index: https://pypi.org/project/pyEDFlib/ .. _Releases Page: https://github.com/holgern/pyedflib/releases -.. _edfplus.info: http://www.edfplus.info/ -.. _European Data Format: http://www.edfplus.info/ +.. _edfplus.info: https://www.edfplus.info/ +.. _European Data Format: https://www.edfplus.info/ .. _Kemp2003: https://www.ncbi.nlm.nih.gov/pubmed/12948806?dopt=Citation .. _Kemp1992: https://www.ncbi.nlm.nih.gov/pubmed/1374708?dopt=Abstract -.. _BioSemi: http://www.biosemi.com/faq/file_format.htm +.. _BioSemi: https://www.biosemi.com/faq/file_format.htm .. _toolbox from Christopher Lee-Messer: https://github.com/cleemesser/python-edf -.. _EDFlib: http://www.teuniz.net/edflib/ +.. _EDFlib: https://www.teuniz.net/edflib/ diff --git a/doc/Makefile b/doc/Makefile index 21ef83f..ed115f7 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -9,7 +9,7 @@ BUILDDIR = build # User-friendly check for sphinx-build ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) -$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/) +$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from https://www.sphinx-doc.org/) endif # Internal variables. diff --git a/doc/make.bat b/doc/make.bat index 34cde1b..96bbb74 100644 --- a/doc/make.bat +++ b/doc/make.bat @@ -65,7 +65,7 @@ if errorlevel 9009 ( echo.may add the Sphinx directory to PATH. echo. echo.If you don't have Sphinx installed, grab it from - echo.http://sphinx-doc.org/ + echo.https://www.sphinx-doc.org/ exit /b 1 ) diff --git a/doc/source/conf.py b/doc/source/conf.py index 8a29fa0..f09445e 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -194,7 +194,7 @@ # If true, an OpenSearch description file will be output, and all pages will # contain a tag referring to it. The value of this option must be the # base URL from which the finished HTML is served. -html_use_opensearch = 'http://pyedflib.readthedocs.org' +html_use_opensearch = 'https://pyedflib.readthedocs.io' # This is the file name suffix for HTML files (e.g. ".xhtml"). #html_file_suffix = None diff --git a/doc/source/dev/installing_build_dependencies.rst b/doc/source/dev/installing_build_dependencies.rst index f9ece6a..d2738da 100644 --- a/doc/source/dev/installing_build_dependencies.rst +++ b/doc/source/dev/installing_build_dependencies.rst @@ -17,7 +17,7 @@ project. If you don't have `virtualenv`_ yet, install and activate it using:: Installing Cython ----------------- -Use ``pip`` (http://pypi.python.org/pypi/pip) to install Cython_:: +Use ``pip`` (https://pypi.org/project/pip/) to install Cython_:: pip install Cython>=0.16 @@ -34,11 +34,11 @@ Numpy can also be obtained via scientific python distributions such as: - Anaconda_ - `Enthought Deployment Manager`_ -- `Python(x,y) `_ +- `Python(x,y) `_ .. note:: - You can find binaries for 64-bit Windows on http://www.lfd.uci.edu/~gohlke/pythonlibs/. + You can find binaries for 64-bit Windows on https://www.lfd.uci.edu/~gohlke/pythonlibs/. Installing Sphinx @@ -55,9 +55,9 @@ via:: pip install numpydoc -.. _virtualenv: http://pypi.python.org/pypi/virtualenv -.. _numpy: http://numpy.scipy.org/ -.. _Cython: http://cython.org/ +.. _virtualenv: https://pypi.org/project/virtualenv/ +.. _numpy: https://numpy.org/ +.. _Cython: https://cython.org/ .. _Sphinx: http://sphinx.pocoo.org .. _numpydoc: https://github.com/numpy/numpydoc .. _Anaconda: https://www.continuum.io/downloads diff --git a/doc/source/dev/preparing_windows_build_environment.rst b/doc/source/dev/preparing_windows_build_environment.rst index 0fe6f65..8cd8b89 100644 --- a/doc/source/dev/preparing_windows_build_environment.rst +++ b/doc/source/dev/preparing_windows_build_environment.rst @@ -35,8 +35,8 @@ After completing these steps continue with :ref:`Installing build dependencies `. -.. _Python: http://python.org/ -.. _numpy: http://numpy.scipy.org/ -.. _Cython: http://cython.org/ +.. _Python: https://www.python.org/ +.. _numpy: https://numpy.org/ +.. _Cython: https://cython.org/ .. _Sphinx: http://sphinx.pocoo.org/ .. _Microsoft Visual C++ Compiler for Python 2.7: https://www.microsoft.com/en-us/download/details.aspx?id=44266 diff --git a/doc/source/dev/testing.rst b/doc/source/dev/testing.rst index daf28da..7daebb7 100644 --- a/doc/source/dev/testing.rst +++ b/doc/source/dev/testing.rst @@ -21,5 +21,5 @@ Tests are implemented with `nose`_, so use one of: Note doctests require `Matplotlib`_ in addition to the usual dependencies. -.. _nose: http://nose.readthedocs.org/en/latest/ -.. _Matplotlib: http://matplotlib.org +.. _nose: https://nose.readthedocs.io/ +.. _Matplotlib: https://matplotlib.org/ diff --git a/doc/source/index.rst b/doc/source/index.rst index a2ce7a2..79870a3 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -23,7 +23,7 @@ Description ``PyEDFlib`` is a `Python`_ library to read/write *EDF/EDF+/BDF* files based on EDFlib. -*EDF* stands for `European Data Format `_, a data format for EEG data, first `published in 1992 `_. +*EDF* stands for `European Data Format `_, a data format for EEG data, first `published in 1992 `_. In 2003, an improved version of the file protocol named *EDF+* `has been published `_. The definition of the *EDF/EDF+* format can be found under `edfplus.info `_. @@ -31,7 +31,7 @@ The definition of the *EDF/EDF+* format can be found under `edfplus.info `_. -The ``PyEDFlib`` `Python`_ toolbox is a fork of the ``python-edf`` `toolbox from Christopher Lee-Messer `_. +The ``PyEDFlib`` `Python`_ toolbox is a fork of the ``python-edf`` `toolbox from Christopher Lee-Messer `_. and uses the `EDFlib `_ from Teunis van Beelen. Requirements @@ -67,12 +67,12 @@ Contents resources contents -.. _Cython: http://cython.org/ +.. _Cython: https://cython.org/ .. _demo: https://github.com/holgern/pyedflib/tree/master/demo .. _GitHub: https://github.com/holgern/pyedflib .. _GitHub Issues: https://github.com/holgern/pyedflib/issues -.. _Numpy: http://www.numpy.org -.. _edflib: http://www.teuniz.net/edflib/ -.. _Python: http://python.org/ -.. _Python Package Index: http://pypi.python.org/pypi/pyedflib/ +.. _Numpy: https://numpy.org/ +.. _edflib: https://www.teuniz.net/edflib/ +.. _Python: https://www.python.org/ +.. _Python Package Index: https://pypi.org/project/pyEDFlib/ .. _Releases Page: https://github.com/holgern/pyedflib/releases diff --git a/pyedflib/_extensions/_pyedflib.pyx b/pyedflib/_extensions/_pyedflib.pyx index 033938f..5704ace 100644 --- a/pyedflib/_extensions/_pyedflib.pyx +++ b/pyedflib/_extensions/_pyedflib.pyx @@ -97,7 +97,7 @@ def contains_unicode(string): def get_short_path_name(long_name): """ Gets the short path name of a given long path. - http://stackoverflow.com/a/23598461/200291 + https://stackoverflow.com/a/23598461/200291 """ import ctypes from ctypes import wintypes diff --git a/pyedflib/_extensions/c/edflib.h b/pyedflib/_extensions/c/edflib.h index 5663a0a..f45f92e 100644 --- a/pyedflib/_extensions/c/edflib.h +++ b/pyedflib/_extensions/c/edflib.h @@ -130,9 +130,9 @@ extern "C" { -/* For more info about the EDF and EDF+ format, visit: http://edfplus.info/specs/ */ +/* For more info about the EDF and EDF+ format, visit: https://edfplus.info/specs/ */ -/* For more info about the BDF and BDF+ format, visit: http://www.teuniz.net/edfbrowser/bdfplus%20format%20description.html */ +/* For more info about the BDF and BDF+ format, visit: https://www.teuniz.net/edfbrowser/bdfplus%20format%20description.html */ /* * note: In EDF, the sensitivity (e.g. uV/bit) and offset are stored using four parameters: @@ -149,7 +149,7 @@ extern "C" { * For a better explanation about the relation between digital data and physical data, * read the document "Coding Schemes Used with Data Converters" (PDF): * - * http://www.ti.com/general/docs/lit/getliterature.tsp?baseLiteratureNumber=sbaa042 + * https://www.ti.com/general/docs/lit/getliterature.tsp?baseLiteratureNumber=sbaa042 * * note: An EDF file usually contains multiple so-called datarecords. One datarecord usually has a duration of one second (this is the default but it is not mandatory!). * In that case a file with a duration of five minutes contains 300 datarecords. The duration of a datarecord can be freely choosen but, if possible, use values from diff --git a/setup.py b/setup.py index fde3d48..ea2d495 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ REQUIRED_NUMPY = 'numpy>=1.9.1' -# from MDAnalysis setup.py (http://www.mdanalysis.org/) +# from MDAnalysis setup.py (https://www.mdanalysis.org/) class NumpyExtension(Extension): """Derived class to cleanly handle setup-time (numpy) dependencies. """ @@ -59,7 +59,7 @@ def include_dirs(self): def include_dirs(self, val): self._np_include_dir_args = val -# from MDAnalysis setup.py (http://www.mdanalysis.org/) +# from MDAnalysis setup.py (https://www.mdanalysis.org/) def get_numpy_include(): try: # Obtain the numpy include directory. This logic works across numpy @@ -83,7 +83,7 @@ def get_numpy_include(): print(e) print('*** package "numpy" not found ***') print('pyEDFlib requires a version of NumPy, even for setup.') - print('Please get it from http://numpy.scipy.org/ or install it through ' + print('Please get it from https://numpy.org/ or install it through ' 'your package manager.') sys.exit(-1) try: