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

Add option to top interface to change update interval time #39

Open
pawamoy opened this issue Dec 14, 2019 · 0 comments
Open

Add option to top interface to change update interval time #39

pawamoy opened this issue Dec 14, 2019 · 0 comments

Comments

@pawamoy
Copy link
Owner

pawamoy commented Dec 14, 2019

  1. add a parameter update_interval to init method of class interface.Interface. This value is used to change the sleep value: self.sleep = update_interval / self.frames
    • Example with 1 second interval (default): sleep = 1 / 200 = 0.005
    • Example with 2 seconds interval: sleep = 2 / 200 = 0.01
  2. add an option to the top subparser of the main CLI parser (in cli.get_parser function). Something like "-i", "--update-interval", type=float, default=1.0
  3. write tests in tests/test_interface.py
  4. update documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant