Home
thanawat-p
wiki
(WikiPage)
This is the personal project of thanawat-p. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2020-09-21
wiki Discussion
thanawat-p
wiki
(Discussion)
Forum for wiki comments
Last updated: 2020-09-21
blog Discussion
thanawat-p
blog
(Discussion)
Forum for blog comments
Last updated: 2020-09-21
(no subject)
thanawat-p
wiki
(Thread)
Last updated: 2020-09-21
Home
mlamp
wiki
(WikiPage)
This is the personal project of mlamp. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2020-09-21
wiki Discussion
mlamp
wiki
(Discussion)
Forum for wiki comments
Last updated: 2020-09-21
blog Discussion
mlamp
blog
(Discussion)
Forum for blog comments
Last updated: 2020-09-21
blog Discussion
psch
blog
(Discussion)
Forum for blog comments
Last updated: 2020-09-21
(no subject)
mlamp
wiki
(Thread)
Last updated: 2020-09-21
Home
psch
wiki
(WikiPage)
This is the personal project of psch. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2020-09-21
wiki Discussion
kunbussupport
wiki
(Discussion)
Forum for wiki comments
Last updated: 2020-09-21
blog Discussion
kunbussupport
blog
(Discussion)
Forum for blog comments
Last updated: 2020-09-21
wiki Discussion
psch
wiki
(Discussion)
Forum for wiki comments
Last updated: 2020-09-21
(no subject)
psch
wiki
(Thread)
Last updated: 2020-09-21
Home
kunbussupport
wiki
(WikiPage)
This is the personal project of kunbussupport. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2020-09-21
(no subject)
kunbussupport
wiki
(Thread)
Last updated: 2020-09-21
wiki Discussion
yjy116
wiki
(Discussion)
Forum for wiki comments
Last updated: 2020-09-21
blog Discussion
yjy116
blog
(Discussion)
Forum for blog comments
Last updated: 2020-09-21
(no subject)
yjy116
wiki
(Thread)
Last updated: 2020-09-21
Home
yjy116
wiki
(WikiPage)
This is the personal project of yjy116. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2020-09-21
Ticket #20: Update Device
Scripting
snippets
(Ticket)
To be able to compile a project, you usually need to update the devices in the device tree to match your currently installed versions. The following python script should do exactly this in an automated way for all devices, which it finds: # # update all devices in project # def update_device(proj): print("*** update device") # search for devices to update objects = proj.get_children(recursive=True) for object in objects: if object.is_device: print("*** found device") DeviceId = object.get_device_identification() devices = device_repository.get_all_devices() for device in devices: if device.device_id.type == DeviceId.type and device.device_id.id == DeviceId.id: deviceToUpdate = device if deviceToUpdate != None: print ("*** found device to update %s" % deviceToUpdate.device_id) object.update(device=deviceToUpdate.device_id) ~~~Update Device Scripting 0 snippets Ticket tickets Update Device 2020-09-21 21:09:55.287000 Unlicense False 0 ingo Ticket #20: Update Device 0 False /tol/scripting/snippets/20/ None 2020-09-21 21:09:55.154000 None 20 scripting To be able to compile a project, you usually need to update the devices in the device tree to match your currently installed versions. The following python script should do exactly this in an automated way for all devices, which it finds: update all devices in project def update_device(proj): print("*** update device") # search for devices to update objects = proj.get_children(recursive=True) for object in objects: if object.is_device: print("*** found device") DeviceId = object.get_device_identification() devices = device_repository.get_all_devices() for device in devices: if device.device_id.type == DeviceId.type and device.device_id.id == DeviceId.id: deviceToUpdate = device if deviceToUpdate != None: print ("*** found device to update %s" % deviceToUpdate.device_id) object.update(device=deviceToUpdate.device_id) ~~~ False False 1
Last updated: 2020-09-21
(no subject)
Scripting
snippets
(Thread)
Last updated: 2020-09-21