mirror of
https://github.com/cmur2/python-veml6070.git
synced 2024-12-21 14:54:23 +01:00
module: ignore some files for linting
This commit is contained in:
parent
f5bb5c01cb
commit
cbb82a2f9c
@ -11,7 +11,7 @@ ignore=CVS
|
|||||||
|
|
||||||
# Add files or directories matching the regex patterns to the blacklist. The
|
# Add files or directories matching the regex patterns to the blacklist. The
|
||||||
# regex matches against base names, not paths.
|
# regex matches against base names, not paths.
|
||||||
ignore-patterns=
|
ignore-patterns=.*_test.py,setup.py
|
||||||
|
|
||||||
# Python code to execute, usually for sys.path manipulation such as
|
# Python code to execute, usually for sys.path manipulation such as
|
||||||
# pygtk.require().
|
# pygtk.require().
|
||||||
|
18
demo.py
18
demo.py
@ -2,12 +2,12 @@
|
|||||||
import veml6070
|
import veml6070
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
veml = veml6070.Veml6070()
|
veml = veml6070.Veml6070()
|
||||||
for i in [veml6070.INTEGRATIONTIME_1_2T,
|
for i in [veml6070.INTEGRATIONTIME_1_2T,
|
||||||
veml6070.INTEGRATIONTIME_1T,
|
veml6070.INTEGRATIONTIME_1T,
|
||||||
veml6070.INTEGRATIONTIME_2T,
|
veml6070.INTEGRATIONTIME_2T,
|
||||||
veml6070.INTEGRATIONTIME_4T]:
|
veml6070.INTEGRATIONTIME_4T]:
|
||||||
veml.set_integration_time(i)
|
veml.set_integration_time(i)
|
||||||
uv_raw = veml.get_uva_light_intensity_raw()
|
uv_raw = veml.get_uva_light_intensity_raw()
|
||||||
uv = veml.get_uva_light_intensity()
|
uv = veml.get_uva_light_intensity()
|
||||||
print "Integration Time setting %d: %f W/(m*m) from raw value %d" % (i, uv, uv_raw)
|
print "Integration Time setting %d: %f W/(m*m) from raw value %d" % (i, uv, uv_raw)
|
||||||
|
Loading…
Reference in New Issue
Block a user