FET Forum

FET Support (English) => Get Help => Topic started by: ngoctp29121982 on November 25, 2022, 04:27:33 AM

Title: Add at least half a day on csv in morning-afternoon mode
Post by: ngoctp29121982 on November 25, 2022, 04:27:33 AM

Hello Liviu and Volker!
You can add Min Days = 0.5 in the csv file and when entering Fet software in morning-afternoon mode, Fet will understand the minimum number of sessions between a group of lectures = 1
Example for Vietnamese: min 1 half days 100% between 2+2+2+2+2+2 (6*2) and min 1 days 100% between 2+2+2+2+2 (5*2 ).
Thank you so much. We will support you.
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: Liviu Lalescu on November 25, 2022, 04:10:51 PM
Hello, ngo,

I am sorry, but min days = 0.5 is an interesting idea but the casual users won't understand. It is complicated. I propose you that we could try it as a custom version for you (if Volker cannot, I might give it a try, even if I am not familiar with his code). If the custom version works OK, we might consider adding it to the official (even if I don't like the idea).

The fact is that it is a very specialized use case.
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: ngoctp29121982 on November 25, 2022, 04:28:03 PM
When adding min day in csv file = 0.5: Subject 2+2+2+2+2+2(6*2) FET spawns 2 on Monday morning, 2 on Monday afternoon...... ...but don't spawn 4 or 3 or 1 on the same morning or afternoon, break the 2+2+2+2+2+2 decay sock
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: ngoctp29121982 on November 25, 2022, 04:28:38 PM
2+2 it will be random on 1 real day (am-pm) or on 2 real days. For example: 2+2 on Monday morning and Monday afternoon or on Monday morning and Tuesday morning or on Monday morning and Tuesday afternoon but not on the same Monday morning or Tuesday morning.... ...
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: Liviu Lalescu on November 25, 2022, 09:05:24 PM
I think I have a better idea: add a function similar to "Spread the activities over the week": automatically the program will remove the old similar constraints and add for each activity divided into 6 two constraints, one min 1 half days for all 6 and one min 1 days for 5 of them.

FET is free software and I only work free software. But I cannot work for free on everything about FET. If there are say 100 institutions interested to sponsor this, I will consider adding this feature into the official FET.
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: ngoctp29121982 on November 25, 2022, 10:43:42 PM
Can you do that idea on the FET file I sent? Teachers Ha, N Yen and Na teach T Vietnamese.
Thank you very much! Thank you very much, I will support you
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: Liviu Lalescu on November 26, 2022, 06:43:48 AM
No, I cannot do that idea on your file, because the idea is not implemented.
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: ngoctp29121982 on November 26, 2022, 12:51:03 PM
Bạn tạo một phiên bản tuỳ chỉnh cho tôi được không? Min days = 0,5 trên file csv để khi vào phần mềm FET 2+2+2+2+2+2 (6*5) hiểu là số buổi tối thiểu giữa một nhóm các tiết giảng ở chế độ Sáng-Chiều.
on the min days column add min half days between activities instead of min days between activities .Just this
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: Liviu Lalescu on November 26, 2022, 01:04:21 PM
OK, as a custom version this is possible. So:

1) In the CSV file, if min days = 0.5, add min half days.

2) In the interface, in the add activity dialog, should we:
  a) Have only the min half days, or
  b) Choose between min half days or min days

