Closed thomakl closed 1 year ago
The basic.txt
scenario is working well on my side. What questionnaire are you using? By default, it is nasatlx_fr.txt
, in includes/questionnaires
Hi,
Any of the questionnares are working on my side.
Running the program with only one screen doesn't change the error.
According to the code, Container(name=fullscreen_reduced, l=0.0, b=432.0, w=1536, h=0.0)
Any thoughts ?
@thomakl, did you change something else in the code? What is the line you mention (Container), where is it in the code? I can’t see any fullscreen_reduced
value in the original code.
Hi,
Container(name=fullscreen_reduced, l=0.0, b=432.0, w=1536, h=0.0)
is coming from the debug mode.
Here is a screenshot attached to understand better.
As for my personal code, I did modified some files (communications, tanker, resman) but nothing about the container or the genericscales.
The bug comes from the line 41.
The last commit should correct this bug. This was because the code did not take into account the case where only one scale is defined (your case).
See last commit on "genericscales.py" It seems that the scale_list = [s for s in self.current_slide.split('linesep') if len(s.strip()) > 0] with linesep in Windows doesn't cut the text. According to the file "os.py" the linesep represents "\r\n" however according to the questionnaire (nasatlx_en.txt for instance) it only have the "\n". Replacing the linesep "\r\n" by "\n" does the work.
OK, this is because os
is detecting the line separation of your OS (Windows I guess) and that the scenario file you are currently testing was written under Linux (with other linesep), so there is a conflict between a presumed and a real line separation. I suggest to get rid of the linesep
guess, to force this to be \n
, and to strip the rest of the line (eventually removing a remaining line separation). Look forward for the next commit and tell me what happens for you.
Perfect. Thank you.
Hi,
The scenario 'basic.txt' seems to dislike the scale according to the error :
Cheers,