Skip to content

Commit

Permalink
Fix logger param in Analyser_Merge / Analyser_Merge_Mapillary
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Jun 17, 2019
1 parent ee3bd19 commit 284545c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions analysers/Analyser_Merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
"""

class Source:
def __init__(self, attribution = None, millesime = None, encoding = "utf-8", file = None, fileUrl = None, fileUrlCache = 30, zip = None, gzip = False, filter = None, logger = None):
def __init__(self, attribution = None, millesime = None, encoding = "utf-8", file = None, fileUrl = None, fileUrlCache = 30, zip = None, gzip = False, filter = None):
"""
Describe the source file.
@param encoding: file charset encoding
Expand All @@ -289,7 +289,6 @@ def __init__(self, attribution = None, millesime = None, encoding = "utf-8", fil
@param zip: extract file from zip
@param gzip: uncompress as gzip
@param filter: lambda expression applied on text file before loading
@param logger: a logger
"""
self.attribution = attribution
self.millesime = millesime
Expand All @@ -300,7 +299,6 @@ def __init__(self, attribution = None, millesime = None, encoding = "utf-8", fil
self.zip = zip
self.gzip = gzip
self.filter = filter
self.logger = logger

if self.file:
if not os.path.isabs(self.file):
Expand Down
3 changes: 2 additions & 1 deletion analysers/Analyser_Merge_Mapillary.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@


class Source_Mapillary(Source):
def __init__(self, country, polygon_id, mapping, layer, **args):
def __init__(self, country, polygon_id, mapping, layer, logger, **args):
self.polygon_id = polygon_id
self.mapping = mapping
self.layer = layer
self.logger = logger
Source.__init__(self, **args)
self.fileUrl = u'mapillary-feature-{0}-{1}.csv'.format(country, SourceVersion.version(self.mapping))
self.fileUrlCache = 120
Expand Down

0 comments on commit 284545c

Please sign in to comment.