?
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: ngoctp29121982 on November 26, 2022, 01:13:06 PM
1) In csv file, if min days = 0.5, add min half day
2) choose between min half day or min day
Once you've added min days = 0.5 on the csv file, the FET interprets itself as adding the min half day. no need to add operations in the FET anymore. That's how it's fast
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: Liviu Lalescu on November 26, 2022, 01:23:17 PM
OK, beginning work.
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: Liviu Lalescu on November 26, 2022, 04:12:06 PM
I did it: https://lalescu.ro/liviu/fet/download/custom/ngo/
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: ngoctp29121982 on November 27, 2022, 12:54:52 AM
I tried the custom version, it's fine. But I have 1 idea, you can add 2 ways for csv file. Option 1 Mindays=1 and Option 2: MinHalfDays=1 so that when the user chooses option 2, then 2+2+2+2+2(6*5) or 3+3+3+3+3+3+2 (7x5) FET understands and works. Thus, there is a new version we can still use.
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: Liviu Lalescu on November 27, 2022, 08:30:55 AM
I don't understand. Min days is 1 (min days) or 0.5 (min half days).
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: ngoctp29121982 on November 27, 2022, 10:49:11 AM
Sorry. Option 1 Mindays=1 and Option 2: MinDays=0.5 so that when the user chooses option 2, then 2+2+2+2+2(6*5) or 3+3+3+3+3+3 +2 (7x5) FET understands and works. As such, there is an official version that everyone can use.
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: Liviu Lalescu on November 27, 2022, 11:00:43 AM
I still don't understand.

If you mean to add both 1 and 0.5 on the same line, I cannot, because it is Volker's code and I don't know it that well.
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: ngoctp29121982 on November 27, 2022, 12:00:27 PM
No I want 1 line to be 1 and 1 line to be 0.5. Thus, it will be more diverse for schools that use 1 or both 1 and 0.5 in the morning-afternoon mode.
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: Liviu Lalescu on November 27, 2022, 12:02:50 PM
You can choose to add 1 or 0.5 on a single line; each line can have 1 or 0.5.
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: ngoctp29121982 on November 27, 2022, 12:19:08 PM
That's right. I think you put in the official version, it doesn't affect any school at all, a lot of primary schools around the world need it.
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: Liviu Lalescu on November 27, 2022, 12:59:03 PM
I don't like this solution as official.

1) The user must know about 0.5;

2) Min days is neglected in case of adding min half days;

3) Export is not exporting 0.5 (but this can be corrected);

4) The user cannot modify a file if he already inputted the activities.

I would agree to add into the official a "spread activities"-like feature, as I wrote above (https://lalescu.ro/liviu/fet/forum/index.php?topic=5424.msg29798#msg29798), but this is difficult to implement, and needs a lot of testing. If there are a lot of schools around the world to use this, I expect them to sponsor the facility.
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: ngoctp29121982 on November 27, 2022, 01:07:59 PM
User defined to choose 0.5 means that they have used Morning - Afternoon mode and they don't need to edit with 2+2+2+2+2+2(6*5)....and other lines in the csv file. with 2+2+2+2+2(5*5) the user has defaulted to 1. I take it well, you think and put it in the official version.
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: Liviu Lalescu on November 27, 2022, 05:08:13 PM
I have to admit you have good ideas! Let me think and talk to Volker and other persons.
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: ngoctp29121982 on November 27, 2022, 05:12:40 PM
I always support your work. Thank you very much!
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: Liviu Lalescu on November 27, 2022, 07:20:26 PM
I think I have a minor bug in your custom version above: do you get a warning with "Possible incorrect setting..." when adding an activity with half days 1 and split into 6 when the number of half days is 10? Should be no warning here.
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: Liviu Lalescu on November 27, 2022, 08:04:09 PM
I thought some more: if there are min half days, we better add an "h" after the min days in the import/export CSV, like: "1h" means min 1 half days and "1" means min 1 days.
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: Liviu Lalescu on November 27, 2022, 11:39:47 PM
Hello, ngo,

I added the feature into the official: https://lalescu.ro/liviu/fet/download/test/ . I am not 100% convinced, yet, I might still revert, based on reactions.
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: ngoctp29121982 on November 28, 2022, 03:54:05 PM
100% between 2+2+2+2+2+2+2 (7*2) and 100% between 2+2+2+2+2+2 (6*2) are very good. Thank you very much Liviu and Voker. We always support you to develop FET. I think you can put it in the official version
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: Liviu Lalescu on November 29, 2022, 10:26:46 PM
I just released the new version, FET-6.7.4, with this new feature. Thank you!
Title: Re: Add at least half a day on csv in morning-afternoon mode
Post by: ngoctp29121982 on November 30, 2022, 12:35:27 PM
Thank you very much, it's very good. I always support your development