Skip to content

Commit

Permalink
clean up import order, fix small error in doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
ChainReaction31 committed Jun 10, 2024
1 parent d32cc86 commit 3d6014e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/source/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ OGC API - Connected Systems - Part 1: Feature Resources & Part 2: Dynamic Data

.. code-block:: python
>>> from owslib.ogcapi.connectedsystems import {Systems, Datastreams, Observations}
>>> from owslib.ogcapi.connectedsystems import Systems, Datastreams, Observations
>>> s = Systems('http://localhost:5000', auth=('user', 'password'), headers={'Content-Type': 'application/sml+json'})
>>> ds = Datastreams('http://localhost:5000', auth=('user', 'password'), headers={'Content-Type': 'application/json'})
>>> obs = Observations('http://localhost:5000', auth=('user', 'password'), headers={'Content-Type': 'application/json'})
Expand Down
4 changes: 1 addition & 3 deletions owslib/ogcapi/connectedsystems.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
# ==============================================================================
import logging

import requests

from owslib.ogcapi import Collections, API
from owslib.ogcapi import API, Collections
from owslib.util import (Authentication)

LOGGER = logging.getLogger(__name__)
Expand Down
6 changes: 3 additions & 3 deletions tests/test_ogcapi_connectedsystems_osh.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
# Contact email: [email protected]
# ==============================================================================

import json
from datetime import datetime
import json

from owslib.ogcapi.connectedsystems import Systems, Deployments, Datastreams, Observations, ControlChannels, Commands, \
SystemEvents, SystemHistory, SamplingFeatures, Properties
from owslib.ogcapi.connectedsystems import Commands, ControlChannels, Datastreams, Deployments, Observations, \
Properties, SamplingFeatures, SystemEvents, SystemHistory, Systems
from owslib.util import Authentication


Expand Down

0 comments on commit 3d6014e

Please sign in to comment.