Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'NoneType' object is not iterable #20

Open
Elenikary opened this issue Jul 19, 2020 · 0 comments
Open

TypeError: 'NoneType' object is not iterable #20

Elenikary opened this issue Jul 19, 2020 · 0 comments
Assignees

Comments

@Elenikary
Copy link
Collaborator

I ve been trying to run the test_wfse.py file and I have been getting a lot of errors which are referencing the wfse.py and wfse_product.py files. I was able to fix the ones referencing the wfse.py file and now I have to been facing the ones referring to the product function. This one error I am getting now refers to line 49 from wfse_product.py:

                                                   **for wfse_out in wfse.next_state(init_wfse, init_prop):**

As I was investigating the error, I looked up where the function next_state() is defined and I found it in the fsa.py file. This function returns None for the given inputs and therefore it cannot iterate with the for loop (?). Also I noticed from the comments in file fsa.py that None is returned in the cases of "blocking automata". Does that mean that the wfse created as is now is returning a blocking automaton?
This is the error that I am getting from running the test_wfse.py file:

Traceback (most recent call last):
File "/Users/eleni/Documents/lomap-features-p23/lomap/tests/test_wfse.py", line 93, in
product_model = product_function(ts, wfse, fsa)
File "/usr/local/lib/python3.7/site-packages/lomap/algorithms/wfse_product.py", line 49, in product_function
for wfse_out in wfse.next_state(init_wfse, init_prop):
TypeError: 'NoneType' object is not iterable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants