-
Notifications
You must be signed in to change notification settings - Fork 56
Description
Fityk version: 1.3.1, Windows 10
When using the GUI then sometimes clicking (e.g.) "scroll right" button moves the view right (datapoints to the left) but sometimes clicking it moves the view left (datapoints to the right). Clicking left moves the view always to the opposite direction than clicking right, so it's not a critical issue, but just an inconvenience. Note: it's intuitive for me as a user when clicking right shifts the view right.
I haven't specifically tried to find out patterns when it's one or the other before, but I've got this issue hundreds of times over the years with different data. The direction switch seems to come when opening a new instance of Fityk (e.g. opening a .fit file). I haven't noticed the direction change when the program is already running. I have had two instances of Fityk open simultaneously, when one is scrolling the view to the right and other instance is scrolling to the left.
I tested a bit with .fit files. It seems that if I open an old file, then clicking right shifts view left. This is consistent for all .fit files in the folder. I tested another folder with .fit files. These all shift the view right when clicking right. Moreover, when I copy-paste (duplicate) a file in the first folder, then the newly created copy shifts view right when clicking right, but all other files (including original) still do the opposite. The time of the file creation doesn't seem to matter. Also, changing the contents of the .fit file doesn't seem to matter. Note that opening new empty instance of Fityk seems to always shift the view left when clicking right. The same applies if I open an empty instance of Fityk and then do a lengthy fitting procedure which ends in Fityk command "reset".
I think I have pinpointed the bug to the filepath. When I have "E:\Research_analysis\2024.03 VTT JET\Test\Archive\Output\Sessions\HFGC_1c_P2,800.fit" then the view shifts left. "HFGC_1c_P2,800 - Copy.fit" shifts the view right. "HFGC_1c_P2,800 - Copy - Copy.fit" shifts the view left. The contents of the file are the same, the behavior is always consistent, and it doesn't matter whether I copy-paste the file or just rename it. The filename determines the shift direction. This was done in the same folder, but doing the same thing in a different folder ("E:\Research_analysis\2024.03 VTT JET\Test\Output\Sessions") didn't give the same result with these filenames (clicking right always shifted the view right).
Filepaths when clicking right shifts view right:
E:\Research_analysis\2024.03 VTT JET\Test\HFGC_1c_P2,800.fit
E:\Research_analysis\2024.03 VTT JET\Test\Output\Sessions\HFGC_1c_P2,150.fit
E:\Research_analysis\2024.03 VTT JET\Test\Output\Sessions\HFGC_1c_P2,151.fit
E:\Research_analysis\2024.03 VTT JET\Test\Output\Sessions\HFGC_1c_P2,800.fit
E:\Research_analysis\2024.03 VTT JET\Test\Output\Sessions\HFGC_1c_P2,800 - Copy.fit
E:\Research_analysis\2024.03 VTT JET\Test\Output\Sessions\HFGC_1c_P2,800 - Copy - Copy.fit
E:\Research_analysis\2024.03 VTT JET\Test\Output\Sessions\Example.fit
E:\Research_analysis\2024.03 VTT JET\Test\Output\Sessions\Example - Copy.fit
E:\Research_analysis\2024.03 VTT JET\Test\Output\Sessions\Example - Copy - Copy.fit
E:\Research_analysis\2024.03 VTT JET\Test\Output\Sessions\Example - Copy - Copy - Copy.fit
E:\Research_analysis\2024.03 VTT JET\Test\Archive\HFGC_1c_P2,800.fit
E:\Research_analysis\2024.03 VTT JET\Test\Archive\Output\Sessions\HFGC_1c_P2,800 - Copy.fit
E:\Research_analysis\2024.03 VTT JET\Test\Archive\Output\Sessions\Example.fit
Filepaths when clicking right shifts view left:
E:\Research_analysis\2024.03 VTT JET\Test\Output\HFGC_1c_P2,151.fit
E:\Research_analysis\2024.03 VTT JET\Test\Output\HFGC_1c_P2,800.fit
E:\Research_analysis\2024.03 VTT JET\Test\Output\Sessions\Example - Copy - Copyy.fit
E:\Research_analysis\2024.03 VTT JET\Test\Archive\Output\HFGC_1c_P2,800.fit
E:\Research_analysis\2024.03 VTT JET\Test\Archive\Output\Sessions\HFGC_1c_P2,2.fit
E:\Research_analysis\2024.03 VTT JET\Test\Archive\Output\Sessions\HFGC_1c_P2,5.fit
E:\Research_analysis\2024.03 VTT JET\Test\Archive\Output\Sessions\HFGC_1c_P2,150.fit
E:\Research_analysis\2024.03 VTT JET\Test\Archive\Output\Sessions\HFGC_1c_P2,151.fit
E:\Research_analysis\2024.03 VTT JET\Test\Archive\Output\Sessions\HFGC_1c_P2,800.fit
E:\Research_analysis\2024.03 VTT JET\Test\Archive\Output\Sessions\HFGC_1c_P2,1200.fit
E:\Research_analysis\2024.03 VTT JET\Test\Archive\Output\Sessions\HFGC_1c_P2,800 - Copy - Copy.fit
E:\Research_analysis\2024.03 VTT JET\Test\Archive\Output\Sessions\Example - Copy.fit
I checked half of the files after restarting Windows and the behavior remained the same. So, I can reliably produce the bug depending on the folder and file name. I added a .fit file (renamed to .txt for Github to allow it). I'll leave testing the matter further to you.