zivid / zivid-python-samples

Python code samples for Zivid
https://zivid.com
BSD 3-Clause "New" or "Revised" License
39 stars 16 forks source link

enable unused variable #20

Closed SatjaSivcev closed 5 years ago

SatjaSivcev commented 5 years ago

This is one of the main unused variables and I am not sure how to deal with it.

app = zivid.Application()

Also, in read_zdf.py, I want to show how to extract xyz, rgb, and contrast from the point_cloud. It is not used but the point is to show how one can get access to.

Any ideas?

nedrebo commented 5 years ago

You can probably pass --dummy-variables-rgx=app to pylint since unused app is a common pattern.

For the other unused by design variables you can prefix them with dummy_. Or some other prefix you prefer and also add that prefix to --dummy-variables-rgx.

Ref: https://stackoverflow.com/a/10107410

SatjaSivcev commented 5 years ago

@trym-b review needed due to some conflicts (resolved)

SatjaSivcev commented 5 years ago

Ready from the next round.