JuPedSim / jpsreport

Analysis tool
https://www.jupedsim.org/jpsreport_introduction.html
Other
3 stars 9 forks source link

Method A | failure handling #149

Closed gintama1227 closed 5 years ago

gintama1227 commented 5 years ago

*JuPedSim - JPSreport**

Describe the bug No output of Method I. I try "jpsreport/demos/obstacle". But there is no output.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem. image image

Additional context Add any other context about the problem here.

log.txt

gjaeger commented 5 years ago

Can you please upload your modified ini-file?

The module Polygon is missing to execute the _Plot_N_t.py-file. Please check the required tools.

gintama1227 commented 5 years ago

ini_corridor.zip

gjaeger commented 5 years ago

Your problem isn't a bug. If the module Polygon is missing, method A cannot be completed.

We can adapt JPSreport so that the absence of the module is correctly intercepted.

gintama1227 commented 5 years ago

Thank you, I installed Polygon3. But, I still cannot use Method I.

gintama1227 commented 5 years ago

image log.txt

gjaeger commented 5 years ago

Can you upload the file IFD_I_corridor_tab.txt_id_1.dat?

gintama1227 commented 5 years ago

image It is empty. I cannot upload the file now. image

gjaeger commented 5 years ago

Please try this file ini_corridor_issue149.xml.zip.

gintama1227 commented 5 years ago

Still same problem.

log.txt

gjaeger commented 5 years ago

Please deactivate method A and send me the correct log-file.

gintama1227 commented 5 years ago

log.txt image

gjaeger commented 5 years ago

Please change measurement area ID 1:

    <area_B id="1" type="BoundingBox" zPos="None">
    </area_B>
gintama1227 commented 5 years ago

image log.txt I change the ID to 5. image image

gjaeger commented 5 years ago

Please try:

<?xml version="1.0" encoding="UTF-8"?>
<JPSreport project="JPS-Project" version="0.8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/jps_report.xsd">

    <geometry file = "geo_corridor.xml" />

    <trajectories format="txt" unit="m">
        <file name="corridor_tab.txt" />
        <path location="./" />
    </trajectories>

    <output location="Output_issue149/" />

    <scripts location="../../scripts/"/>

    <measurement_areas unit="m">
    <area_B id="1" type="BoundingBox" zPos="None">
    </area_B>
        <area_L id="2" type="Line" zPos="None">
            <start x="0.00" y="0.00" />
            <end x="0.00" y="1.50" />
        </area_L>
    </measurement_areas>

    <velocity frame_step="10" set_movement_direction="None" ignore_backward_movement="false"/>

    <method_A enabled="false">
        <measurement_area id="2" frame_interval="100" plot_time_series="true"/>
    </method_A>

    <method_I enabled="true">
        <measurement_area id="1" start_frame="None" stop_frame="None" get_individual_FD="true" plot_time_series="false"/>
        <cut_by_circle enabled="true" radius="1.0" edges="10"/>
        <one_dimensional enabled="false"/>
    </method_I>
</JPSreport>
gintama1227 commented 5 years ago

image But there is no log.txt and no IFD_I_corridor_tab.txt_id_1.dat

gjaeger commented 5 years ago

Do you read the Error message? Please change your ini-file:

<measurement_area id="1" start_frame="None" stop_frame="None" get_individual_FD="true" plot_time_series="false"/>

instead

<measurement_area id="1" start_frame="None" stop_frame="None" get_individual_FD="true" plot_time_series="false"//>

gintama1227 commented 5 years ago

Thank you. It succeeds. By the way, I find that I have to Create all folders at first (see the figure). If not, the log.txt shows "ERROR: cannot open the file individual". image

gjaeger commented 5 years ago

By the way, I find that I have to Create all folders at first (see the figure). If not, the log.txt shows "ERROR: cannot open the file individual".

@xuqiancheng Can you reproduce this problem description under Windows?

gjaeger commented 5 years ago

By the way, I find that I have to Create all folders at first (see the figure). If not, the log.txt shows "ERROR: cannot open the file individual".

That's not normal.

gintama1227 commented 5 years ago

image Like this. log.txt

xuqiancheng commented 5 years ago

By the way, I find that I have to Create all folders at first (see the figure). If not, the log.txt shows "ERROR: cannot open the file individual".

@gjaeger I know this problem, but I think it has been fixed in #144 . @gintama1227 Could you please try the latest commit in #144 ? It should solve the problem with Create all folders.

gjaeger commented 5 years ago

I know this problem, but I think it has been fixed in #144 .

Did you test this?

xuqiancheng commented 5 years ago

I know this problem, but I think it has been fixed in #144 .

Did you test this?

Yes. After compiling jpsreport on windows. I found two problems, one is can not create output folder, another one is can not read trajectory folder. Then I fixed both of them. Now It works well on my computer.

But I have met problem when I test method I in demos/obstacle. I got empty output file as shown in the figure. image Then I have tested method_I in demos/bottleneck, and got result. image image I don't know is this a normal result, since I don't know much about method I.

gjaeger commented 5 years ago

But I have met problem when I test method I in demos/obstacle. I got empty output file as shown in the figure.

I don't understand your problem. For this I would need the ini-file and the log-file. This one works (ini_corridor.xml.zip).

I don't know is this a normal result, since I don't know much about method I.

The method works well. Further information can be found in the manual.

xuqiancheng commented 5 years ago

@gjaeger
inifle_logfile_result.zip are the inifiles, logfiles and obtained result of demos/obstacle (corridor) and demos/bottleneck (bottleneck). The result of demos/bottleneck looks correct, but the result of demos/obstacle is empty. So I don't know if the result of demos/obstacle is a correct result? I can get result with other four methods and I have attached the log file here. log_Method_ABCD.txt

gintama1227 commented 5 years ago

@xuqiancheng Thank you. It works well. I can get results of demos/obstacle and demos/bottleneck.

gjaeger commented 5 years ago

@gintama1227 You get data for Method I for _inicorridor, too? Which changes did you make?

gintama1227 commented 5 years ago

I just follow #144 . For ini_corridor.xml, I use the ini.xml you gave me. @gjaeger