An expression in export.cpp

Started by xing, June 18, 2019, 05:12:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xing

Hi Liviu,

Please help me, I got an expression when I use fet-cl.exe. The attached pictures show the details.

The fet version I use is fet-5.37.5
The input parameter is --inputfile="XiUni.fet"
"XiUni.fet" is attached as well

The strange thing is when I run it again with all the output dir unremoved, like /csv /logs /timetables, it won't show this expression and work normally.

Thank you!

Liviu Lalescu

#1
Your activities do not respect the .fet XML structure. If an activity is not split, it should have activity group id = 0 and duration = total duration.

It does not crash second time because it won't overwrite the CSV activities files.

Also, you forgot to write that you added the command-line option to output the CSV timetables.

Liviu Lalescu

I commented out that assert in the code and it does not crash anymore. Thank you for the bug report! But you have also bugs in your file.

Let me know if you need the new FET snapshot with the corrected crash bug.

Volker Dirr

But maybe we should print a warning?

Liviu Lalescu

Quote from: Volker Dirr on June 18, 2019, 07:43:08 PM
But maybe we should print a warning?

It will print some warnings, try removing that assert and running to replicate the bug (with --exportcsv=true).

There are too many places in FET to take care of this.

xing

Quote from: Liviu Lalescu on June 18, 2019, 06:27:26 PM
Your activities do not respect the .fet XML structure. If an activity is not split, it should have activity group id = 0 and duration = total duration.

Also, you forgot to write that you added the command-line option to output the CSV timetables.
Thank you very much!

I checked the activity that may lead to this expression, which as the attached picture. I added activity_group_id=0 for all the activities in my .fet xml file. Is it good or not to set all the activity_group_id=0, how the group_id affects timetable generation.

I switched off the export CSV option and it works well now. But does this expression affect the timetable generation?

Thank again!


xing

Sorry, forget to attach the picture.

Liviu Lalescu

When total duration != duration, the activity group id should be different than 0 (should be the id of the first activity in the large activity). Please see a FET example.