code stringlengths 3 6.57k |
|---|
x0008 (max: 0x0067) |
x0498 (No-BLC: 0x049F; Manual-BLC: 0x0499 & reg0x60/61/63/64) |
x0498 (No-BLC: 0x049F; Manual-BLC: 0x0499 & reg0x60/61/63/64) |
inicial (pag 16 del datasheet) |
open('integrationtime.txt','w') |
it.write(str(integrationTime) |
print ("Initial integration time: %.3fms"%(integrationTime) |
print ("Initial gain: 0x%02x"%(globalGain) |
thread.allocate_lock() |
readThread(threadName,read_Flag) |
time.time() |
time.time() |
time.time() |
ArducamSDK.Py_ArduCam_available(handle) |
ArducamSDK.Py_ArduCam_read(handle,Width * Height) |
time.time() |
ArducamSDK.Py_ArduCam_del(handle) |
print ("read data fail!") |
time.sleep(.01) |
len(data) |
print ("%s %f %s\n"%("fps:",count*1.0/(time1-time0) |
a_lock.acquire() |
a_lock.release() |
show(data) |
thread.start_new_thread( readThread,("Thread-2", flag,) |
showAndSave(threadName,algoquenoseusa) |
np.zeros((Height, Width) |
a_lock.acquire() |
np.frombuffer(bufferData, np.uint8) |
np.reshape(img, (Height, Width) |
str(saveNum) |
str(saveNum) |
fits.PrimaryHDU() |
hdu.writeto(name,overwrite=True) |
print ("Frame saved to %s"%(name) |
a_lock.release() |
print ("Total number of adq images = %d"%(saveNum) |
thread.start_new_thread( showAndSave,("Thread-3",flag) |
init_and_read_arducam() |
ArducamSDK.Py_ArduCam_autoopen(cfg) |
print ("device open success!") |
while (regArr[regNum][0] != 0xFFFF) |
ArducamSDK.Py_ArduCam_writeSensorReg(handle,regArr[regNum][0],regArr[regNum][1]) |
ArducamSDK.Py_ArduCam_beginCapture(handle) |
print ("transfer task create success!") |
ArducamSDK.Py_ArduCam_capture(handle) |
print ("capture failed!") |
time.sleep(0.1) |
print ("transfer task create fail!") |
time.sleep(2) |
ArducamSDK.Py_ArduCam_close(handle) |
print ("device close success!") |
print ("device close fail!") |
print ("device open fail!") |
time.time() |
init_and_read_arducam() |
Triggers(base.Group) |
logging.getLogger(__name__) |
SimpleReadOnlyCinderClientTest(tempest.cli.ClientTestBase) |
test_cinder_fake_action(self) |
test_cinder_absolute_limit_list(self) |
self.parser.listing(self.cinder('absolute-limits') |
self.assertTableStruct(roles, ['Name', 'Value']) |
test_cinder_backup_list(self) |
self.cinder('backup-list') |
test_cinder_extra_specs_list(self) |
self.cinder('extra-specs-list') |
test_cinder_volumes_list(self) |
self.cinder('list') |
test_cinder_quota_class_show(self) |
self.assertTableStruct(roles, ['Property', 'Value']) |
test_cinder_quota_defaults(self) |
self.assertTableStruct(roles, ['Property', 'Value']) |
test_cinder_quota_show(self) |
self.assertTableStruct(roles, ['Property', 'Value']) |
test_cinder_rate_limits(self) |
self.cinder('rate-limits') |
test_cinder_snapshot_list(self) |
self.cinder('snapshot-list') |
test_cinder_type_list(self) |
self.cinder('type-list') |
test_cinder_list_extensions(self) |
self.cinder('list-extensions') |
self.parser.listing(self.cinder('list-extensions') |
self.assertTableStruct(roles, ['Name', 'Summary', 'Alias', 'Updated']) |
test_cinder_credentials(self) |
self.cinder('credentials') |
test_cinder_availability_zone_list(self) |
self.cinder('availability-zone-list') |
test_cinder_endpoints(self) |
self.cinder('endpoints') |
test_cinder_service_list(self) |
self.cinder('service-list') |
test_cinder_transfer_list(self) |
self.cinder('transfer-list') |
test_cinder_bash_completion(self) |
self.cinder('bash-completion') |
test_admin_help(self) |
self.cinder('help') |
help_text.split('\n') |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.