mirror of
https://github.com/AliFlux/MapTilesDownloader.git
synced 2025-05-15 22:50:10 -07:00
Removed unused code
This commit is contained in:
parent
cef2822d81
commit
c0a0d10331
10
server.py
10
server.py
@ -27,16 +27,6 @@ import base64
|
||||
lock = threading.Lock()
|
||||
|
||||
class serverHandler(BaseHTTPRequestHandler):
|
||||
def log_message(self, format, *args):
|
||||
return
|
||||
|
||||
def translate(self, sensor_val, in_from, in_to, out_from, out_to):
|
||||
out_range = out_to - out_from
|
||||
in_range = in_to - in_from
|
||||
in_val = sensor_val - in_from
|
||||
val=(float(in_val)/in_range)*out_range
|
||||
out_val = out_from+val
|
||||
return out_val
|
||||
|
||||
def ensureDirectory(self, directory):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user