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

There is a bug in example code #5

Closed
Hessen525 opened this issue May 11, 2022 · 3 comments
Closed

There is a bug in example code #5

Hessen525 opened this issue May 11, 2022 · 3 comments

Comments

@Hessen525
Copy link

Hessen525 commented May 11, 2022

Describe the bug

  1. name 'logging' is not defined, I guess you need to import logging
  2. in your example code , when run 'results = [src.apps[0].success_count for req in net.requests]' ,
    bug occurs as follows , name 'src' is not defined.
@ertuil
Copy link
Collaborator

ertuil commented May 11, 2022

Thanks for your concern. Could you please provide more details about these bugs?
It includes the special files that contains these bugs, related logs, the version of SimQN and the version of the Python. Since we checked and re-run all codes in the example directory of the current version in master branch, we do not recurrent the bugs you proposed.

Thanks.

@Hessen525
Copy link
Author

Hessen525 commented May 11, 2022

@ertuil Thanks for your reply.
The version I used as follows:
Python 3.9.7
Requirement already satisfied: qns in c:\users\admin\anaconda3\lib\site-packages (0.1.4)
Requirement already satisfied: numpy in c:\users\admin\anaconda3\lib\site-packages (from qns) (1.20.3)

I copy your example code and run it directly, the error says "NameError: name 'logging' is not defined"

image

After adding import logging, another error "NameError: name 'src' is not defined" occurs.

image

@ertuil
Copy link
Collaborator

ertuil commented Sep 26, 2022

Thanks for your reporting about the bugs in the example. We fixed the bugs and added an automatic check.

@ertuil ertuil closed this as completed Sep 26, 2022
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