[issue40035] Filtration of the .txt file

Hamed Elahi report at bugs.python.org
Sat Mar 21 15:48:58 EDT 2020


Hamed Elahi <hamed.elahi11 at gmail.com> added the comment:

I don't have any other windows to run on them, too. But, now, when I run .py file from older folders before updating windows, then I've got this problem or when I copy the folders and run .py file from these newly created folders.

See here:

I ran both files. See the result of filter:

First file:

['sampling:rate 0', 'sampling:depth 3', 'ch1:mapping 2', 'shared 1', 'ch1:range_i 2', 'ch2:mapping 0', 'ch2:range_i 1', 'ch1:mapping 0', 'ch1:range_i 0']


Second file:

['sampling:rate 0', 'sampling:depth 3', 'ch1:mapping 2', 'shared 1', 'ch1:range_i 2', 'ch2:mapping 0', 'ch2:range_i 1', 'ch1:mapping 0', 'ch1:range_i 0']

So, both of them give the same result after filtering, but see the result of program here:

First file:

0 0.000 -0.000000 -0.000788


Second file:

0 0.000 160095.125000 -0.000525


So, as you see, the first file has None values, because of that, I'm getting that line of code with these values: -0.000000 -0.000788

I sent an attachment before which is the file that give me the wrong result.

When I use a .txt file with 4 parts like the attachment, the program works correctly, but I wanted to know how I received different results from two folders from different times. So, It is not a big problem.

Sorry that I cannot give you more information, because I wrote this program for university, it is forbidden to send for others. And currently, I'm writing my thesis and testing new programs, so please do not reply to my message. Because I don't have time to answer the questions, now. But, when my thesis finishes after two months and I saw the problem is disturbing me another time, thus I will give you more information about it.
Thank you for your help.

----------
Added file: https://bugs.python.org/file48993/settings.txt

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40035>
_______________________________________


More information about the Python-bugs-list mailing list