bare module IV upload to localdb
I am trying to use localdb to upload the visual inspection and IVs of a bare module. Visual inspection is just fine, but IVs are problematic.
I produced a json file of the same format produced by mqt: 20UPGS33300463.json
The only difference is the the SN is now that of the sensor tile (this is a bare module) and not of a module.
I have the following error:
INFO:upload:Searching candidate RAW json files...
INFO:upload: - /data/rd53daq/ElectricalQC/20UPGS33300463.json
INFO:upload:Extracted 1 tests from 1 input files.
INFO:upload:==> Submitting RAW results pack...
/home/rd53daq/ElectricalQC/venv/lib/python3.9/site-packages/urllib3/connectionpool.py:1099: InsecureRequestWarning: Unverified HTTPS request is being made to host 'itk-pariscluster-regionaldb.ijclab.in2p3.fr'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
warnings.warn(
ERROR:upload:failure in uploading!
ERROR:upload:400 Client Error: BAD REQUEST for url: https://itk-pariscluster-regionaldb.ijclab.in2p3.fr:5000/localdb/qc_uploader_post
ERROR:upload:{'ERROR': 'Component sn=20UPGS33300463, id=6426d01ad8244a0036f6bbd8 has no sensor tiles. IV measurement cannot be uploaded for this.', 'traceback': 'Traceback (most recent call last):\n File "/home/data/viewer/pages/qc.py", line 366, in upload_qcTests_post\n anaResults = upload_qcTests_core(inputJson, page_docs)\n File "/home/data/viewer/pages/qc.py", line 451, in upload_qcTests_core\n anaResult, already_registered = save_raw_and_analyze(tests, component)\n File "/home/data/viewer/pages/qc.py", line 1260, in save_raw_and_analyze\n raise e\n File "/home/data/viewer/pages/qc.py", line 1257, in save_raw_and_analyze\n return analyze_measurement(test, raw, component, raw_id)\n File "/home/data/viewer/pages/qc.py", line 1348, in analyze_measurement\n assert sensors, f"Component sn={component.get(\'serialNumber\')}, id={component.get(\'_id\')} has no sensor tiles. IV measurement cannot be uploaded for this."\nAssertionError: Component sn=20UPGS33300463, id=6426d01ad8244a0036f6bbd8 has no sensor tiles. IV measurement cannot be uploaded for this.\n'}