arup-group / elara

Command line utility for processing MATSim events output files.
MIT License
14 stars 4 forks source link

Missing agents in `trip_logs_all_trips.csv` #130

Closed KasiaKoz closed 3 years ago

KasiaKoz commented 3 years ago

Comparing MATSim's output_persons.csv with trip_logs_all_trips.csv reveals that some agents are not included in the elara trips log

(Using Suffolk outputs /mnt/efs/test_simulation/20210618_10p/experiment3_no_car_100times_cost/200)

Screenshot 2021-08-11 at 12 04 00
KasiaKoz commented 3 years ago

Some of the IDs that are missing:

'2016013248_0_142108',
 '2016016795_0_37645',
 '2016004136_0_261349',
 '2016012825_0_241275',
 '2016012834_0_200871',
 '2016012826_0_188591',
 '2016012844_0_308917',
 '2016012097_0_259019',
 '2016012843_0_102275',
 '2016002252_0_319544',
 '2016013937_0_79068',
 '2016002253_0_106575',
 '2016012822_0_35414',
 '2016000865_0_223868',
 '2016012846_0_203633',
 '2016012843_0_266237',
 '2016005312_0_57879',
 '2016002251_0_158665',
 '2016000865_0_117461',
 '2016016794_0_37645',
 '2016010434_0_317458',
 '2016003503_0_182045',
 '2016008616_0_178361',
 '2016010144_0_5065',
 '2016002254_0_146776',
 '2016007670_0_72485',
 '2016012841_0_127323',
 'LGV_1757',
 '2016016544_0_210117',
 '2016002254_0_319540',
 '2016012098_0_317463',
 '2016013249_0_6285',
 '2016012826_0_130739',
 '2016014135_5_225836',
 '2016016545_0_221167',
 '2016010147_0_119837',
 'LGV_4452',
 '2016012826_0_134171',
 '2016003502_0_107868',
 '2016011666_0_177060',
 '2016013932_0_92097',
 '2016012820_0_282749',
 'LGV_855',
 'HGV_1216',
andkay commented 3 years ago

@KasiaKoz are you able to pull the plans for a few of these agents (regular people and goods vehicles) and post here?

KasiaKoz commented 3 years ago
<!-- ====================================================================== -->

    <person id="2016013248_0_142108">
        <attributes>
            <attribute name="HouseholdID" class="java.lang.String">2016005520</attribute>
            <attribute name="IndividualID" class="java.lang.String">2016013248</attribute>
            <attribute name="age" class="java.lang.String">40 to 49</attribute>
            <attribute name="bikeAvail" class="java.lang.String">yes</attribute>
            <attribute name="carAvail" class="java.lang.String">never</attribute>
            <attribute name="gender" class="java.lang.String">male</attribute>
            <attribute name="hasLicence" class="java.lang.String">no</attribute>
            <attribute name="hhincome" class="java.lang.String">low</attribute>
            <attribute name="hid" class="java.lang.String">142108</attribute>
            <attribute name="household_id" class="java.lang.String">142108</attribute>
            <attribute name="household_zone" class="java.lang.String">E02006267</attribute>
            <attribute name="household_zone_LAD" class="java.lang.String">Mid Suffolk</attribute>
            <attribute name="subpopulation" class="java.lang.String">hhs_no_car</attribute>
            <attribute name="workstatus" class="java.lang.String">inactive</attribute>
        </attributes>
        <plan score="0.0" selected="no">
            <activity type="home" link="46697" x="619723.0" y="259742.0" >
            </activity>
        </plan>

        <plan score="0.0" selected="no">
            <activity type="home" link="46697" x="619723.0" y="259742.0" >
            </activity>
        </plan>

        <plan score="0.0" selected="no">
            <activity type="home" link="46697" x="619723.0" y="259742.0" >
            </activity>
        </plan>

        <plan score="0.0" selected="no">
            <activity type="home" link="46697" x="619723.0" y="259742.0" >
            </activity>
        </plan>

        <plan score="0.0" selected="no">
            <activity type="home" link="46697" x="619723.0" y="259742.0" >
            </activity>
        </plan>

        <plan score="0.0" selected="no">
            <activity type="home" link="46697" x="619723.0" y="259742.0" >
            </activity>
        </plan>

        <plan score="0.0" selected="no">
            <activity type="home" link="46697" x="619723.0" y="259742.0" >
            </activity>
        </plan>

        <plan score="0.0" selected="no">
            <activity type="home" link="46697" x="619723.0" y="259742.0" >
            </activity>
        </plan>

        <plan score="0.0" selected="no">
            <activity type="home" link="46697" x="619723.0" y="259742.0" >
            </activity>
        </plan>

        <plan score="0.0" selected="yes">
            <activity type="home" link="46697" x="619723.0" y="259742.0" >
            </activity>
        </plan>

    </person>

<!-- ====================================================================== -->

    <person id="LGV_1757">
        <attributes>
            <attribute name="CarCO2" class="java.lang.String">lgv</attribute>
            <attribute name="CarType" class="java.lang.String">lgv</attribute>
            <attribute name="hid" class="java.lang.String">LGV_1757</attribute>
            <attribute name="subpopulation" class="java.lang.String">lgv</attribute>
        </attributes>
        <plan score="0.0" selected="no">
            <activity type="depot" link="129522" x="586811.0" y="265105.0" >
            </activity>
        </plan>

        <plan score="0.0" selected="no">
            <activity type="depot" link="129522" x="586811.0" y="265105.0" >
            </activity>
        </plan>

        <plan score="0.0" selected="no">
            <activity type="depot" link="129522" x="586811.0" y="265105.0" >
            </activity>
        </plan>

        <plan score="0.0" selected="no">
            <activity type="depot" link="129522" x="586811.0" y="265105.0" >
            </activity>
        </plan>

        <plan score="0.0" selected="no">
            <activity type="depot" link="129522" x="586811.0" y="265105.0" >
            </activity>
        </plan>

        <plan score="0.0" selected="no">
            <activity type="depot" link="129522" x="586811.0" y="265105.0" >
            </activity>
        </plan>

        <plan score="0.0" selected="no">
            <activity type="depot" link="129522" x="586811.0" y="265105.0" >
            </activity>
        </plan>

        <plan score="0.0" selected="no">
            <activity type="depot" link="129522" x="586811.0" y="265105.0" >
            </activity>
        </plan>

        <plan score="0.0" selected="no">
            <activity type="depot" link="129522" x="586811.0" y="265105.0" >
            </activity>
        </plan>

        <plan score="0.0" selected="yes">
            <activity type="depot" link="129522" x="586811.0" y="265105.0" >
            </activity>
        </plan>

    </person>

the few I checked all looked this way, they're just not doing anything, so I guess it makes sense they don't exist in all trips... no trips to include...

andkay commented 3 years ago

@KasiaKoz that seems right to me -- stay at home agents. It's a bit odd to see synthetic goods vehicles with just a single activity, but that's a population issue.

I'm marking this as closed -- but we could consider if it is worth adding some logging for this particular case.