stefanino-ch / lepg-py

The successor of lepg.
GNU General Public License v3.0
0 stars 0 forks source link

Inconsistent processor input files - difficulty getting started #3

Closed MoretonBayKiting closed 7 months ago

MoretonBayKiting commented 7 months ago

Stefanino, Thanks for the GUI to Pere's LEParagliding.

In order to get familiar with it I have installed and opened Pere's BHL7-22/leparagliding.txt (from http://laboratoridenvol.com/projects/BHL7/bhl7.en.html). (I renamed this leparagliding_Orig.txt). Although it has number of cells: 33; Number of ribs: 34 the wing view shows 28 cells (either with or without running Processor/Run Processor). Should I expect to see 33 cells? Do I need to run another process to get these consistent? If I save the processor file (Processor/Save Processor File As...) to leparagliding2.txt there are still 28 cells. If I then open leparagliding2.txt, the app crashes. Log file attached. (logfileGood.txt is the log after running with the original input file.) Having examined differences between the two parameter files (ie leparagliding_Orig.txt and leparagliding2.txt, there are many formatting differences. For example, the original drawing scale is 1.0 whereas the rewritten one is 1. . Most other differences appear (VSCode, compare selected files) to be white space differences.

bhlnm-4p.txt, which is written to the processor folder, C:\D\NonSML\WK\AutoKite\SS\PG\LEPG_PY\processors\lep-3.19-win64\lep (ref configFile.txt), is empty.

logfile.txt configFile.txt leparagliding_Orig.txt leparagliding2.txt logfileGood.txt

MoretonBayKiting commented 7 months ago

I see that the BHL7-22 input file I used includes " Input data file (leparagliding 3.17+)". I understand that there can be forward compatibility problems. Could you provide an input file that you know works with LEPG_PY. If I get that working, I should be able to compare with others and modify that.

stefanino-ch commented 7 months ago

Good catch, you've found a bug. Should be fixed now, you will find an new Version to download here: https://github.com/stefanino-ch/lepg-py/tree/latest/distribution/dist-win64

Some additional informations.

(venv) C:\Users\user\sw-dev\lepg-py\lepg-py\src>cd C:\Users\user\sw-dev\lepg-py\lepg-py\src\processors\lep-3.19-win64\lep Error termination. Backtrace:

0 0xffffffffffffffff in ???

(venv) C:\Users\user\sw-dev\lepg-py\lepg-py\src\processors\lep-3.19-win64\lep>C:/Users/user/sw-dev/lepg-py/lepg-py/src/processors/lep-3.19-win64/lep/lep-3.19-win64.exe

1 0xffffffffffffffff in ???


In line two it tells you that there is a missing file named bhlnm-4p.txt. The many question marks on the lines below are usually also an indicator that there is something wrong. 

Hope this helps. 
MoretonBayKiting commented 7 months ago

Stefanino, I downloaded that file but it was assessed to be invalid by WinZip. It also appears to be an old version: image Could you check that it is correct?

stefanino-ch commented 7 months ago

3.19 is latest and greatest you get as stable version now. Currently I'm working to get the changes for 3.20 implemented, 3.21T was never released officially and since dec 2023 there's a 3.23. If you want to get familar with lepg then 3.19 is still a pretty good version. The main features are already all in there. Newer versions will bring features like calculation for different line materials and types on the same glider, xflir simulation parameters and even more sophisticated things used by experienced users.

I checked before the .zip on the server. Download, ectraction and simulation run seems all to be fine. The download might be a liiittle bit tricky. Can you please follow the steps below and check again? Click on the filename. download-step-1

A new page opens, complaining about the file is too big to be displayed. Click here on "raw download". download-step-2

MoretonBayKiting commented 7 months ago

Thanks Stefanino. My apologies, that was my error in not downloading the large compressed file.

But I'm afraid it crashes when I run processor. The log, not saved, shows (as per screen shot attached): _Running mode: Frozen/executable Traceback (most recent call last): File "gui\MainWindow.py", line 880, in procrun File "enum.py", line 787, in getattr AttributeError: Ok

Input processor file (leparagliding7_36AR7.txt) and log files (including leparagliding.txt) also attached. LEPG_PY_Screen leparagliding.txt logfile.txt leparagliding7_36AR7.txt

stefanino-ch commented 7 months ago

Hey Are you shure you have configured the processor executable? I will get the error message if I try to start the processing with no processor setup.

Start lepg-py go into Setup->Both Processors and select the executables for the pre- and the processor.

The compatible executables are part of the installation, but as the full path must be configured (starting with e.g. c:/....) the full path might change. As soon you're within the downloaded and extracted folder the path would be: .......lepg-win64-V3.20.1-stable/processors/lep-3.19-win64/pre1.6/pre-1.6-win64.exe .......lepg-win64-V3.20.1-stable/processors/lep-3.19-win64/lep/lep-3.19-win64.exe

As originally developed lepg-py should complain about a not found processor, it looks like I need to fix another bug. Sorry for the inconvinience.

If you want, you can just go for 3.20.2 (https://github.com/stefanino-ch/lepg-py/tree/stable/distribution/dist-win64) where the bug has been fixed.

MoretonBayKiting commented 7 months ago

Thanks Stefanino.
My apologies - it was my error not to setup the processors. But perhaps, as you've done, worth capturing such (operator) error in any case. Thank you. I used version 3.20.2 this morning. The integrated DXF viewer is great. I'm running a rather old machine with only 4Gb of memory. It struggles with other DXF viewers I've used. Although it is still slower than I'd like, what you've integrated is much better than the others I've used. This is probably a request that should go to Pere (I know he is very busy so won't be able to address it any time soon), but can the DXF files be simplified/broken out? My colleague who will cut material for a glider wrote the following: DXF files are best kept small, one for ribs, one for skin panels. Preferably with pen and cut separate. Laser cutter program uses SVG files with layers for cut and pen. Arnaud Martinez also suggested the following: "I recommend to disable the ballooning when it comes to LEP 3D output export." I've not been able to determine how to do that. Is it possible in LEPG_PY? If these latter points should be in separate issues, feel free to move them. Thanks again for your help.

stefanino-ch commented 7 months ago

Hey Good to hear that everything works now. I just published also a Linux version with the latest fixes.

I can forward your request about changing data files to Pere, all the output ist driven py the processors, therefore Pere is the one who can unfluence this.

Not sure what dou you mean with the ballooning. In general my piece of SW is just an editor helping to create a well structured file afterwards used by Pere's processor. So if the official lep doc provided by Pere provides such an option you will find it also in my editor.