Skip to content

Commit

Permalink
fix: Bounding box is lon/lat, fixes #88
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Burgess committed Nov 25, 2019
1 parent 11c17a7 commit 5903c97
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ repos:
hooks:
- id: flake8
files: ^vortexasdk/

- repo: https://github.com/PyCQA/pydocstyle
rev: 4.0.1
hooks:
Expand Down
2 changes: 1 addition & 1 deletion vortexasdk/api/geography.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

@dataclass(frozen=True)
class BoundingBox:
"""Polygon with list of bounding lat lon coords."""
"""Polygon with list of bounding lon lat coords."""

type: str
coordinates: List[Position]
Expand Down
1 change: 1 addition & 0 deletions vortexasdk/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os

LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO")
LOG_FILE = os.getenv("LOG_FILE", "vortexasdk.log")
5 changes: 2 additions & 3 deletions vortexasdk/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
import sys
from logging.handlers import TimedRotatingFileHandler

from vortexasdk import config
from vortexasdk.config import LOG_FILE, LOG_LEVEL

FORMATTER = logging.Formatter(
"%(asctime)s — %(name)s — %(levelname)s — %(message)s"
)
LOG_FILE = "vortexsdk.log"


def get_console_handler():
Expand All @@ -25,7 +24,7 @@ def get_file_handler():
def get_logger(logger_name):
logger = logging.getLogger(logger_name)

logger.setLevel(config.LOG_LEVEL)
logger.setLevel(LOG_LEVEL)
logger.addHandler(get_console_handler())
logger.addHandler(get_file_handler())
logger.propagate = False
Expand Down

0 comments on commit 5903c97

Please sign in to comment.