Skip to content

Commit

Permalink
Merge pull request #179 from spwoodcock/refactor/fix-types-lint-format
Browse files Browse the repository at this point in the history
Fix type/indent errors after docstring additions
  • Loading branch information
robsavoye authored Aug 21, 2023
2 parents 7cc46d1 + 44f2894 commit 5a16b4a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion osm_fieldwork/basemapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import queue
import concurrent.futures
import threading
from osm_fieldwork.sqlite import DataFile
from osm_fieldwork.sqlite import DataFile, MapTile

# Instantiate logger
log = logging.getLogger(__name__)
Expand Down
6 changes: 3 additions & 3 deletions osm_fieldwork/odk_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,9 @@ def main():
formatter_class=argparse.RawDescriptionHelpFormatter,
description="This program conflates ODK data with existing features from OSM.",
epilog="""
This program conflates the output from Osm-Fieldwork after converting
the JSON file from ODK Central to OSM XML. The data source for existing data can'
be either the data extract used by the XLSForm, or a postgresql database.
This program conflates the output from Osm-Fieldwork after converting
the JSON file from ODK Central to OSM XML. The data source for existing data can'
be either the data extract used by the XLSForm, or a postgresql database.
examples:
odk_merge.py [OPTIONS] [OSMFILE] [DATAFILE]
Expand Down
9 changes: 6 additions & 3 deletions osm_fieldwork/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
#
# This file is part of OSM-Fieldwork.
#
# This is free software: you can redistribute it and/or modify
# This is free software: you can redistribute it and/or modify<<<<<<< refactor/fix-types-lint-format
78


# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
Expand Down Expand Up @@ -36,7 +39,7 @@ def __init__(self,
y: int = None,
z: int = None,
filespec: str = None,
tile: MapTile = None,
tile: 'MapTile' = None,
suffix="jpg",
):
"""
Expand Down Expand Up @@ -74,7 +77,7 @@ def __init__(self,
self.y = tmp[1].replace("." + suffix, "")

def readImage(self,
base: str = "./",
base: str = "./,
):
"""
Read a map tile out of the disk based map tile cache
Expand Down

0 comments on commit 5a16b4a

Please sign in to comment.