Skip to content

Commit

Permalink
added tests refs #21, #16020
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Jan 15, 2025
1 parent 38211dd commit d0d5650
Show file tree
Hide file tree
Showing 6 changed files with 330 additions and 0 deletions.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- generated on 2020-02-15 23:29:52.505222 by turndeparted="1" entered2EdgeCount.py v1_5_0+0092-24382ab578
options: -t input_turns.xml -o edgedata.xml <doubleminus>edgedata-attribute departed="1" entered
-->
<meandata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/meandata_file.xsd">
<interval id="generated" begin="0.0" end="99.0">
<edge id="-58.121.42" departed="1" entered="4"/>
<edge id="45" departed="1" entered="3"/>
<edge id="-31.80.00" departed="1" entered="15"/>
<edge id="-92.180.00" departed="1" entered="1"/>
<edge id="-131" departed="1" entered="6"/>
<edge id="-23.80.00" departed="1" entered="19"/>
<edge id="-55.80.00" departed="1" entered="5"/>
<edge id="-120.180.00" departed="1" entered="5"/>
<edge id="144" departed="1" entered="7"/>
<edge id="-152.80.00" departed="1" entered="2"/>
<edge id="60" departed="1" entered="3"/>
<edge id="144.121.42" departed="1" entered="6"/>
<edge id="131" departed="1" entered="9"/>
<edge id="-148.80.00" departed="1" entered="2"/>
<edge id="64" departed="1" entered="10"/>
<edge id="131.180.00" departed="1" entered="6"/>
<edge id="68" departed="1" entered="6"/>
<edge id="75.121.42" departed="1" entered="4"/>
<edge id="123.121.42" departed="1" entered="2"/>
<edge id="-45" departed="1" entered="4"/>
<edge id="-60" departed="1" entered="8"/>
<edge id="11" departed="1" entered="20"/>
<edge id="27" departed="1" entered="18"/>
<edge id="-64" departed="1" entered="6"/>
<edge id="109.80.00" departed="1" entered="10"/>
<edge id="-131.180.00" departed="1" entered="5"/>
<edge id="23" departed="1" entered="20"/>
<edge id="-68" departed="1" entered="3"/>
<edge id="-43" departed="1" entered="5"/>
<edge id="-3.180.00" departed="1" entered="23"/>
<edge id="-27" departed="1" entered="22"/>
<edge id="-123.121.42" departed="1" entered="7"/>
<edge id="-64.80.00" departed="1" entered="7"/>
<edge id="-23" departed="1" entered="19"/>
<edge id="-144" departed="1" entered="5"/>
<edge id="3" departed="1" entered="23"/>
<edge id="31" departed="1" entered="15"/>
</interval>
</meandata>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-r input_routes.rou.xml --edgedata-file input_edgedata.xml
--edgedata-attribute entered,departed
-o out.rou.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Wrote 88 routes (53 distinct) achieving total count 362 (97.31%) at 37 locations. GEH<5 for 97.30%
Warning: underflow locations: count 8, min 1.00 (('-92.180.00',)), max 2.00 (('-23.80.00',)), mean 1.25, Q1 1.00, median 1.00, Q3 2.00 (total 10)
Original file line number Diff line number Diff line change
@@ -0,0 +1,277 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2025-01-15 18:13:41.783996 by routeSampler.py v1_21_0+1863-38211dd26c1
<configuration>
<route-files value="input_routes.rou.xml"/>
<edgedata-files value="input_edgedata.xml"/>
<edgedata-attribute value="entered,departed"/>
</configuration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<!-- begin="0.0" end="99.0" -->
<vehicle id="0" depart="1.79">
<route edges="-64.80.00 -31 -31.80.00 -23 -23.80.00 -11 -11.80.00 3 3.180.00 -3"/>
</vehicle>
<vehicle id="1" depart="4.32">
<route edges="-60 -60.80.00 -31 -31.80.00 -23 -23.80.00 -11 -11.80.00 3 3.180.00 27 27.80.00 43 68 -45 -45.80.00"/>
</vehicle>
<vehicle id="2" depart="6.97">
<route edges="-79.80.00 -60 -60.80.00 -31 -31.80.00 -23 -23.80.00 -11 -11.80.00 3 3.180.00 27 27.80.00"/>
</vehicle>
<vehicle id="3" depart="7.46">
<route edges="11 11.80.00 23 23.80.00 31 31.80.00 64 64.80.00"/>
</vehicle>
<vehicle id="4" depart="13.53">
<route edges="27.80.00 -27 -27.80.00 -3 -3.180.00 11 11.80.00 23 23.80.00 31 31.80.00 60 60.80.00 75 75.121.42"/>
</vehicle>
<vehicle id="5" depart="17.32">
<route edges="-71 -55 -55.80.00 -27 -27.80.00 -3 -3.180.00 11 11.80.00 23 23.80.00 31 31.80.00 64 64.80.00 -64"/>
</vehicle>
<vehicle id="6" depart="17.42">
<route edges="-15.180.00 11 11.80.00 23 23.80.00 31 31.80.00 64 64.80.00 120"/>
</vehicle>
<vehicle id="7" depart="17.70">
<route edges="-148 -148.80.00 144 144.121.42 -15 -15.180.00 3 3.180.00 -3"/>
</vehicle>
<vehicle id="8" depart="18.68">
<route edges="-144 -144.121.42 152"/>
</vehicle>
<vehicle id="9" depart="18.90">
<route edges="27 27.80.00 -27 -27.80.00 -3 -3.180.00 11 11.80.00 23 23.80.00 31 31.80.00 64 64.80.00 -75"/>
</vehicle>
<vehicle id="10" depart="20.68">
<route edges="-43.80.00 -27 -27.80.00 -3 -3.180.00 15 15.180.00 -144 -144.121.42 152"/>
</vehicle>
<vehicle id="11" depart="22.79">
<route edges="-152.80.00 -131 -131.180.00 -109 -109.80.00 23 23.80.00 31 31.80.00 64 64.80.00"/>
</vehicle>
<vehicle id="12" depart="24.80">
<route edges="-75 -75.121.42 -60 -60.80.00 -31 -31.80.00 -23 -23.80.00 -11 -11.80.00 3 3.180.00 -71"/>
</vehicle>
<vehicle id="13" depart="25.16">
<route edges="-31.80.00 -23 -23.80.00 109 109.80.00 123"/>
</vehicle>
<vehicle id="14" depart="25.36">
<route edges="-123.121.42 131"/>
</vehicle>
<vehicle id="15" depart="25.82">
<route edges="120 120.180.00 -109 -109.80.00 -11 -11.80.00 3 3.180.00 -71 -55 -55.80.00"/>
</vehicle>
<vehicle id="16" depart="26.58">
<route edges="45 -68 -43 -43.80.00 43"/>
</vehicle>
<vehicle id="17" depart="27.61">
<route edges="-123.121.42 131"/>
</vehicle>
<vehicle id="18" depart="27.68">
<route edges="-37 -37.80.00 -23 -23.80.00 109 109.80.00 131 131.180.00 144"/>
</vehicle>
<vehicle id="19" depart="28.11">
<route edges="3 3.180.00 -3 -3.180.00 11 11.80.00 23 23.80.00 31 31.80.00 64 64.80.00"/>
</vehicle>
<vehicle id="20" depart="29.23">
<route edges="-79 -79.80.00 -60 -60.80.00 -31 -31.80.00 -23 -23.80.00 -11 -11.80.00 3 3.180.00 -3 -3.180.00"/>
</vehicle>
<vehicle id="21" depart="29.35">
<route edges="-64.80.00 -31 -31.80.00 -23 -23.80.00 -11 -11.80.00 3 3.180.00 -3"/>
</vehicle>
<vehicle id="22" depart="30.23">
<route edges="-31.80.00 -23 -23.80.00 109 109.80.00 123"/>
</vehicle>
<vehicle id="23" depart="30.26">
<route edges="23.80.00 31 31.80.00 60 60.80.00 75 75.121.42"/>
</vehicle>
<vehicle id="24" depart="30.50">
<route edges="-43.80.00 -27 -27.80.00 27 27.80.00"/>
</vehicle>
<vehicle id="25" depart="31.93">
<route edges="-55 -55.80.00 -27 -27.80.00 -3 -3.180.00 15 15.180.00"/>
</vehicle>
<vehicle id="26" depart="32.74">
<route edges="45 -68 -43 -43.80.00 43"/>
</vehicle>
<vehicle id="27" depart="34.66">
<route edges="3 3.180.00 -3 -3.180.00 11 11.80.00 23 23.80.00 31 31.80.00 64 64.80.00"/>
</vehicle>
<vehicle id="28" depart="35.51">
<route edges="-43.80.00 -27 -27.80.00 27 27.80.00"/>
</vehicle>
<vehicle id="29" depart="36.28">
<route edges="-3.180.00 11 11.80.00 23 23.80.00"/>
</vehicle>
<vehicle id="30" depart="36.86">
<route edges="-45.80.00 -27 -27.80.00 -3 -3.180.00 11 11.80.00 23 23.80.00 31 31.80.00 60 60.80.00 92"/>
</vehicle>
<vehicle id="31" depart="36.90">
<route edges="-64.80.00 -31 -31.80.00 -23 -23.80.00 -11 -11.80.00 3 3.180.00 -3"/>
</vehicle>
<vehicle id="32" depart="39.07">
<route edges="-37.80.00 -23 -23.80.00 -11 -11.80.00 15 15.180.00"/>
</vehicle>
<vehicle id="33" depart="40.05">
<route edges="-71 -55 -55.80.00 -27 -27.80.00 -3 -3.180.00 11 11.80.00 23 23.80.00 31 31.80.00 58"/>
</vehicle>
<vehicle id="34" depart="41.56">
<route edges="-45.80.00 -27 -27.80.00 -3 -3.180.00 11 11.80.00 23 23.80.00 37 -58"/>
</vehicle>
<vehicle id="35" depart="43.01">
<route edges="-11.80.00 3 3.180.00 27 27.80.00 55 71"/>
</vehicle>
<vehicle id="36" depart="44.39">
<route edges="3.180.00 27 27.80.00 55 71"/>
</vehicle>
<vehicle id="37" depart="46.52">
<route edges="-60 -60.80.00 -31 -31.80.00 -23 -23.80.00 -11 -11.80.00 3 3.180.00 27 27.80.00 43 68 -45 -45.80.00"/>
</vehicle>
<vehicle id="38" depart="48.04">
<route edges="3.180.00 27 27.80.00 55 71"/>
</vehicle>
<vehicle id="39" depart="48.08">
<route edges="-148 -148.80.00 -131 -131.180.00 -109 -109.80.00 23 23.80.00 37 -58 -58.121.42"/>
</vehicle>
<vehicle id="40" depart="48.19">
<route edges="-11 -11.80.00 15 15.180.00 -123 -123.121.42 -120 -120.180.00"/>
</vehicle>
<vehicle id="41" depart="48.90">
<route edges="-71 -55 -55.80.00 -27 -27.80.00 -3 -3.180.00 11 11.80.00 23 23.80.00 31 31.80.00 64 64.80.00 -64"/>
</vehicle>
<vehicle id="42" depart="49.42">
<route edges="-123 -123.121.42 131 131.180.00"/>
</vehicle>
<vehicle id="43" depart="50.37">
<route edges="37 -58 -58.121.42 -31 -31.80.00 -23 -23.80.00 109 109.80.00 131 131.180.00 -131 -131.180.00"/>
</vehicle>
<vehicle id="44" depart="51.15">
<route edges="-43.80.00 -27 -27.80.00 -3 -3.180.00 15 15.180.00 -144 -144.121.42 152"/>
</vehicle>
<vehicle id="45" depart="53.71">
<route edges="37 -58 -58.121.42 -31 -31.80.00 -23 -23.80.00 109 109.80.00 131 131.180.00 -131 -131.180.00"/>
</vehicle>
<vehicle id="46" depart="54.72">
<route edges="144 144.121.42 -123 -123.121.42 -120 -120.180.00 -64 -64.80.00 58"/>
</vehicle>
<vehicle id="47" depart="54.73">
<route edges="-31.80.00 -23 -23.80.00 109 109.80.00 123"/>
</vehicle>
<vehicle id="48" depart="55.27">
<route edges="71 71.121.42 -3 -3.180.00 11 11.80.00 109 109.80.00 -120"/>
</vehicle>
<vehicle id="49" depart="56.63">
<route edges="-45.80.00 -27 -27.80.00 -3 -3.180.00 11 11.80.00 23 23.80.00 37 -58"/>
</vehicle>
<vehicle id="50" depart="56.66">
<route edges="45 -68 -43 -43.80.00 43"/>
</vehicle>
<vehicle id="51" depart="57.49">
<route edges="58 -37 -37.80.00 -23"/>
</vehicle>
<vehicle id="52" depart="58.40">
<route edges="-43 -43.80.00 -27 -27.80.00 -3 -3.180.00 11 11.80.00 109 109.80.00"/>
</vehicle>
<vehicle id="53" depart="60.54">
<route edges="11.80.00 23 23.80.00 31"/>
</vehicle>
<vehicle id="54" depart="63.00">
<route edges="-43.80.00 -27 -27.80.00 -3 -3.180.00 15 15.180.00 -144 -144.121.42 152"/>
</vehicle>
<vehicle id="55" depart="63.87">
<route edges="123 123.121.42 -15 -15.180.00 3 3.180.00 27 27.80.00 43 68"/>
</vehicle>
<vehicle id="56" depart="66.22">
<route edges="23.80.00 31 31.80.00 60 60.80.00 75 75.121.42"/>
</vehicle>
<vehicle id="57" depart="66.23">
<route edges="144 144.121.42 -123 -123.121.42 -120 -120.180.00 -64 -64.80.00 58"/>
</vehicle>
<vehicle id="58" depart="66.44">
<route edges="-3.180.00 11 11.80.00 23 23.80.00"/>
</vehicle>
<vehicle id="59" depart="69.34">
<route edges="120 120.180.00 -120 -120.180.00 -75 -75.121.42 -60"/>
</vehicle>
<vehicle id="60" depart="70.18">
<route edges="144 144.121.42 -123 -123.121.42 -120 -120.180.00 -64 -64.80.00 58"/>
</vehicle>
<vehicle id="61" depart="71.37">
<route edges="58 -37 -37.80.00 -23 -23.80.00 -11 -11.80.00 3 3.180.00"/>
</vehicle>
<vehicle id="62" depart="73.67">
<route edges="-79 -79.80.00 -60 -60.80.00 64 64.80.00"/>
</vehicle>
<vehicle id="63" depart="74.02">
<route edges="58 -37 -37.80.00 -23"/>
</vehicle>
<vehicle id="64" depart="76.09">
<route edges="-109.80.00 -11 -11.80.00 3 3.180.00 27 27.80.00 -27"/>
</vehicle>
<vehicle id="65" depart="77.75">
<route edges="-64 -64.80.00 64 64.80.00 120 120.180.00 123 123.121.42"/>
</vehicle>
<vehicle id="66" depart="83.58">
<route edges="-148 -148.80.00 144 144.121.42 -15 -15.180.00 3 3.180.00 -3"/>
</vehicle>
<vehicle id="67" depart="83.82">
<route edges="3.180.00 27 27.80.00 55 71"/>
</vehicle>
<vehicle id="68" depart="84.02">
<route edges="123 123.121.42 -15 -15.180.00 3 3.180.00 27 27.80.00 43 68"/>
</vehicle>
<vehicle id="69" depart="84.24">
<route edges="45 -68 -43 -43.80.00 43"/>
</vehicle>
<vehicle id="70" depart="84.78">
<route edges="109 109.80.00 -109 -109.80.00 -11 -11.80.00 3 3.180.00 27 27.80.00 43 68 -45"/>
</vehicle>
<vehicle id="71" depart="85.55">
<route edges="-45.80.00 -27 -27.80.00 -3 -3.180.00 11 11.80.00 23 23.80.00 37 -58"/>
</vehicle>
<vehicle id="72" depart="87.38">
<route edges="131 131.180.00 144 144.121.42 -15 -15.180.00 3 3.180.00 27 27.80.00 55 71"/>
</vehicle>
<vehicle id="73" depart="87.47">
<route edges="-43 -43.80.00 -27 -27.80.00 -3 -3.180.00 11 11.80.00 109 109.80.00"/>
</vehicle>
<vehicle id="74" depart="87.89">
<route edges="-71 -55 -55.80.00 -27 -27.80.00 -3 -3.180.00 11 11.80.00 23 23.80.00 31 31.80.00 58"/>
</vehicle>
<vehicle id="75" depart="89.70">
<route edges="-92.180.00 -60 -60.80.00 -31 -31.80.00 37 -58 -58.121.42"/>
</vehicle>
<vehicle id="76" depart="92.07">
<route edges="-60 -60.80.00 -31 -31.80.00 -23 -23.80.00 -11 -11.80.00 3 3.180.00 27 27.80.00 43 68 -45 -45.80.00"/>
</vehicle>
<vehicle id="77" depart="92.63">
<route edges="60.80.00 75 75.121.42 -75"/>
</vehicle>
<vehicle id="78" depart="93.07">
<route edges="-144 -144.121.42 -131 -131.180.00 131 131.180.00"/>
</vehicle>
<vehicle id="79" depart="94.35">
<route edges="68 -45 -45.80.00 -27 -27.80.00 -71 -55"/>
</vehicle>
<vehicle id="80" depart="95.58">
<route edges="3.180.00 27 27.80.00 55 71"/>
</vehicle>
<vehicle id="81" depart="96.39">
<route edges="3.180.00 -3 -3.180.00 11 11.80.00 23 23.80.00 31 31.80.00 58"/>
</vehicle>
<vehicle id="82" depart="96.91">
<route edges="-109.80.00 -11 -11.80.00 3 3.180.00 27 27.80.00 -27"/>
</vehicle>
<vehicle id="83" depart="97.05">
<route edges="37 -58 -58.121.42 -31 -31.80.00 -23 -23.80.00 109 109.80.00 131 131.180.00 -131 -131.180.00"/>
</vehicle>
<vehicle id="84" depart="97.23">
<route edges="75 75.121.42 120 120.180.00 -109 -109.80.00 23 23.80.00"/>
</vehicle>
<vehicle id="85" depart="98.45">
<route edges="-43.80.00 -27 -27.80.00 -3 -3.180.00 15 15.180.00 -144 -144.121.42 152"/>
</vehicle>
<vehicle id="86" depart="98.46">
<route edges="-109.80.00 -11 -11.80.00 3 3.180.00 27 27.80.00 -27"/>
</vehicle>
<vehicle id="87" depart="98.63">
<route edges="144 144.121.42 -123 -123.121.42 -120 -120.180.00 -64 -64.80.00 58"/>
</vehicle>
</routes>
3 changes: 3 additions & 0 deletions tests/tools/turndefs/routeSampler/testsuite.tools
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ save_template
# using edgedata as input
edgedata

# read multiple attributes from the same edge
edgedata_entered_departed

# using edgedata as input to specify departure counts
edgedata_departures

Expand Down

0 comments on commit d0d5650

Please sign in to comment.