Skip to content

Measurement examples

Stefan Maier requested to merge smaier/py4dbupload:measurementExamples into master

First version of script to inject 2S Modules into the DB (PS modules will follow). The script expects data input via a CSV file containing the module information. Name label, manufacturer, location, sensor_id_top, sensor_id_bottom, feh_right, feh_left, SEH_id, VTRX+_id. The third columns adds information about attributes. Good/Bad for modules and the sensor orientation of the sensors. To attach children the baseupload was changed to retrieve the children dictionary and adding attributes also to children.

Before the upload it is checked wheter the module fits the naming convention and if all the components to be attached are on the same location as the location given. In addition to that, to avoid overwriting the relationships it is checks wheter the components are not yet linked to a parent.

Merge request reports