From 712b3789a1d961661e4076846a2d33a2e830a41e Mon Sep 17 00:00:00 2001 From: morefigs Date: Thu, 21 Feb 2019 12:10:55 +1100 Subject: calling an object command feature type as an attribute returns a callable --- examples/camera/write_feature_value.py | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 examples/camera/write_feature_value.py (limited to 'examples/camera/write_feature_value.py') diff --git a/examples/camera/write_feature_value.py b/examples/camera/write_feature_value.py deleted file mode 100644 index 77f8ce5..0000000 --- a/examples/camera/write_feature_value.py +++ /dev/null @@ -1,22 +0,0 @@ -from pymba import Vimba - - -if __name__ == '__main__': - - with Vimba() as vimba: - camera = vimba.camera(0) - camera.open() - - # read a feature value - feature = camera.feature('ExposureAuto') - value = feature.value - - # set the feature value - feature.value = value - - print(feature.name, '=', feature.value) - - # alternatively the feature value can be set as an object attribute - camera.ExposureAuto = feature.value - - camera.close() -- cgit v1.2.3