Commit d83988f5 authored by Timm Schoening's avatar Timm Schoening
Browse files

updated svg documentation

parent c7471d3a
......@@ -115,11 +115,6 @@ def createiFDOForEvent(dir:miqtd.Dir,ifdo_params,handle_prefix = '20.500.12085')
item_data[img][v] = tmp_data[img][v]
item_data[img]['image-filename'] = img
prev_len = -1
for item in item_data:
if prev_len > 0 and len(item) != prev_len:
raise Exception("Not all items have the same amount of metadata",len(item),prev_len)
if len(item_data) == 0:
raise Exception("No iFDO items")
......@@ -146,15 +141,23 @@ def createiFDO(header:dict,items:dict):
# Validate item information
invalid_items = 0
for item in items:
miqtt.isValidiFDOItem(item,header,all_items_have)
try:
miqtt.isValidiFDOItem(item,header,all_items_have)
# Put all item information into the yaml struct to write to disk
yml['image-set-items'][item['image-filename']] = {}
for it in item:
if it != 'image-filename':
yml['image-set-items'][item['image-filename']][it] = item[it]
# Put all item information into the yaml struct to write to disk
yml['image-set-items'][item['image-filename']] = {}
for it in item:
if it != 'image-filename':
yml['image-set-items'][item['image-filename']][it] = item[it]
except:
invalid_items += 1
if invalid_items == len(items):
raiseException("All items are invalid")
elif invalid_items > 0:
print(invalid_items," items were invalid (of",len(items),")")
# Validate header information
miqtt.isValidiFDOCoreHeader(header,all_items_have)
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment