@@ -4,7 +4,7 @@ use std::fmt::Display;
44use std:: fs:: { create_dir_all, remove_dir_all, remove_file, File } ;
55use std:: io:: { BufRead , BufReader , Write } ;
66use std:: path:: PathBuf ;
7- use std:: process:: Command ;
7+ use std:: process:: { Command , Stdio } ;
88
99pub struct InertialFlowCutterAdapter {
1010 pub inertial_flow_cutter_path : PathBuf ,
@@ -95,6 +95,7 @@ impl InertialFlowCutterAdapter {
9595 . to_owned ( )
9696 + "_bin" ,
9797 )
98+ . stdout ( Stdio :: null ( ) )
9899 . status ( )
99100 . expect ( "Failed to compute ordering" ) ;
100101 }
@@ -157,12 +158,15 @@ impl InertialFlowCutterAdapter {
157158 & routing_kit_network. travel_time ,
158159 self . temp_output_path ( ) . join ( "travel_time" ) ,
159160 ) ;
161+
162+ // the InertialFlowCutter script expects these file names but interprets them as Euclidean coordinates
163+ // (https://github.com/Janekdererste/rust_q_sim/issues/10)
160164 InertialFlowCutterAdapter :: serialize_vector (
161- & routing_kit_network. latitude ,
165+ & routing_kit_network. x ,
162166 self . temp_output_path ( ) . join ( "latitude" ) ,
163167 ) ;
164168 InertialFlowCutterAdapter :: serialize_vector (
165- & routing_kit_network. longitude ,
169+ & routing_kit_network. y ,
166170 self . temp_output_path ( ) . join ( "longitude" ) ,
167171 ) ;
168172 }
0 commit comments