remove debug output
This commit is contained in:
parent
cc3646ca16
commit
93767d68f8
@ -224,7 +224,6 @@ end
|
|||||||
def write_osm
|
def write_osm
|
||||||
Dir.mkdir DATA_FOLDER unless File.exist? DATA_FOLDER
|
Dir.mkdir DATA_FOLDER unless File.exist? DATA_FOLDER
|
||||||
unless File.exist?("#{osm_file}.osm")
|
unless File.exist?("#{osm_file}.osm")
|
||||||
puts "write osm data"
|
|
||||||
File.open( "#{osm_file}.osm", 'w') {|f| f.write(osm_str) }
|
File.open( "#{osm_file}.osm", 'w') {|f| f.write(osm_str) }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -271,7 +270,6 @@ def write_input_data
|
|||||||
end
|
end
|
||||||
|
|
||||||
def extract_data
|
def extract_data
|
||||||
puts "extract"
|
|
||||||
Dir.chdir TEST_FOLDER do
|
Dir.chdir TEST_FOLDER do
|
||||||
log_preprocess_info
|
log_preprocess_info
|
||||||
log "== Extracting #{osm_file}.osm...", :preprocess
|
log "== Extracting #{osm_file}.osm...", :preprocess
|
||||||
@ -290,7 +288,6 @@ def extract_data
|
|||||||
end
|
end
|
||||||
|
|
||||||
def prepare_data
|
def prepare_data
|
||||||
puts "prepare"
|
|
||||||
Dir.chdir TEST_FOLDER do
|
Dir.chdir TEST_FOLDER do
|
||||||
log_preprocess_info
|
log_preprocess_info
|
||||||
log "== Preparing #{extracted_file}.osm...", :preprocess
|
log "== Preparing #{extracted_file}.osm...", :preprocess
|
||||||
@ -317,17 +314,6 @@ def prepare_data
|
|||||||
end
|
end
|
||||||
|
|
||||||
def reprocess
|
def reprocess
|
||||||
if false
|
|
||||||
puts fingerprint_osm
|
|
||||||
puts fingerprint_extract
|
|
||||||
puts fingerprint_prepare
|
|
||||||
puts fingerprint_route
|
|
||||||
|
|
||||||
puts osm_file
|
|
||||||
puts extracted_file
|
|
||||||
puts prepared_file
|
|
||||||
end
|
|
||||||
|
|
||||||
write_input_data
|
write_input_data
|
||||||
extract_data unless extracted?
|
extract_data unless extracted?
|
||||||
prepare_data unless prepared?
|
prepare_data unless prepared?
|
||||||
|
@ -51,8 +51,6 @@ def log_fail expected,got,attempts
|
|||||||
log "Got: #{got}"
|
log "Got: #{got}"
|
||||||
log
|
log
|
||||||
['route','forw','backw'].each do |direction|
|
['route','forw','backw'].each do |direction|
|
||||||
p attempts
|
|
||||||
p direction
|
|
||||||
if attempts[direction]
|
if attempts[direction]
|
||||||
attempts[direction]
|
attempts[direction]
|
||||||
log "Direction: #{direction}"
|
log "Direction: #{direction}"
|
||||||
|
Loading…
Reference in New Issue
Block a user