You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using a specific xml file inside the NFB lab and it works there. However, when I tried to import the file using Studio, I got the message:
Traceback (most recent call last):
File "c:\users\владислав\nfb_studio\nfb_studio\experiment_view.py", line 510, in actionImport
ex = Experiment.import_xml(data)
File "c:\users\владислав\nfb_studio\nfb_studio\experiment.py", line 269, in import_xml
group = Group.nfb_import_data(group_data)
File "c:\users\владислав\nfb_studio\nfb_studio\group\group.py", line 102, in nfb_import_data
group.repeats = [int(number) for number in data["sNumberList"].split(" ")]
AttributeError: 'NoneType' object has no attribute 'split'
This seems incorrectly formatted. The group has a single item, "signal", but the sNumberList field has no items, when it should have had a single 1 to indicate that this "signal" block is executed once.
@nikolaims How should I parse this? If sNumberList is empty just insert N number of ones to match the number of items in sList?
Apparently NFB Lab does not validate invalid field such as this. So this is not a bug - the file is actually invalid.
I will keep this open until I implement a proper message for incorrectly formatted XML files.
I was using a specific xml file inside the NFB lab and it works there. However, when I tried to import the file using Studio, I got the message:
The xml file:
The text was updated successfully, but these errors were encountered: